Skip to contentSkip to conversation

i2c: tegra: Use engineering names in DT compatible property

PATCH In review Stephen Warren 2 participants 5 messages Jul 5, 2011 – Jul 14, 2011

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

PATCH 1/1 i2c: tegra: Use engineering names in DT compatible property

Engineering names are more stable than marketing names. Hence, use them for Device Tree compatible properties instead.

---
Grant, this is against devicetree/arm and also makes sense for devicetree/test.

 drivers/i2c/busses/i2c-tegra.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-tegra.c +1 -1
index 8914bd1..99b1b6d 100644
@@ -716,7 +716,7 @@ static int tegra_i2c_resume(struct platform_device *pdev)
 #if defined(CONFIG_OF)
 /* Match table for of_platform binding */
 static const struct of_device_id tegra_i2c_of_match[] __devinitconst = {
-	{ .compatible = "nvidia,tegra250-i2c", },
+	{ .compatible = "nvidia,tegra20-i2c", },
 	{},
 };
 MODULE_DEVICE_TABLE(of, tegra_i2c_of_match);
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Stephen Warren

Engineering names are more stable than marketing names. Hence, use them for Device Tree compatible properties instead.

---
Grant, this is against devicetree/arm and also makes sense for devicetree/test.

Ben is the one to pick up this patch.

g.

Quoted 20 lines
 drivers/i2c/busses/i2c-tegra.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-tegra.c +1 -1
index 8914bd1..99b1b6d 100644
@@ -716,7 +716,7 @@ static int tegra_i2c_resume(struct platform_device *pdev)
 #if defined(CONFIG_OF)
 /* Match table for of_platform binding */
 static const struct of_device_id tegra_i2c_of_match[] __devinitconst = {
-	{ .compatible = "nvidia,tegra250-i2c", },
+	{ .compatible = "nvidia,tegra20-i2c", },
 	{},
 };
 MODULE_DEVICE_TABLE(of, tegra_i2c_of_match);
Signature · 1 line
1.7.0.4
#2 lore raw

Grant Likely wrote at Tuesday, July 05, 2011 11:40 PM:

Quoted 12 lines · Stephen Warren
Quoted 7 lines

Engineering names are more stable than marketing names. Hence, use them for Device Tree compatible properties instead.

---
Grant, this is against devicetree/arm and also makes sense for devicetree/test.

Ben is the one to pick up this patch.

I don't believe anyone ever sent a patch to Ben to add tegra_i2c_of_match to the driver; the OF support patch didn't include that part of the code. As such, Ben can't yet apply this to his tree. (Although I note this patch is in Grant's /arm and /test trees, which is probably good enough for now).

Quoted 19 lines
Quoted 19 lines
 drivers/i2c/busses/i2c-tegra.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-tegra.c +1 -2
index 8914bd1..99b1b6d 100644
@@ -716,7 +716,7 @@ static int tegra_i2c_resume(struct platform_device *pdev)
 #if defined(CONFIG_OF)
 /* Match table for of_platform binding */
 static const struct of_device_id tegra_i2c_of_match[] __devinitconst = {
-	{ .compatible = "nvidia,tegra250-i2c", },
+	{ .compatible = "nvidia,tegra20-i2c", },
 	{},
 };
 MODULE_DEVICE_TABLE(of, tegra_i2c_of_match);
--

1.7.0.4

Signature · 1 line
nvpublic
#3 lore raw
Quoted 10 lines · Stephen Warren

Grant Likely wrote at Tuesday, July 05, 2011 11:40 PM:

Quoted 9 lines · Stephen Warren
Quoted 7 lines

Engineering names are more stable than marketing names. Hence, use them for Device Tree compatible properties instead.

---
Grant, this is against devicetree/arm and also makes sense for devicetree/test.

Quoted 8 lines
Quoted 3 lines

Ben is the one to pick up this patch.

I don't believe anyone ever sent a patch to Ben to add tegra_i2c_of_match to the driver; the OF support patch didn't include that part of the code. As such, Ben can't yet apply this to his tree. (Although I note this patch is in Grant's /arm and /test trees, which is probably good enough for now).

Hmmm, I thought it had been done. It certainly is ready to go in. Do you want to put together a roll-up patch that includes all the required changes and post it again? (although double check linux-next first).

g.

Quoted 25 lines
Quoted 4 lines
Quoted 4 lines

?drivers/i2c/busses/i2c-tegra.c | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)

Quoted 16 lines
Quoted 7 lines
drivers/i2c/busses/i2c-tegra.c +0 -0
index 8914bd1..99b1b6d 100644
@@ -716,7 +716,7 @@ static int tegra_i2c_resume(struct platform_device *pdev)
 ?#if defined(CONFIG_OF)

?/* Match table for of_platform binding */

Quoted 9 lines

?static const struct of_device_id tegra_i2c_of_match[] __devinitconst = {
- ? { .compatible = "nvidia,tegra250-i2c", },
+ ? { .compatible = "nvidia,tegra20-i2c", },
? ? {},
?};
?MODULE_DEVICE_TABLE(of, tegra_i2c_of_match);
--
1.7.0.4

--
nvpublic

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
#4 lore raw

Grant Likely wrote at Wednesday, July 13, 2011 5:34 PM:

Quoted 1 line · Stephen Warren

...

Quoted 9 lines
Quoted 4 lines

I don't believe anyone ever sent a patch to Ben to add tegra_i2c_of_match to the driver; the OF support patch didn't include that part of the code. As such, Ben can't yet apply this to his tree. (Although I note this patch is in Grant's /arm and /test trees, which is probably good enough for now).

Hmmm, I thought it had been done. It certainly is ready to go in. Do you want to put together a roll-up patch that includes all the required changes and post it again? (although double check linux-next first).

When John Bonesio posted the patch to add DT support to i2c-tegra.c, the first version of the patch was missing the match table chunk. A few days later, an updated version was posted that added the missing chunk; see:

http://groups.google.com/group/linux.kernel/browse_thread/thread/d2596e8dee819b0f/c8aa04183ea2331e?show_docid=c8aa04183ea2331e

It looks like the first version of the patch has actually been applied to Ben's next-i2c branch rather than the updated version.

I guess it's simplest if I just post a patch that adds the missing chunk based on the latest next-i2c tree. I'll go do that.

Signature · 1 line
nvpublic