Skip to contentSkip to conversation

i2c_omap: correct OMAP_I2C_SYSC_REG offset

PATCH In review Alexander Aring 5 participants 6 messages Dec 8, 2011 – Dec 9, 2011 4 messages not in the archive

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c_omap: correct OMAP_I2C_SYSC_REG offset

Correct OMAP_I2C_SYSC_REG offset in omap4 register map. Offset 0x20 is reserved and OMAP_I2C_SYSC_REG has 0x10 as offset.

---
 drivers/i2c/busses/i2c-omap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-omap.c +1 -1
index a43d002..fc3bb37 100644
@@ -235,7 +235,7 @@ static const u8 reg_map_ip_v2[] = {
 	[OMAP_I2C_BUF_REG] = 0x94,
 	[OMAP_I2C_CNT_REG] = 0x98,
 	[OMAP_I2C_DATA_REG] = 0x9c,
-	[OMAP_I2C_SYSC_REG] = 0x20,
+	[OMAP_I2C_SYSC_REG] = 0x10,
 	[OMAP_I2C_CON_REG] = 0xa4,
 	[OMAP_I2C_OA_REG] = 0xa8,
 	[OMAP_I2C_SA_REG] = 0xac,
Signature · 1 line
1.7.0.4
#2 lore raw
In reply to a message not in the archive
Quoted 4 lines · Alexander Aring

Correct OMAP_I2C_SYSC_REG offset in omap4 register map. Offset 0x20 is reserved and OMAP_I2C_SYSC_REG has 0x10 as offset.

Thanks for the patch!

A different approach to fix this is being done by Shubhrajyoti[1] as part of his reset series.

However, I think we should probably apply this patch for v3.2 and also send to the stable kernel for v3.0 & v3.1.

Shubhrajyoti/Jon, any objections to me queuing this fix for v3.2 (and stable.) It would just mean rebasing your other fixes and cleanup series on top of this.

Thanks,

Kevin

[1] http://marc.info/?l=linux-omap&m=132281779526640&w=2

Quoted 17 lines
---
 drivers/i2c/busses/i2c-omap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-omap.c +1 -1
index a43d002..fc3bb37 100644
@@ -235,7 +235,7 @@ static const u8 reg_map_ip_v2[] = {
 	[OMAP_I2C_BUF_REG] = 0x94,
 	[OMAP_I2C_CNT_REG] = 0x98,
 	[OMAP_I2C_DATA_REG] = 0x9c,
-	[OMAP_I2C_SYSC_REG] = 0x20,
+	[OMAP_I2C_SYSC_REG] = 0x10,
 	[OMAP_I2C_CON_REG] = 0xa4,
 	[OMAP_I2C_OA_REG] = 0xa8,
 	[OMAP_I2C_SA_REG] = 0xac,
#4 lore raw
In reply to a message not in the archive

Hi Kevin,

Quoted 12 lines · Kevin Hilman
Quoted 4 lines · Alexander Aring

Correct OMAP_I2C_SYSC_REG offset in omap4 register map. Offset 0x20 is reserved and OMAP_I2C_SYSC_REG has 0x10 as offset.

Thanks for the patch!

A different approach to fix this is being done by Shubhrajyoti[1] as part of his reset series.

Quoted 6 lines

However, I think we should probably apply this patch for v3.2 and also send to the stable kernel for v3.0& v3.1.

Shubhrajyoti/Jon, any objections to me queuing this fix for v3.2 (and stable.) It would just mean rebasing your other fixes and cleanup series on top of this.

I have no issue with that and I am in favour of getting the fix in now.

Cheers
Jon

Quoted 18 lines
Quoted 18 lines
---
  drivers/i2c/busses/i2c-omap.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-omap.c +1 -1
index a43d002..fc3bb37 100644
@@ -235,7 +235,7 @@ static const u8 reg_map_ip_v2[] = {
  	[OMAP_I2C_BUF_REG] = 0x94,
  	[OMAP_I2C_CNT_REG] = 0x98,
  	[OMAP_I2C_DATA_REG] = 0x9c,
-	[OMAP_I2C_SYSC_REG] = 0x20,
+	[OMAP_I2C_SYSC_REG] = 0x10,
  	[OMAP_I2C_CON_REG] = 0xa4,
  	[OMAP_I2C_OA_REG] = 0xa8,
  	[OMAP_I2C_SA_REG] = 0xac,
#6 lore raw
In reply to a message not in the archive
Quoted 15 lines · Jon Hunter

Hi Kevin,

Quoted 12 lines · Kevin Hilman
Quoted 4 lines · Alexander Aring

Correct OMAP_I2C_SYSC_REG offset in omap4 register map. Offset 0x20 is reserved and OMAP_I2C_SYSC_REG has 0x10 as offset.

Thanks for the patch!

A different approach to fix this is being done by Shubhrajyoti[1] as part of his reset series.

Quoted 8 lines
Quoted 6 lines

However, I think we should probably apply this patch for v3.2 and also send to the stable kernel for v3.0& v3.1.

Shubhrajyoti/Jon, any objections to me queuing this fix for v3.2 (and stable.) It would just mean rebasing your other fixes and cleanup series on top of this.

I have no issue with that and I am in favour of getting the fix in now.

I too have no issues.

Quoted 23 lines

Cheers
Jon

Quoted 19 lines
Quoted 19 lines
---
  drivers/i2c/busses/i2c-omap.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-omap.c +1 -1
index a43d002..fc3bb37 100644
@@ -235,7 +235,7 @@ static const u8 reg_map_ip_v2[] = {
      [OMAP_I2C_BUF_REG] = 0x94,
      [OMAP_I2C_CNT_REG] = 0x98,
      [OMAP_I2C_DATA_REG] = 0x9c,
-    [OMAP_I2C_SYSC_REG] = 0x20,
+    [OMAP_I2C_SYSC_REG] = 0x10,
      [OMAP_I2C_CON_REG] = 0xa4,
      [OMAP_I2C_OA_REG] = 0xa8,
      [OMAP_I2C_SA_REG] = 0xac,
#8 lore raw
In reply to a message not in the archive
Quoted 19 lines · Shubhrajyoti
Quoted 18 lines · Jon Hunter

Hi Kevin,

Quoted 15 lines · Kevin Hilman
Quoted 4 lines · Alexander Aring

Correct OMAP_I2C_SYSC_REG offset in omap4 register map. Offset 0x20 is reserved and OMAP_I2C_SYSC_REG has 0x10 as offset.

Thanks for the patch!

A different approach to fix this is being done by Shubhrajyoti[1] as part of his reset series.

However, I think we should probably apply this patch for v3.2 and also send to the stable kernel for v3.0& v3.1.

Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

Shubhrajyoti/Jon, any objections to me queuing this fix for v3.2 (and stable.) It would just mean rebasing your other fixes and cleanup series on top of this.

I have no issue with that and I am in favour of getting the fix in now.

I too have no issues.

OK, I've added this to my for_3.2/fixes/i2c branch.

Thanks,

Kevin

#9 lore raw
In reply to Shubhrajyoti

Ben,

[...]

Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

Shubhrajyoti/Jon, any objections to me queuing this fix for v3.2 (and stable.) It would just mean rebasing your other fixes and cleanup series on top of this.

I have no issue with that and I am in favour of getting the fix in now.

I too have no issues.

I've queued this fix in my i2c fixes branch[1], and added a
Cc: [email protected] so it makes it into stable as well.

Note, This branch also includes the other fix I sent a couple days ago[2], so pulling this branch will get you all the OMAP I2C fixes for v3.2.

Thanks,

Kevin

[1]
git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git for_3.2/fixes/i2c

[2] Subject: [PATCH] I2C: OMAP: fix FIFO usage for OMAP4.