1. 16 12月, 2009 1 次提交
  2. 22 7月, 2009 1 次提交
  3. 17 6月, 2009 1 次提交
    • L
      i2c: Use resource_size macro · c6ffddea
      Linus Walleij 提交于
      This replace all instances in the i2c busses tree of
      res->end - res->start + 1 with the handy macro resource_size(res)
      from ioport.h (coming in from platform_device.h).
      
      This was created with a simple
      sed -i -e 's/\([a-z]*\)->end *- *[a-z]*->start *+ *1/resource_size(\1)/g'
      
      Then manually replacing the PXA redefiniton of the same kind
      of macro manually. Recompiled some ARM defconfigs I could find to
      make a rough test so it shouldn't break anything, though I
      couldn't see exactly which configs you need for all the drivers.
      Signed-off-by: NLinus Walleij <linus.walleij@stericsson.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      c6ffddea
  4. 05 6月, 2009 2 次提交
  5. 04 5月, 2009 1 次提交
  6. 29 3月, 2009 1 次提交
  7. 25 2月, 2009 1 次提交
    • R
      i2c: Timeouts reach -1 · a746b578
      Roel Kluin 提交于
      With a postfix decrement these timeouts reach -1 rather than 0, but
      after the loop it is tested whether they have become 0.
      
      As pointed out by Jean Delvare, the condition we are waiting for should
      also be tested before the timeout. With the current order, you could
      exit with a timeout error while the job is actually done.
      Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      a746b578
  8. 07 1月, 2009 1 次提交
  9. 27 11月, 2008 1 次提交
  10. 08 10月, 2008 1 次提交
  11. 03 10月, 2008 1 次提交
  12. 09 9月, 2008 3 次提交
  13. 07 8月, 2008 2 次提交
  14. 15 7月, 2008 1 次提交
  15. 07 7月, 2008 1 次提交
  16. 03 6月, 2008 1 次提交
  17. 23 4月, 2008 2 次提交
  18. 19 4月, 2008 1 次提交
  19. 25 2月, 2008 1 次提交
  20. 17 2月, 2008 1 次提交
  21. 28 1月, 2008 2 次提交
  22. 20 10月, 2007 1 次提交
  23. 13 10月, 2007 1 次提交
  24. 10 9月, 2007 1 次提交
  25. 12 7月, 2007 1 次提交
  26. 26 5月, 2007 1 次提交
    • E
      [ARM] 4403/1: Make the PXA-I2C driver work with lockdep validator · 6776f3d2
      Enrico Scholz 提交于
      Using lockdep validator causes warnings like
      
        INFO: trying to register non-static key.
        the code is fine but needs lockdep annotation.
        turning off the locking correctness validator.
        [<c00241a0>] (dump_stack+0x0/0x14) from [<c00520f8>] (__lock_acquire+0x150/0xc40)
        [<c0051fa8>] (__lock_acquire+0x0/0xc40) from [<c00530a0>] (lock_acquire+0x5c/0x70)
        [<c0053044>] (lock_acquire+0x0/0x70) from [<c01d9e44>] (_spin_lock_irq+0x48/0x58)
         r7:c07e5144 r6:00000000 r5:c015fb94 r4:c07e50b8
        [<c01d9dfc>] (_spin_lock_irq+0x0/0x58) from [<c015fb94>] (i2c_pxa_xfer+0x110/0x2e0)
         r5:c07e50b8 r4:0000001f
      
      This is caused by memcpy'ing a statical initialized spin-lock. This patch
      removes a static pxa_i2c structure which was used only as a source for this
      memcpy() operation. Instead of, members and the spinlock will be
      initialized manually.
      Signed-off-by: NEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      6776f3d2
  27. 11 5月, 2007 1 次提交
  28. 02 5月, 2007 2 次提交
  29. 22 4月, 2007 2 次提交
    • E
      [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX · 7053acbd
      Eric Miao 提交于
      This patch removes the unnecessary bit number from CKENnn_XXXX
      definitions for PXA, so that
      
      	CKEN0_PWM0 --> CKEN_PWM0
      	CKEN1_PWM1 --> CKEN_PWM1
      	...
      	CKEN24_CAMERA --> CKEN_CAMERA
      
      The reasons for the change of these defitions are:
      
      1. they do not scale - they are currently valid for pxa2xx, but
      definitely not valid for pxa3xx, e.g., pxa3xx has bit 3 for camera
      instead of bit 24
      
      2. they are unnecessary - the peripheral name within the definition
      has already announced its usage, we don't need those bit numbers
      to know which peripheral we are going to enable/disable clock for
      
      3. they are inconvenient - think about this: a driver programmer
      for pxa has to remember which bit in the CKEN register to turn
      on/off
      
      Another change in the patch is to make the definitions equal to its
      clock bit index, so that
      
         #define CKEN_CAMERA  (24)
      
      instead of
      
         #define CKEN_CAMERA  (1 << 24)
      
      this change, however, will add a run-time bit shift operation in
      pxa_set_cken(), but the benefit of this change is that it scales
      when bit index exceeds 32, e.g., pxa3xx has two registers CKENA
      and CKENB, totally 64 bit for this, suppose CAMERA clock enabling
      bit is CKENB:10, one can simply define CKEN_CAMERA to be (32 + 10)
      and so that pxa_set_cken() need minimum change to adapt to that.
      Signed-off-by: Neric miao <eric.y.miao@gmail.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      7053acbd
    • M
      [ARM] 4246/1: i2c-pxa: add adapter class to platform specific data · a79220b7
      Matej Kenda 提交于
      Reposted patch for kernel 2.6.21-rc2.
      
      The driver i2c-pxa doesn't set the class member in i2c_adapter, which
      is used to register the I2C adapter. The hwmon (sensors) drivers (e.g.
      adm1021) that are connected to a i2c-pxa adapter don't attach because
      they expect that the adapter supports class I2C_CLASS_HWMON.
      
      This patch adds functionality to allow platforms to set the class and
      pass it as platform_data to the i2c-pxa driver. Sample usage in
      platform code:
      
      static struct i2c_pxa_platform_data my_i2c_platform_data = {
      	.class = I2C_CLASS_HWMON
      };
      
      static void __init my_platform_init(void)
      {
      	(void) platform_add_devices(devices, ARRAY_SIZE(devices));
      
      	pxa_set_i2c_info(&my_i2c_platform_data);
      }
      Signed-off-by: NMatej Kenda <matej.kenda@hermes-softlab.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      a79220b7
  30. 08 2月, 2007 1 次提交
  31. 30 11月, 2006 1 次提交
  32. 29 10月, 2006 1 次提交