1. 23 4月, 2008 3 次提交
    • 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
    • J
      i2c: Remove the algorithm drivers from the config menu · 3845de25
      Jean Delvare 提交于
      The algorithm drivers are helper drivers that are selected automatically
      as needed. There's no point in listing them in the config menu, it can
      only confuse users and waste their time.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      3845de25
  2. 19 4月, 2008 2 次提交
  3. 15 4月, 2008 1 次提交
  4. 11 4月, 2008 3 次提交
  5. 28 3月, 2008 1 次提交
  6. 24 3月, 2008 3 次提交
    • R
      i2c: Fix docbook problem · 8c07e46f
      Randy Dunlap 提交于
      Sometimes kernel-doc and xmlto conspire to create output that is invalid
      and causes problems.  Until I know a real/better solution, change the
      source code that causes this.
      
      If anyone has better fixes or can just explain what is happening here,
      that would be great.
      
      xmlto: input does not validate (status 1)
      mmotm-2008-0314-1449/Documentation/DocBook/kernel-api.xml:71468: parser error : Opening and ending tag mismatch: programlisting line 71464 and para
         </para><para>
                ^
      mmotm-2008-0314-1449/Documentation/DocBook/kernel-api.xml:71480: parser error : Opening and ending tag mismatch: para line 71473 and programlisting
      </programlisting></informalexample>
                       ^
      make[1]: *** [Documentation/DocBook/kernel-api.html] Error 1
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      8c07e46f
    • 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
  7. 12 3月, 2008 3 次提交
  8. 25 2月, 2008 4 次提交
  9. 17 2月, 2008 1 次提交
  10. 08 2月, 2008 1 次提交
  11. 06 2月, 2008 1 次提交
  12. 02 2月, 2008 1 次提交
  13. 28 1月, 2008 16 次提交