1. 20 7月, 2007 1 次提交
    • J
      hwmon: Fix a potential race condition on unload · 04a6217d
      Jean Delvare 提交于
      Fix a potential race condition when some hardware monitoring platform
      drivers are being unloaded. I believe that the driver data pointer
      shouldn't be cleared before all the sysfs files are removed, otherwise
      a sysfs callback might attempt to dereference a NULL pointer. I'm not
      sure exactly what the driver core protects drivers against, so let's
      play it safe.
      
      While we're here, clear the driver data pointer when probe fails, so
      as to not leave an invalid pointer behind us.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
      04a6217d
  2. 08 5月, 2007 1 次提交
    • J
      hwmon: Request the I/O regions in platform drivers · ce7ee4e8
      Jean Delvare 提交于
      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 region request
      and release calls.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NJuerg Haefliger <juergh@gmail.com>
      ce7ee4e8
  3. 13 12月, 2006 1 次提交
    • J
      hwmon: New PC87427 hardware monitoring driver · ba224e2c
      Jean Delvare 提交于
      This is a new hardware monitoring driver for the National Semiconductor
      PC87427 Super-I/O chip. It only supports fan speed monitoring for now,
      while the chip can do much more.
      
      Thanks to Amir Habibi at Candelis for setting up a test system, and to
      Michael Kress for testing several iterations of this driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      ba224e2c