1. 02 5月, 2007 5 次提交
    • J
      i2c-algo-bit: Improve debugging · 494dbb64
      Jean Delvare 提交于
      Improve the debugging features of the i2c-algo-bit driver:
      * Make it possible to compile the driver without debugging support
        at all, making it much smaller.
      * Use dev_dbg() for debugging messages where possible, and dev_err()
        for error messages.
      * Remove redundant debugging messages.
      
      These changes allowed for minor code cleanups, which are included
      as well.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      494dbb64
    • J
      i2c-algo-bit: Implement a 50/50 SCL duty cycle · 424ed67c
      Jean Delvare 提交于
      The original i2c-algo-bit implementation uses a 33/66 SCL duty cycle
      when bits are being written on the bus. While the I2C specification
      doesn't forbid it, this prevents us from driving the I2C bus to its
      max speed, limiting us to 66 kbps max on standard I2C busses.
      
      Implementing a 50/50 duty cycle instead lets us max out the bandwidth
      up to the theoretical max of 100 kbps on standard I2C busses. This is
      particularly important when large amounts of data need to be transfered
      over the bus, as is the case with some TV adapters when the firmware is
      being uploaded.
      
      In fact this change even allows, at least in theory, fast-mode I2C
      support at 125, 166 and 250 kbps. There's no way to reach the
      theoretical max of 400 kbps with this implementation. But I don't
      think we want to put efforts in that direction anyway: software-driven
      I2C is very CPU-intensive and bad for latency.
      
      Other timing changes:
      * Don't set SDA high explicitly on error, we're going to issue a stop
        condition before we leave anyway.
      * If an error occurs when sending the slave address, yield the CPU
        before retrying, and remove the additional delay after the new start
        condition.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      424ed67c
    • J
      i2c-algo-bit: Add i2c_bit_add_numbered_bus · 0f3b4838
      Jean Delvare 提交于
      Add i2c_bit_add_numbered_bus(), which is equivalent to i2c_bit_add_bus
      except that it calls i2c_add_numbered_adapter() at the end instead of
      i2c_add_adapter().
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      0f3b4838
    • J
      i2c-algo-bit: Emulate SMBus block read · 3c4bb241
      Jean Delvare 提交于
      Now that i2c-core lets the i2c bus drivers emulate the SMBus block read
      and SMBus block process call transaction types, let's implement that in
      the popular i2c bit-banging driver. This will also act as a reference
      implementation for other bus drivers which want to do the same.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      3c4bb241
    • J
      i2c-algo-bit: Always send a stop condition before leaving · 1ecac07a
      Jean Delvare 提交于
      The i2c-algo-bit driver doesn't behave well on read errors: it'll
      bail out without even sending a stop condition on the bus, so the bus
      will be stuck. So make sure that we always send a stop condition on
      the bus before we leave. The best way to make sure is to always send
      it at the end of function bit_xfer.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      1ecac07a
  2. 11 12月, 2006 1 次提交
  3. 27 9月, 2006 3 次提交
  4. 13 7月, 2006 2 次提交
  5. 06 9月, 2005 4 次提交
  6. 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