1. 27 9月, 2006 1 次提交
  2. 13 7月, 2006 1 次提交
  3. 23 6月, 2006 8 次提交
  4. 15 4月, 2006 1 次提交
  5. 24 3月, 2006 2 次提交
  6. 07 2月, 2006 1 次提交
  7. 06 1月, 2006 8 次提交
  8. 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
  9. 31 10月, 2005 1 次提交
  10. 29 10月, 2005 8 次提交
  11. 06 9月, 2005 7 次提交
    • 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
    • J
      [PATCH] hwmon: hwmon vs i2c, second round (04/11) · 2ed2dc3c
      Jean Delvare 提交于
      i2c_probe and i2c_detect now do the exact same thing and operate on
      the same data structure, so we can have everyone call i2c_probe.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      2ed2dc3c
    • J
      [PATCH] I2C: fix typo in documentation · 014e4538
      Jean Delvare 提交于
      Fix a typo in the i2c documentation: the i2c bus scanning tool found in
      lm_sensors is called i2cdetect, not i2c_detect.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      014e4538
    • J
      [PATCH] I2C: refactor message in i2c_detach_client · 7bef5594
      Jean Delvare 提交于
      We could refactor the error message 34 different i2c drivers print if
      i2c_detach_client() fails in this function itself. Saves quite a few
      lines of code. Documentation is updated to reflect that change.
      
      Note that this patch should be applied after Rudolf Marek's w83792d
      patches.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7bef5594