lkml.org 
[lkml]   [2021]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 1/3] hwmon: (asus-ec-sensors) add driver for ASUS EC
Günter,

On Fri, 17 Dec 2021 at 22:52, Guenter Roeck <linux@roeck-us.net> wrote:
> There is a lot of complexity around mutex_path in this driver, yet there is
> always exactly one entry for each board, and the name of the mutex is always
> the same for all boards. This doesn't make sense. Either the code is needed
> or it isn't. We don't usually add complex code like this into the kernel
> "just because it may be needed at some point in the future". Either give me
> a use case, or drop it all.

When we discussed this approach which utilises an ACPI mutex, Andy and
Denis were sceptical about its maintainability. One of the objections
was that the mutex name is internal to the DSDT code and can be
changed by ASUS. I know when older AM4 boards received BIOS updates
for Ryzen 5000, their BIOS changed completely and I overheard that the
DSDT code changed too. Unfortunately, I have no samples at hand. So I
went ahead and added version support. I can, of course, revert that
and apply it if somebody encounters such a BIOS update. To some extent
I wanted to demonstrate how overcoming the problem with possible
changes of the mutex path can look.

Best regards,
Eugene

\
 
 \ /
  Last update: 2021-12-17 23:34    [W:0.048 / U:0.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site