1. 29 10月, 2005 2 次提交
  2. 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 (01/11) · 9fc6adfa
      Jean Delvare 提交于
      Add support for kind-forced addresses to i2c_probe, like i2c_detect
      has for (essentially) hardware monitoring drivers.
      
      Note that this change will slightly increase the size of the drivers
      using I2C_CLIENT_INSMOD, with no immediate benefit. This is a
      requirement if we want to merge i2c_probe and i2c_detect though, and
      seems a reasonable price to pay in comparison with the previous
      cleanups which saved much more than that (such as the i2c-isa cleanup
      or the i2c address ranges removal.)
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      9fc6adfa
    • J
      [PATCH] I2C: Improve core debugging messages · b6d7b3d1
      Jean Delvare 提交于
      The debugging messages in i2c-core are more confusing than helpful. Some
      lack their trailing newline, some lack a prefix, some are redundant,
      some lack precious information. Here is my attempt to introduce some
      standardization in there.
      
      I also changed two messages in i2c-dev to make it clear they come from
      i2c-dev.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b6d7b3d1
    • J
      [PATCH] I2C: inline i2c_adapter_id · cdcb1921
      Jean Delvare 提交于
      We could inline i2c_adapter_id, as it is really, really short. Doing
      so saves a few bytes both in i2c-core and in the drivers using this
      function.
      
                                                  before     after      diff
      drivers/hwmon/adm1026.ko                     41344     41305       -39
      drivers/hwmon/asb100.ko                      27325     27246       -79
      drivers/hwmon/gl518sm.ko                     20824     20785       -39
      drivers/hwmon/it87.ko                        26419     26380       -39
      drivers/hwmon/lm78.ko                        21424     21385       -39
      drivers/hwmon/lm85.ko                        41034     40939       -95
      drivers/hwmon/w83781d.ko                     39561     39514       -47
      drivers/hwmon/w83792d.ko                     32979     32932       -47
      drivers/i2c/i2c-core.ko                      24708     24531      -177
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      cdcb1921
    • 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
    • J
      [PATCH] I2C: Separate non-i2c hwmon drivers from i2c-core (1/9) · efde723f
      Jean Delvare 提交于
      Temporarily export a few structures and functions from i2c-core, because we
      will soon need them in i2c-isa.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      efde723f
  3. 30 7月, 2005 1 次提交
  4. 12 7月, 2005 1 次提交
  5. 22 6月, 2005 4 次提交
  6. 21 6月, 2005 1 次提交
  7. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4