1. 07 11月, 2016 1 次提交
    • N
      i2c: bcm2835: Fix hang for writing messages larger than 16 bytes · e2474541
      Noralf Trønnes 提交于
      Writing messages larger than the FIFO size results in a hang, rendering
      the machine unusable. This is because the RXD status flag is set on the
      first interrupt which results in bcm2835_drain_rxfifo() stealing bytes
      from the buffer. The controller continues to trigger interrupts waiting
      for the missing bytes, but bcm2835_fill_txfifo() has none to give.
      In this situation wait_for_completion_timeout() apparently is unable to
      stop the madness.
      
      The BCM2835 ARM Peripherals datasheet has this to say about the flags:
        TXD: is set when the FIFO has space for at least one byte of data.
        RXD: is set when the FIFO contains at least one byte of data.
        TXW: is set during a write transfer and the FIFO is less than full.
        RXR: is set during a read transfer and the FIFO is or more full.
      
      Implementing the logic from the downstream i2c-bcm2708 driver solved
      the hang problem.
      Signed-off-by: NNoralf Trønnes <noralf@tronnes.org>
      Reviewed-by: NEric Anholt <eric@anholt.net>
      Reviewed-by: NMartin Sperl <kernel@martin.sperl.org>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      e2474541
  2. 22 7月, 2016 1 次提交
  3. 01 12月, 2015 1 次提交
  4. 24 6月, 2015 1 次提交
  5. 17 6月, 2015 1 次提交
  6. 15 3月, 2015 1 次提交
  7. 20 10月, 2014 1 次提交
  8. 17 7月, 2014 1 次提交
    • W
      i2c: i2c-bcm2835: Drop class based scanning to improve bootup time · 37e4f91a
      Wolfram Sang 提交于
      This driver has been flagged to drop class based instantiation. The removal
      improves boot-up time and is unneeded for embedded controllers. Users have been
      warned to switch for some time now, so we can actually do the removal. Keep the
      DEPRECATED flag, so the core can inform users that the behaviour finally
      changed now. After another transition period, this flag can go, too.
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      37e4f91a
  9. 03 6月, 2014 1 次提交
  10. 28 3月, 2014 1 次提交
  11. 10 3月, 2014 1 次提交
  12. 28 11月, 2013 1 次提交
  13. 15 11月, 2013 1 次提交
  14. 12 2月, 2013 1 次提交