1. 12 7月, 2012 2 次提交
  2. 08 7月, 2012 11 次提交
  3. 21 1月, 2012 1 次提交
    • C
      i2c: OMAP: Fix OMAP1 build error · 6c5aa407
      Cousson, Benoit 提交于
      CONFIG_OF is not defined for OMAP1 yet and thus the omap1_defconfig build
      generate an error for 3.3-rc1.
      
      drivers/i2c/busses/i2c-omap.c: In function 'omap_i2c_probe':
      drivers/i2c/busses/i2c-omap.c:1021:26: error: 'omap_i2c_of_match' undeclared (first use in this function)
      drivers/i2c/busses/i2c-omap.c:1021:26: note: each undeclared identifier is reported only once for each function it appears in
      
      Wrap omap_i2c_of_match with of_match_ptr() to prevent compilation error in case of OMAP1 build.
      Signed-off-by: NBenoit Cousson <b-cousson@ti.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      6c5aa407
  4. 18 1月, 2012 3 次提交
  5. 18 12月, 2011 1 次提交
  6. 29 10月, 2011 9 次提交
  7. 24 8月, 2011 1 次提交
  8. 11 7月, 2011 1 次提交
  9. 07 3月, 2011 1 次提交
  10. 23 2月, 2011 4 次提交
    • B
      i2c-omap: fixup commit cb527ede whitespace · a5a595cc
      Ben Dooks 提交于
      Fixup the whitespace error noticed in cb527edeSigned-off-by: NBen Dooks <ben-linux@fluff.org>
      a5a595cc
    • R
      i2c-omap: Double clear of ARDY status in IRQ handler · cb527ede
      Richard woodruff 提交于
      This errata occurs when the ARDY interrupt generation is enabled.
      At the begining of every new transaction the ARDY interrupt is cleared.
      
      On continuous i2c transactions where after clearing the ARDY bit from
      I2C_STAT register (clearing the interrupt), the IRQ line is reasserted and the
      I2C_STAT[ARDY] bit set again on 1. In fact, the ARDY status bit is not cleared
      at the write access to I2C_STAT[ARDY] and only the IRQ line is deasserted and
      then reasserted. This is not captured in the usual errata documents.
      
      The workaround is to have a double clear of ARDY status in irq handler.
      Signed-off-by: NRichard woodruff <r-woodruff2@ti.com>
      Signed-off-by: NKeerthy <j-keerthy@ti.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      cb527ede
    • B
      i2c-omap: fix build for !CONFIG_SUSPEND · f72487e7
      Balaji T K 提交于
      fix the build break when !CONFIG_SUSPEND
      
      drivers/i2c/busses/i2c-omap.c:1173: error: lvalue required as unary '&' operand
      make[3]: *** [drivers/i2c/busses/i2c-omap.o] Error 1
      make[2]: *** [drivers/i2c/busses] Error 2
      make[1]: *** [drivers/i2c] Error 2
      make: *** [drivers] Error 2
      Signed-off-by: NBalaji T K <balajitk@ti.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      f72487e7
    • K
      i2c-omap: fix static suspend vs. runtime suspend · adf6e079
      Kevin Hilman 提交于
      When runtime PM is enabled, each OMAP i2c device is suspended after
      each i2c xfer.  However, there are two cases when the static suspend
      methods must be used to ensure the devices are suspended:
      
      1) runtime PM is disabled, either at compile time or dynamically
          via /sys/devices/.../power/control.
      2) an i2c client driver uses i2c during it's suspend callback, thus
         leaving the i2c driver active (NOTE: runtime suspend transitions are
         disabled during system suspend, so i2c activity during system
         suspend will runtime resume the device, but not runtime (re)suspend it.)
      
      Since the actual work to suspend the device is handled by the
      subsytem, call the bus methods to take care of it.
      
      NOTE: This takes care of a known suspend problem on OMAP3 where the
      TWL RTC driver does i2c xfers during its suspend path leaving the i2c
      driver in an active state (since runtime suspend transistions are
      disabled.)
      Signed-off-by: NKevin Hilman <khilman@ti.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      adf6e079
  11. 04 1月, 2011 1 次提交
  12. 21 12月, 2010 1 次提交
  13. 10 11月, 2010 1 次提交
  14. 22 9月, 2010 1 次提交
  15. 20 5月, 2010 2 次提交
    • M
      OMAP3: I2C: Clean up Errata 1p153 handling · 8a9d97d3
      manjugk manjugk 提交于
      Clean up existing Errata 1p153 handling to use generic
      errata handling mechanism through dev flag.
      Signed-off-by: NManjunatha GK <manjugk@ti.com>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: Alexander Shishkin <virtuoso@slind.org>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      8a9d97d3
    • K
      i2c-omap: add mpu wake up latency constraint in i2c · 20c9d2c4
      Kalle Jokiniemi 提交于
      While waiting for completion of the i2c transfer, the
      MPU could hit OFF mode and cause several msecs of
      delay that made i2c transfers fail more often. The
      extra delays and subsequent re-trys cause i2c clocks
      to be active more often. This has also an negative
      effect on power consumption.
      
      Created a mechanism for passing and using the
      constraint setting function in driver code. The used
      mpu wake up latency constraints are now set individually
      per bus, and they are calculated based on clock rate
      and fifo size.
      
      Thanks to Jarkko Nikula, Moiz Sonasath, Paul Walmsley,
      and Nishanth Menon for tuning out the details of
      this patch.
      
      Updates by Kevin as requested by Tony:
      
      - Remove omap_set_i2c_constraint_func() in favor of conditionally
        adding the flag in omap_i2c_add_bus() in order to keep all the OMAP
        conditional checking in a single location.
      - Update set_mpu_wkup_lat prototypes to match OMAP PM layer so
        OMAP PM function can be used directly in pdata.
      
      Cc: Moiz Sonasath <m-sonasath@ti.com>
      Cc: Jarkko Nikula <jhnikula@gmail.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Nishanth Menon <nm@ti.com>
      Signed-off-by: NKalle Jokiniemi <kalle.jokiniemi@digia.com>
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      20c9d2c4