[PATCH] hwmon: Request the I/O regions in platform drivers

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

 



Hi Jean, Juerg,

On 2/21/07, Jean Delvare <khali at linux-fr.org> wrote:
> My understanding of the resource management in the Linux 2.6 device
> driver model is that the devices should declare their resources, and
> then when a driver attaches to a device, it should request the
> resources it will be using, so as to mark them busy. This is how the
> PCI and PNP subsystems work, you can clearly see the two levels of
> resources (declaration and request) in /proc/ioports for these
> devices.
>
> So I believe that our platform hardware monitoring drivers should
> follow the same logic. At the moment, we only declare the resources
> but we do not request them. This patch adds the I/O regions request
> and release calls.

Would this have any effect with the discussion Rudolf Marek started
about ACPI Thermal monitoring and a race condition with a hwmon driver
(e.g. w83627ehf), resulting in an invalid reading (which sets off the
ACPI alarm and shuts down the system)?

Would requesting the resources prevent the ACPI Thermal AML from
accessing the chip? Perhaps I have not understood the ioports region
code correctly, but it would not make sense to allow something like
the AML parser to access IO regions marked busy.

Please comment if you would,
David




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux