1. 12 Jul, 2016 2 commits
    • Guenter Roeck's avatar
      hwmon: (tmp102) Rework chip configuration · a9f92ccf
      Guenter Roeck authored
      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: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      a9f92ccf
    • Guenter Roeck's avatar
      hwmon: (tmp102) Improve handling of initial read delay · 3d8f7a89
      Guenter Roeck authored
      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: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      3d8f7a89
  2. 09 Jul, 2016 10 commits
  3. 04 Jul, 2016 1 commit
    • Alison Schofield's avatar
      hwmon: (jc42) Add I2C_CLASS_HWMON to detection class · eacc48ce
      Alison Schofield authored
      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: default avatarAlison Schofield <amsfield22@gmail.com>
      Cc: Daniel Baluta <daniel.baluta@gmail.com>
      [groeck: Updated description]
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      eacc48ce
  4. 28 Jun, 2016 16 commits
  5. 27 Jun, 2016 1 commit
  6. 26 Jun, 2016 1 commit
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 2ac9b973
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Two straightforward fixes.
      
        One is a concurrency issue only affecting SAS connected SATA drives,
        but which could hang the storage subsystem if it triggers (because the
        outstanding command count on error never goes back to zero) and the
        other is a NO_TAG fallout from the switch to hostwide tags which
        causes the system to crash on module insertion (we've checked
        carefully and only the 53c700 family of drivers is vulnerable to this
        issue)"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        53c700: fix BUG on untagged commands
        scsi: fix race between simultaneous decrements of ->host_failed
      2ac9b973
  7. 25 Jun, 2016 9 commits