Re: [QUESTION] fan rpm hwmon driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/4/20 12:50 PM, Barnabás Pőcze wrote:
> Hello all,
> 
> I am completely new to Linux kernel development. I have written a kernel module for my laptop that integrates the fan speeds available in the embedded controller memory into the hwmon subsystem.
> 
> My first question would be: can such a driver be merged into the mainline? I ask this because it is a device specific driver, and I am not sure if such drivers are wanted in the mainline.
> 

There are several device/platform specific drivers in drivers/hwmon;
that is not a problem. Question is more how the EC is accessed, and
who is going to maintain the driver after the initial submission.
This might be easier to evaluate if we had a patch or a pointer to,
for example, an out-of-tree driver at a public repository site such
as github.

> Depending on the answer to my first question, my second question is: where should such a driver reside in the source tree? Initially, I thought of drivers/hwmon, but that seems to be occupied by drivers for external(?) devices (I am not sure, but that is the idea I get). So I am now thinking of drivers/platform/x86. However, I have failed to find any fan hwmon drivers there, so I am not sure about that one, either.

hwmon drivers should in general reside in drivers/hwmon, unless hardware
monitoring functionality is part of other functionality and would be
difficult to extract from the main driver (example: various Ethernet
or graphics controllers).

Guenter



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux