1. 09 1月, 2011 1 次提交
  2. 15 9月, 2009 1 次提交
  3. 07 1月, 2009 1 次提交
    • J
      hwmon: Check for ACPI resource conflicts · b9acb64a
      Jean Delvare 提交于
      Check for ACPI resource conflicts in hwmon drivers. I've included
      all Super-I/O and PCI drivers.
      
      I've voluntarily left out:
      * Vendor-specific drivers: if they conflicted on any system, this would
        pretty much mean that they conflict on all systems, and we would know
        by now.
      * Legacy ISA drivers (lm78 and w83781d): they only support chips found
        on old designs were ACPI either wasn't supported or didn't deal with
        thermal management.
      * Drivers accessing the I/O resources indirectly (e.g. through SMBus):
        the checks are already done where they belong, i.e. in the bus drivers.
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Acked-by: NDavid Hubbard <david.c.hubbard@gmail.com>
      b9acb64a
  4. 08 2月, 2008 1 次提交
    • J
      hwmon: Let the user override the detected Super-I/O device ID · 67b671bc
      Jean Delvare 提交于
      While it is possible to force SMBus-based hardware monitoring chip
      drivers to drive a not officially supported device, we do not have this
      possibility for Super-I/O-based drivers. That's unfortunate because
      sometimes newer chips are fully compatible and just forcing the driver
      to load would work. Instead of that we have to tell the users to
      recompile the kernel driver, which isn't an easy task for everyone.
      
      So, I propose that we add a module parameter to all Super-I/O based
      hardware monitoring drivers, letting advanced users force the driver
      to load on their machine. The user has to provide the device ID of a
      supposedly compatible device. This requires looking at the source code or
      a datasheet, so I am confident that users can't randomly force a driver
      without knowing what they are doing. Thus this should be relatively safe.
      
      As you can see from the code, the implementation is pretty simple and
      unintrusive.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NHans de Goede <j.w.r.degoede@hhs.nl>
      Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
      67b671bc
  5. 10 10月, 2007 2 次提交
  6. 20 7月, 2007 3 次提交
  7. 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
  8. 15 2月, 2007 2 次提交
    • J
      hwmon/f71805f: Fix a race condition · a117dddf
      Jean Delvare 提交于
      I think I introduced a potential race condition bug with commit
      51c997d8. I didn't realize it
      back then, but platform_device_put and platform_device_release
      both appear to free the platform data associated with the device.
      This makes an explicit kfree redundant at best, and maybe even
      racy, as it might occur while someone still holds a reference
      to the platform device.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      a117dddf
    • J
      hwmon: Simplify the locking model of two drivers · 7f999aa7
      Jean Delvare 提交于
      Many hardware monitoring drivers use two different mutexes, one to
      protect their per-device data structure, and one to protect the
      access to the device registers. These mutexes are essentially
      redundant, as the drivers are transfering values between the device
      registers and the data cache, so they almost always end up holding
      both mutexes at the same time. Using a single mutex will make the
      code more simple and faster.
      
      I am changing only two of the affected drivers here, the authors
      of the other affected drivers are welcome to submit similar patches
      if they want.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      7f999aa7
  9. 13 12月, 2006 8 次提交
  10. 29 9月, 2006 2 次提交
  11. 23 6月, 2006 1 次提交
  12. 24 3月, 2006 2 次提交
  13. 07 2月, 2006 1 次提交
    • J
      [PATCH] hwmon: New f71805f driver · e53004e2
      Jean Delvare 提交于
      This is my f71805f hardware monitoring driver ported from lm_sensors
      to Linux 2.6. This new driver differs from the other hardware monitoring
      drivers in that it is implemented as a platform driver. This might not
      be optimal yet (we would probably need a generic infrastructure and bus
      type for Super-I/O logical devices) but it is certainly much better than
      the i2c-isa solution.
      
      Note that this driver requires lm_sensors CVS. I hope to get it
      released as 2.10.0 soon.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e53004e2