1. 13 7月, 2016 2 次提交
    • G
      hwmon: (tmp102) Rework chip configuration · a9f92ccf
      Guenter Roeck 提交于
      So far the chip was forced into polarity 0, even if it was preconfigured
      differently. Do not touch the polarity when configuring the chip.
      
      Also, the configuration register was read beack to check if the
      configuration 'sticks'. Ultimately, that is similar to checking if the
      chip is a tmp102 in the first place. Checking if a write into the
      configuration register was successful is really not the way to do it,
      and quite risky if the chip is not a tmp102, so drop that check.
      Instead, verify if the configuration register has unexpected bits set
      before writing into it.
      Acked-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      a9f92ccf
    • G
      hwmon: (tmp102) Improve handling of initial read delay · 3d8f7a89
      Guenter Roeck 提交于
      If the chip was in shutdown mode when the driver was loaded, the first
      conversion is ready no more than 35 milli-seconds after the chip was
      taken out of shutdown. The driver delay was so far set to 333 ms (HZ / 3),
      which is much higher than the maximum time needed by the chip.
      Reduce the time to 35 milli-seconds.
      
      Introduce a 'valid' flag to ensure that sensor data is actually read
      even if requested less than 333 ms after the driver was loaded.
      Acked-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      3d8f7a89
  2. 09 7月, 2016 10 次提交
  3. 05 7月, 2016 1 次提交
    • A
      hwmon: (jc42) Add I2C_CLASS_HWMON to detection class · eacc48ce
      Alison Schofield 提交于
      In 2011, commit 774466ad ("hwmon: (jc42) Change detection class")
      changed the detection class of these chips to I2C_CLASS_SPD based
      on this premise: "makes more sense because these chips always live on
      memory modules"
      
      Today these chips have applications beyond memory modules. Examples are
      JC42.4 compatible chips such as MCP9804 and MCP9808, but also MCP9805,
      which is marked as JC42.4 compliant and suggested for use not only for
      DIMMS, but also as generic temperature sensor.
      
      Add I2C_CLASS_HWMON as an additional detection class to allow detection
      by hwmon class i2c adapters.
      Signed-off-by: NAlison Schofield <amsfield22@gmail.com>
      Cc: Daniel Baluta <daniel.baluta@gmail.com>
      [groeck: Updated description]
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      eacc48ce
  4. 28 6月, 2016 16 次提交
  5. 27 6月, 2016 2 次提交
  6. 25 6月, 2016 9 次提交