An error occurred fetching the project authors.
  1. 13 Mar, 2010 1 commit
  2. 06 Dec, 2009 6 commits
  3. 28 Mar, 2009 1 commit
  4. 17 Oct, 2008 1 commit
    • Jean Delvare's avatar
      hwmon: (ams) Convert to a new-style i2c driver · 810ad7b6
      Jean Delvare authored
      The legacy i2c binding model is phasing out, so the ams driver needs
      to be converted to a new-style i2c driver. Here is a naive approach of
      this conversion. Basically it is moving the i2c device creation from
      the ams driver to the i2c-powermac driver. This should work, but I
      suspect we could come up with something cleaner by declaring the i2c
      device as part of the platform setup. This could be done later by
      someone more familiar with openfirmware-based platforms than I am
      myself.
      
      One nice thing brought by this conversion is that the ams driver
      should be loaded automatically on systems where is is needed (at
      least when the I2C interface to the chip is used) providing
      coldplug-aware user-space environment.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Cc: Stelian Pop <stelian@popies.net>
      Cc: Michael Hanselmann <linux-kernel@hansmi.ch>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      810ad7b6
  5. 24 Sep, 2008 1 commit
  6. 22 Apr, 2008 1 commit
  7. 14 Jan, 2008 1 commit
  8. 12 Jul, 2007 1 commit
    • Jean Delvare's avatar
      i2c: Fix the i2c_smbus_read_i2c_block_data() prototype · 4b2643d7
      Jean Delvare authored
      Let the drivers specify how many bytes they want to read with
      i2c_smbus_read_i2c_block_data(). So far, the block count was
      hard-coded to I2C_SMBUS_BLOCK_MAX (32), which did not make much sense.
      Many driver authors complained about this before, and I believe it's
      about time to fix it. Right now, authors have to do technically stupid
      things, such as individual byte reads or full-fledged I2C messaging,
      to work around the problem. We do not want to encourage that.
      
      I even found that some bus drivers (e.g. i2c-amd8111) already
      implemented I2C block read the "right" way, that is, they didn't
      follow the old, broken standard. The fact that it was never noticed
      before just shows how little i2c_smbus_read_i2c_block_data() was used,
      which isn't that surprising given how broken its prototype was so far.
      
      There are some obvious compatiblity considerations:
      * This changes the i2c_smbus_read_i2c_block_data() prototype. Users
        outside the kernel tree will notice at compilation time, and will
        have to update their code.
      * User-space has access to i2c_smbus_xfer() directly using i2c-dev, so
        the changed expectations would affect tools such as i2cdump. In order
        to preserve binary compatibility, we give I2C_SMBUS_I2C_BLOCK_DATA
        a new numeric value, and define I2C_SMBUS_I2C_BLOCK_BROKEN with the
        old numeric value. When i2c-dev receives a transaction with the
        old value, it can convert it to the new format on the fly.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      4b2643d7
  9. 13 Feb, 2007 1 commit
  10. 10 Oct, 2006 1 commit
  11. 26 Sep, 2006 1 commit
  12. 31 Jul, 2006 1 commit
  13. 12 Jul, 2006 1 commit
  14. 30 Jun, 2006 1 commit
  15. 09 Jan, 2006 1 commit
    • Benjamin Herrenschmidt's avatar
      [PATCH] 2/5 powerpc: Rework PowerMac i2c part 2 · a28d3af2
      Benjamin Herrenschmidt authored
      This is the continuation of the previous patch. This one removes the old
      PowerMac i2c drivers (i2c-keywest and i2c-pmac-smu) and replaces them
      both with a single stub driver that uses the new PowerMac low i2c layer.
      
      Now that i2c-keywest is gone, the low-i2c code is extended to support
      interrupt driver transfers. All i2c busses now appear as platform
      devices. Compatibility with existing drivers should be maintained as the
      i2c bus names have been kept identical, except for the SMU bus but in
      that later case, all users has been fixed.
      
      With that patch added, matching a device node to an i2c_adapter becomes
      trivial.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      a28d3af2