[PATCH v6 0/2] i2c: Imagination Technologies I2C adapter driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changes from v5:

  * Checked the return value of wait_for_completion_timeout

  * Removed the bus-delay devicetree parameter. After reviewing this logic
    in detail, we found a bug in the formulae involving the bus delay. Moreover,
    this parameter is not used by any product in the wild.

  * Use clk_prepare_enable/clk_disable_unprepare in the resume/suspend hooks.

Changes from v4:

  * Fixed the MODULE_LICENSE to "GPL v2", as per the comment at the top of
    the driver.

Changes from v3:

  * Checked for the return value of clk_enable and clk_prepare_enable calls.

Changes from v2:

  * Removed support for the "linux,i2c-index" devicetree property.

Changes from v1:

  * Cleaned-up the clock filter configuration by adding some macros.

  * Dropped the ISR_ATOMIC macro since it wasn't used anywhere and
    instead just return 0.

  * Rename some functions with the img_i2c_ prefix to follow the rest
    of the driver style.

  * Make img_i2c_{readl,writel} receive a struct img_i2c argument,
    instead of the register base.

  * Removed a duplicated flag in INT_ENABLE_MASK_ATOMIC macro definition.

  * Added the system clock to the devicetree binding. Improved the binding
    document.

  * Added an explanation by James Hogan with details about the timer-based
    abort condition detection.

This patchset adds a new adapter driver supporting the Imagination Technologies
I2C Serial Control Bus (SCB) controller.

The driver supports the usual FIFO-based mode of operation (so-called automatic
in the driver), and also a set lower-level modes of operation that is used
for 0-length writes and for bus recovery routines.

The recently merged bus recovery infrastructure is not used, given this driver
already implements a fairly complex bus recovery, and has been tested
extensively with it.

Based on v3.18-rc2.

James Hogan (2):
  i2c: Add Imagination Technologies I2C SCB driver
  DT: i2c: Add binding document for IMG I2C SCB

 .../devicetree/bindings/i2c/i2c-img-scb.txt        |   26 +
 drivers/i2c/busses/Kconfig                         |   10 +
 drivers/i2c/busses/Makefile                        |    1 +
 drivers/i2c/busses/i2c-img-scb.c                   | 1415 ++++++++++++++++++++
 4 files changed, 1452 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/i2c-img-scb.txt
 create mode 100644 drivers/i2c/busses/i2c-img-scb.c

-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux