Thread (15 messages) 15 messages, 4 authors, 2011-12-16

[PATCHv8 3/5] OMAP: I2C: Reset support

From: Cousson, Benoit <hidden>
Date: 2011-12-16 08:51:24
Also in: linux-i2c, linux-omap

Hi Shubhro,

On 12/13/2011 11:55 AM, Shubhrajyoti D wrote:
quoted hunk ↗ jump to hunk
Under some error conditions the i2c driver may do a reset.
Adding a reset field and support in the device-specific code to aid
error-recovery.

Signed-off-by: Shubhrajyoti D<redacted>
---
  arch/arm/plat-omap/i2c.c |    2 ++
  include/linux/i2c-omap.h |    1 +
  2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c
index db071bc..6cddde2 100644
--- a/arch/arm/plat-omap/i2c.c
+++ b/arch/arm/plat-omap/i2c.c
@@ -179,6 +179,8 @@ static inline int omap2_i2c_add_bus(int bus_id)
  	 */
  	if (cpu_is_omap34xx())
  		pdata->set_mpu_wkup_lat = omap_pm_set_max_mpu_wakeup_lat_compat;
+
+	pdata->device_reset = omap_device_reset;
We should avoid introducing any new pdata function pointers since we are 
in the process of removing them for DT support.

Regards,
Benoit
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help