1. 14 10月, 2008 4 次提交
  2. 28 7月, 2008 1 次提交
  3. 17 7月, 2008 4 次提交
    • J
      i2c: Convert the max6875 driver to a new-style i2c driver · bd8d421f
      Jean Delvare 提交于
      The new-style max6875 driver implements the optional detect() callback
      to cover the use cases of the legacy driver. I'm curious if anyone
      really needs this though, so it might be removed in the feature.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      bd8d421f
    • J
      i2c: Convert the pca9539 driver to a new-style i2c driver · 3d63430a
      Jean Delvare 提交于
      The new-style pca9539 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      
      Warning: users will now have to use the force module parameter to get
      the driver to attach to their device. That's not a bad thing as these
      devices can't be detected anyway.
      
      Note that this doesn't change the fact that this driver is deprecated
      in favor of gpio/pca953x.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      3d63430a
    • J
      i2c: Convert the pcf8575 driver to a new-style i2c driver · 97addff6
      Jean Delvare 提交于
      The new-style pcf8575 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      
      Warning: users will now have to use the force module parameter to get
      the driver to attach to their device. That's not a bad thing as these
      devices can't be detected anyway.
      
      Note that this doesn't change the fact that this driver is deprecated
      in favor of gpio/pcf857x.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      97addff6
    • J
      i2c: Convert the pcf8574 driver to a new-style i2c driver · 833bedb8
      Jean Delvare 提交于
      The new-style pcf8574 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      
      Warning: users will now have to use the force module parameter to get
      the driver to attach to their device. That's not a bad thing as these
      devices can't be detected anyway.
      
      Note that this doesn't change the fact that this driver is deprecated
      in favor of gpio/pcf857x.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      833bedb8
  4. 15 7月, 2008 5 次提交
    • J
      i2c: Add detection capability to new-style drivers · 4735c98f
      Jean Delvare 提交于
      Add a mechanism to let new-style i2c drivers optionally autodetect
      devices they would support on selected buses and ask i2c-core to
      instantiate them. This is a replacement for legacy i2c drivers, much
      cleaner.
      
      Where drivers had to implement both a legacy i2c_driver and a
      new-style i2c_driver so far, this mechanism makes it possible to get
      rid of the legacy i2c_driver and implement both enumerated and
      detected device support with just one (new-style) i2c_driver.
      
      Here is a quick conversion guide for these drivers, step by step:
      
      * Delete the legacy driver definition, registration and removal.
        Delete the attach_adapter and detach_client methods of the legacy
        driver.
      
      * Change the prototype of the legacy detect function from
          static int foo_detect(struct i2c_adapter *adapter, int address, int kind);
        to
          static int foo_detect(struct i2c_client *client, int kind,
          			  struct i2c_board_info *info);
      
      * Set the new-style driver detect callback to this new function, and
        set its address_data to &addr_data (addr_data is generally provided
        by I2C_CLIENT_INSMOD.)
      
      * Add the appropriate class to the new-style driver. This is
        typically the class the legacy attach_adapter method was checking
        for. Class checking is now mandatory (done by i2c-core.) See
        <linux/i2c.h> for the list of available classes.
      
      * Remove the i2c_client allocation and freeing from the detect
        function. A pre-allocated client is now handed to you by i2c-core,
        and is freed automatically.
      
      * Make the detect function fill the type field of the i2c_board_info
        structure it was passed as a parameter, and return 0, on success. If
        the detection fails, return -ENODEV.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      4735c98f
    • J
      i2c: Delete unused function i2c_smbus_write_quick · 67c2e665
      Jean Delvare 提交于
      Function i2c_smbus_write_quick has no users left, so we can delete it.
      
      Also update the list of these helper functions which are gone but
      could be added back if needed.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      67c2e665
    • D
      i2c-core: Return -Errno, not -1 · 24a5bb7b
      David Brownell 提交于
      More updates to the I2C stack's fault reporting:  make the core stop
      returning "-1" (usually "-EPERM") for all faults.  Instead, pass lower
      level fault code up the stack, or return some appropriate errno.
      
      This patch happens to touch almost exclusively SMBus calls.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      24a5bb7b
    • D
      i2c: Document standard fault codes · 81fded1f
      David Brownell 提交于
      Create Documentation/i2c/fault-codes to help standardize
      fault/error code usage in the I2C stack.  It turns out that
      returning -1 (-EPERM) for everything was not at all helpful.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      81fded1f
    • A
      i2c: Remove 3 deprecated bus drivers · 20a9b6e7
      Adrian Bunk 提交于
      This patch contains the scheduled removal of i2c-i810, i2c-prosavage
      and i2c-savage4.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      20a9b6e7
  5. 02 7月, 2008 1 次提交
  6. 12 5月, 2008 2 次提交
  7. 30 4月, 2008 1 次提交
    • J
      i2c: Add support for device alias names · d2653e92
      Jean Delvare 提交于
      Based on earlier work by Jon Smirl and Jochen Friedrich.
      
      This patch allows new-style i2c chip drivers to have alias names using
      the official kernel aliasing system and MODULE_DEVICE_TABLE(). At this
      point, the old i2c driver binding scheme (driver_name/type) is still
      supported.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Jochen Friedrich <jochen@scram.de>
      Cc: Jon Smirl <jonsmirl@gmail.com>
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      d2653e92
  8. 25 2月, 2008 1 次提交
  9. 08 2月, 2008 1 次提交
  10. 06 2月, 2008 1 次提交
  11. 28 1月, 2008 6 次提交
  12. 12 12月, 2007 1 次提交
  13. 20 10月, 2007 1 次提交
  14. 14 10月, 2007 4 次提交
  15. 31 8月, 2007 1 次提交
  16. 12 7月, 2007 6 次提交
    • J
      i2c-rpx: Remove · 0a85e9a2
      Jean Delvare 提交于
      This driver has been broken forever. It depends on i2c-algo-8xx which
      has never been in the mainline kernel.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      0a85e9a2
    • J
      i2c: New bus driver for the TAOS evaluation modules · b9cdad74
      Jean Delvare 提交于
      This is a new I2C bus driver for the TAOS evaluation modules. Developped
      and tested on the TAOS TSL2550 EVM.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      b9cdad74
    • O
      i2c-i801: Use the internal 32-byte buffer on ICH4+ · 7edcb9ab
      Oleg Ryjkov 提交于
      Add an ability to utilize the internal SRAM buffer on ICH4
      and newer host controllers to speed up execution of block operations.
      
      I've split the code so that it is more clear which block transaction is
      performed.
      
      First of all the host controller's type is identified. isich4 is set when
      we think that the controller has the internal buffer. Then, before every
      block transaction, if isich4 is set, we attempt to enable the E32B bit in
      SMBAUXCTL register.
      Signed-off-by: NOleg Ryjkov <olegr@google.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      7edcb9ab
    • H
      i2c-piix4: Add support for the ATI SB700 · c29c2221
      Henry Su 提交于
      Add the SMBus device ID for ATI SB700.
      Signed-off-by: NHenry Su <Henry.su@amd.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      c29c2221
    • J
      i2c: Fix the i2c_smbus_read_i2c_block_data() prototype · 4b2643d7
      Jean Delvare 提交于
      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: NJean Delvare <khali@linux-fr.org>
      4b2643d7
    • J
      i2c: Delete outdated x1205 driver documentation · 890e0375
      Jean Delvare 提交于
      The x1205 driver moved to the RTC subsystem and was significantly
      modified since then, so just delete the outdated documentation.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Alessandro Zummo <alessandro.zummo@towertech.it>
      890e0375