1. 11 12月, 2006 2 次提交
    • H
      i2c: Cleanups to the i2c-nforce2 bus driver · ad04d5c3
      Hans-Frieder Vogt 提交于
      Summary of changes:
      
      - fixes:
         o legacy I/O region size is 64 bytes, not 8 bytes
      - general cleanup:
         o removed code for the unsupported I2C block data, block data,
            proc call and block proc call transfer modes
         o removed detail warnings about unsupported modes that are
           covered in a general warning (unsupported transaction...)
           anyway
         o removed necessity of a definition of struct i2c_adapter
         o moved definition of struct i2c_algorithm, making forward
           declarations of nforce2_access and nforce2_func unnecessary
      - minor changes:
         o in the description mention the nForce 5xx chipsets
         o changes my e-mail address in MODULE_AUTHOR
      
      Theses cleanups shrink the driver binary size from 4.0 kB to 2.7 kB
      on i386.
      Signed-off-by: NHans-Frieder Vogt <hfvogt@gmx.net>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      ad04d5c3
    • J
      i2c: Fix documentation typos · 26f95c4a
      Jean Delvare 提交于
      Fix typos in i2c bus drivers documentation.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      26f95c4a
  2. 27 9月, 2006 2 次提交
  3. 13 7月, 2006 1 次提交
  4. 23 6月, 2006 8 次提交
  5. 15 4月, 2006 1 次提交
  6. 24 3月, 2006 2 次提交
  7. 07 2月, 2006 1 次提交
  8. 06 1月, 2006 8 次提交
  9. 08 11月, 2005 2 次提交
    • J
      [PATCH] i2c-viapro: Some adjustments · 8750197f
      Jean Delvare 提交于
      The big i2c-viapro SMBus driver update which went into 2.6.14-git1
      introduced a few minor issues. Nothing critical, but I would like a
      few adjustments to be merged in to fix the following problems:
      
      * VIA should not be spelled Via.
      * Frodo Looijaard and Philip Edelbrock did not write the i2c-viapro
        driver.
      * When debugging is disabled, half of messages would be logged.
      * Drop an unneeded masking.
      * Some port reads can be avoided now that the transaction size is
        passed as a parameter to vt596_transaction().
      * SMBus Receive Byte transactions are used for probing too (for
        EEPROMs), so hide errors on these too.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8750197f
    • J
      [PATCH] i2c: writing-client doc update complement · a852daa0
      Jean Delvare 提交于
      My latest update to the writing-clients i2c documentation file was
      incomplete, here's the complement.
      
      Large parts of this file are still way out-of-date, but at least now
      the memory allocation and freeing instructions are consistent.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a852daa0
  10. 31 10月, 2005 1 次提交
  11. 29 10月, 2005 8 次提交
  12. 06 9月, 2005 4 次提交
    • J
      [PATCH] I2C: Centralize 24RF08 corruption prevention · 4c9337da
      Jean Delvare 提交于
      The 24RF08 corruption would better be prevented at i2c-core level than
      at chip driver level, for several reasons:
      * The second quick write should happen as soon as possible after the
        first one, so as to limit the risk that another command is issued on
        the bus inbetween, causing the corruption.
      * As a matter of fact, the protection code at driver level was reworked
        at least three times already, which proves how hard it is to get it
        right there, while it's straightforward at i2c-core level.
      * It's easy to add a new driver that would need the protection, and
        forget to add it. This did happen already.
      * As additional probing addresses can be passed to most i2c chip drivers
        as module parameters, virtually every i2c chip driver would need the
        protection if we want to be really safe.
      * Why duplicate code when we can easily avoid it?
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      4c9337da
    • J
      [PATCH] I2C: Rewrite i2c_probe · a89ba0bc
      Jean Delvare 提交于
      i2c_probe was quite complex and slow, so I rewrote it in a more
      efficient and hopefully clearer way.
      
      Note that this slightly changes the way the module parameters are
      handled. This shouldn't change anything for the most common cases
      though.
      
      For one thing, the function now respects the order of the parameters
      for address probing. It used to always do lower addresses first. The
      new approach gives the user more control.
      
      For another, ignore addresses don't overrule probe addresses anymore.
      This could have been restored the way it was at the cost of a few more
      lines of code, but I don't think it's worth it. Both lists are given
      as module parameters, so a user would be quite silly to specify the
      same addresses in both lists. The normal addresses list is the only
      one that isn't controlled by a module parameter, thus is the only one
      the user may reasonably want to remove an address from.
      
      Another significant change is the fact that i2c_probe() will no more
      stop when a detection function returns -ENODEV. Just because a driver
      found a chip it doesn't support isn't a valid reason to stop all
      probings for this one driver. This closes the long standing lm_sensors
      ticket #1807.
      
        http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticket=1807
      
      I updated the documentation accordingly.
      
      In terms of algorithmic complexity, the new code is way better. If
      I is the ignore address count, P the probe address count, N the
      normal address count and F the force address count, the old code
      was doing 128 * (F + I + P + N) iterations max, while the new code
      does F + P + ((I+1) * N) iterations max. For the most common case
      where F, I and P are empty, this is down from 128 * N to N.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a89ba0bc
    • J
      [PATCH] hwmon: hwmon vs i2c, second round (07/11) · 303760b4
      Jean Delvare 提交于
      The only part left in i2c-sensor is the VRM/VRD/VID handling code.
      This is in no way related to i2c, so it doesn't belong there. Move
      the code to hwmon, where it belongs.
      
      Note that not all hardware monitoring drivers do VRM/VRD/VID
      operations, so less drivers depend on hwmon-vid than there were
      depending on i2c-sensor.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      303760b4
    • J
      [PATCH] hwmon: hwmon vs i2c, second round (06/11) · f4b50261
      Jean Delvare 提交于
      The only thing left in i2c-sensor.h are module parameter definition
      macros. It's only an extension of what i2c.h offers, and this extension
      is not sensors-specific. As a matter of fact, a few non-sensors drivers
      use them. So we better merge them in i2c.h, and get rid of i2c-sensor.h
      altogether.
      Signed-off-by: NJean Delvare <khali@linux-fr>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f4b50261