1. 23 4月, 2008 2 次提交
    • W
      i2c-algo-pca: Extend for future drivers · c01b0831
      Wolfram Sang 提交于
      The separation between algorithm and adapter was unsharp at places. This was
      partly hidden by the fact, that the ISA-driver allowed just one instance and
      had all private data in static variables. This patch makes neccessary
      preparations to add a platform driver on top of the algorithm, while still
      supporting ISA. Note: Due to lack of hardware, the ISA-driver could not be
      tested except that it builds.
      
      Concerning the core struct i2c_algo_pca_data:
      
      - A private data field was added, all hardware dependant data may go here.
        Similar to other algorithms, now a pointer to this data is passed to the
        adapter's functions. In order to make as less changes as possible to the
        ISA-driver, it leaves the private data empty and still only uses its static
        variables.
      
      - A "reset_chip" function pointer was added; such a functionality must come
        from the adapter, not the algorithm.
      
      - use a variable "i2c_clock" instead of a function pointer "get_clock",
        allowing for write access to a default in case a wrong value was supplied.
      
      In the algorithm-file:
      
      - move "i2c-pca-algo.h" into "linux/i2c-algo-pca.h"
      - now using per_instance timeout values (i2c_adap->timeout)
      - error messages specify the device, not only the driver name
      - restructure initialization to easily support "i2c_add_numbered_adapter"
      - drop "retries" and "own" (i2c address) as they were unused
      
      (The state-machine for I2C-communication was not touched.)
      
      In the ISA-driver:
      
      - adapt to new algorithm
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      c01b0831
    • W
      i2c-algo-pca: Remove trailing whitespaces and unnecessary UTF · 3d438291
      Wolfram Sang 提交于
      Remove trailing whitespaces to make further patches more readable.  Also remove
      an unnecessary UTF-char for simplicity ("us" for microseconds is fine enough).
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      3d438291
  2. 19 4月, 2008 1 次提交
  3. 11 4月, 2008 3 次提交
  4. 28 3月, 2008 1 次提交
  5. 24 3月, 2008 2 次提交
    • T
      i2c-omap: Fix unhandled fault · f08ac4e7
      Tony Lindgren 提交于
      If an I2C interrupt happens between disabling interface clock
      and functional clock, the interrupt handler will produce an
      external abort on non-linefetch error when trying to access
      driver registers while interface clock is disabled.
      
      This patch fixes the problem by saving and disabling i2c-omap
      interrupt before turning off the clocks. Also disable functional
      clock before the interface clock as suggested by Paul Walmsley.
      
      Patch also renames enable/disable_clocks functions to unidle/idle
      functions. Note that the driver is currently not taking advantage
      of the idle interrupts. To use the idle interrupts, driver would
      have to enable interface clock based on the idle interrupt
      and dev->idle flag.
      
      This patch has been tested in linux-omap tree with various omaps.
      
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      f08ac4e7
    • B
      i2c-bfin-twi: Disable BF54x support for now · 70849251
      Bryan Wu 提交于
      The i2c-bfin-twi driver doesn't support BF54x for now due to
      missing header definitions causing the build to fail. Exclude
      it for now, it will be enabled again later.
      Signed-off-by: NBryan Wu <cooloney@kernel.org>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      70849251
  6. 12 3月, 2008 1 次提交
  7. 25 2月, 2008 4 次提交
  8. 17 2月, 2008 1 次提交
  9. 02 2月, 2008 1 次提交
  10. 28 1月, 2008 21 次提交
  11. 26 1月, 2008 2 次提交
  12. 15 1月, 2008 1 次提交
    • J
      i2c-sibyte: Fix an error path · 5cd6e675
      Jean Delvare 提交于
      If the registration of the second I2C channel fails, we really want to
      unregister the first one before we return with an error.
      
      While we're here, fix the printk right above so that it displays the
      real driver name.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      5cd6e675