Skip to contentSkip to conversation

Topcliff: Update PCH_I2C driver to 2.6.36

PATCH In review Tomoya 3 participants 8 messages Oct 26, 2010 – Oct 27, 2010 I2C subsystem host drivers

lore
Share & tools
lore

Tomoya

author
#0 lore raw

PATCH v3 1/1 Topcliff: Update PCH_I2C driver to 2.6.36

Could you merge this patch to 2.6.37 ?

Change Summary
- Change Author
- Change Name of "Signed-off-by"

Thanks, Tomoya(OKI SEMICONDUCTOR CO., LTD.)

---
I2C driver of Topcliff PCH

Topcliff PCH is the platform controller hub that is going to be used in Intel's upcoming general embedded platform. All IO peripherals in Topcliff PCH are actually devices sitting on AMBA bus. Topcliff PCH has I2C I/F. Using this I/F, it is able to access system devices connected to I2C.

---
 drivers/i2c/busses/Kconfig   |    8 +
 drivers/i2c/busses/Makefile  |    1 +
 drivers/i2c/busses/i2c-pch.c |  908 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 917 insertions(+), 0 deletions(-)
 create mode 100644 drivers/i2c/busses/i2c-pch.c
drivers/i2c/busses/Kconfig +8 -0
index bceafbf..b7b132d 100644
@@ -613,6 +613,14 @@ config I2C_XILINX
 	  This driver can also be built as a module.  If so, the module
 	  will be called xilinx_i2c.
 
+config PCH_I2C
+	tristate "PCH I2C of Intel Topcliff"
+	depends on PCI
+	help
+	  This driver is for PCH(Platform controller Hub) I2C of Topcliff which
+	  is an IOH(Input/Output Hub) for x86 embedded processor.
+	  This driver can access PCH I2C bus device.
+
 comment "External I2C/SMBus adapter drivers"
 
 config I2C_PARPORT
drivers/i2c/busses/Makefile +1 -0
index 936880b..aa04135 100644
@@ -59,6 +59,7 @@ obj-$(CONFIG_I2C_STU300)	+= i2c-stu300.o
 obj-$(CONFIG_I2C_VERSATILE)	+= i2c-versatile.o
 obj-$(CONFIG_I2C_OCTEON)	+= i2c-octeon.o
 obj-$(CONFIG_I2C_XILINX)	+= i2c-xiic.o
+obj-$(CONFIG_PCH_I2C)		+= i2c-pch.o
 
 # External I2C/SMBus adapter drivers
 obj-$(CONFIG_I2C_PARPORT)	+= i2c-parport.o
drivers/i2c/busses/i2c-pch.c new file +908 -0

908 lines not on this page · raw message

Signature · 1 line
1.6.0.6
#1 lore raw

Hi Tomoya,

Quoted 17 lines · Tomoya

Could you merge this patch to 2.6.37 ?

Change Summary
- Change Author
- Change Name of "Signed-off-by"

Thanks, Tomoya(OKI SEMICONDUCTOR CO., LTD.)

---
I2C driver of Topcliff PCH

Topcliff PCH is the platform controller hub that is going to be used in Intel's upcoming general embedded platform. All IO peripherals in Topcliff PCH are actually devices sitting on AMBA bus. Topcliff PCH has I2C I/F. Using this I/F, it is able to access system devices connected to I2C.

Quoted 7 lines
---
 drivers/i2c/busses/Kconfig   |    8 +
 drivers/i2c/busses/Makefile  |    1 +
 drivers/i2c/busses/i2c-pch.c |  908 ++++++++++++++++++++++++++++++++++++++++++

I don't like this driver name at all. For one thing, "pch" is too short. Many other vendors could come up with names with acronym "PCH".

For another, Intel has many PCH (Platform Controller Hub) chips, some of them (5/3400 Series, Cougar Point, Patsburg) are or will be supported by the i2c-i801 driver, some of them (Moorestown) will be supported by the upcoming i2c-intel-mid driver (even though the name "PCH" is surprisingly missing from the source code) and your driver only supports one particular model.

So please find a name which accurately represents the hardware your driver is for. i2c-topcliff would be fine with me, but you will have to check with Intel, as I know they are quite picky with the usage of code names.

As for the driver code, I will not be able to review it, sorry. It's not in my area, I don't have the time and I don't have the hardware. I think it would make sense for Intel people to review and test it before it gets upstream.

Signature · 1 line
Jean Delvare
#2 lore raw
Quoted 9 lines · Jean Delvare

I don't like this driver name at all. For one thing, "pch" is too short. Many other vendors could come up with names with acronym "PCH".

For another, Intel has many PCH (Platform Controller Hub) chips, some of them (5/3400 Series, Cougar Point, Patsburg) are or will be supported by the i2c-i801 driver, some of them (Moorestown) will be supported by the upcoming i2c-intel-mid driver (even though the name "PCH" is surprisingly missing from the source code) and your driver only supports one particular model.

Yes, this driver suppors only Topcliff(Intel Atom E6xx series) now.

Quoted 5 lines

So please find a name which accurately represents the hardware your driver is for. i2c-topcliff would be fine with me, but you will have to check with Intel, as I know they are quite picky with the usage of code names.

Most drivers for Topcliff have been accepted with "pch_" prefix. Only SPI driver, like you indicates, have accepted as spi_topcliff_pch.c. If you request, I can modify "pch_i2c.c" to "i2c-topcliff_pch.c".

Quoted 5 lines

As for the driver code, I will not be able to review it, sorry. It's not in my area, I don't have the time and I don't have the hardware. I think it would make sense for Intel people to review and test it before it gets upstream.

No problem!
After reviewing by Intel(:CCed), we started posting to LKML and we have already tested this patch on the EVA Board.

Tuhs, I want you to merge to this patch to 2.6.37 ASAP.

Thanks, Tomoya(OKI SEMICONDUCTOR CO., LTD.)

----- Original Message -----
From: "Jean Delvare" <[email protected]>
To: "Tomoya" <tomoya-linux-ECg8zkTtlr0C6LszWs/[email protected]>
Cc: "Samuel Ortiz" <sameo-VuQAYsv1563Yd54FQh9/[email protected]>; "Wolfram Sang" <[email protected]>; "Ralf Baechle" <ralf-6z/[email protected]>; <[email protected]>; "LKML" <[email protected]>; "Ben Dooks (embedded platforms)" <[email protected]>; "Linus Walleij" <linus.walleij-0IS4wlFg1OjSUeElwK9/[email protected]>; "srinidhi kasagar" <srinidhi.kasagar-0IS4wlFg1OjSUeElwK9/[email protected]>; "Tomoya MORINAGA" <morinaga526-ECg8zkTtlr0C6LszWs/[email protected]>; "Wang Qi"" <[email protected]>; "Wang Yong Y"" <[email protected]>; <[email protected]>; <[email protected]>; <[email protected]>
Sent: Tuesday, October 26, 2010 5:20 PM
Subject: Re: [PATCH v3] Topcliff: Update PCH_I2C driver to 2.6.36

Quoted 51 lines

Hi Tomoya,

Quoted 17 lines · Tomoya

Could you merge this patch to 2.6.37 ?

Change Summary
- Change Author
- Change Name of "Signed-off-by"

Thanks, Tomoya(OKI SEMICONDUCTOR CO., LTD.)

---
I2C driver of Topcliff PCH

Topcliff PCH is the platform controller hub that is going to be used in Intel's upcoming general embedded platform. All IO peripherals in Topcliff PCH are actually devices sitting on AMBA bus. Topcliff PCH has I2C I/F. Using this I/F, it is able to access system devices connected to I2C.

Quoted 7 lines
---
 drivers/i2c/busses/Kconfig   |    8 +
 drivers/i2c/busses/Makefile  |    1 +
 drivers/i2c/busses/i2c-pch.c |  908 ++++++++++++++++++++++++++++++++++++++++++

I don't like this driver name at all. For one thing, "pch" is too short. Many other vendors could come up with names with acronym "PCH".

For another, Intel has many PCH (Platform Controller Hub) chips, some of them (5/3400 Series, Cougar Point, Patsburg) are or will be supported by the i2c-i801 driver, some of them (Moorestown) will be supported by the upcoming i2c-intel-mid driver (even though the name "PCH" is surprisingly missing from the source code) and your driver only supports one particular model.

So please find a name which accurately represents the hardware your driver is for. i2c-topcliff would be fine with me, but you will have to check with Intel, as I know they are quite picky with the usage of code names.

As for the driver code, I will not be able to review it, sorry. It's not in my area, I don't have the time and I don't have the hardware. I think it would make sense for Intel people to review and test it before it gets upstream.

Signature · 1 line
Jean Delvare
#3 lore raw
Quoted 12 lines · Tomoya MORINAGA
Quoted 9 lines · Jean Delvare

I don't like this driver name at all. For one thing, "pch" is too short. Many other vendors could come up with names with acronym "PCH".

For another, Intel has many PCH (Platform Controller Hub) chips, some of them (5/3400 Series, Cougar Point, Patsburg) are or will be supported by the i2c-i801 driver, some of them (Moorestown) will be supported by the upcoming i2c-intel-mid driver (even though the name "PCH" is surprisingly missing from the source code) and your driver only supports one particular model.

Quoted 8 lines

Yes, this driver suppors only Topcliff(Intel Atom E6xx series) now.

Quoted 4 lines

So please find a name which accurately represents the hardware your driver is for. i2c-topcliff would be fine with me, but you will have to check with Intel, as I know they are quite picky with the usage of code names.

Most drivers for Topcliff have been accepted with "pch_" prefix.

If other maintainers like their subsystem to be messy and confusing, up to them ;)

Quoted 2 lines

Only SPI driver, like you indicates, have accepted as spi_topcliff_pch.c. If you request, I can modify "pch_i2c.c" to "i2c-topcliff_pch.c".

The _pch becomes redundant then, i2c-topcliff.c would be enough, but both are fine with me, as my initial concern is gone.

Quoted 10 lines
Quoted 4 lines

As for the driver code, I will not be able to review it, sorry. It's not in my area, I don't have the time and I don't have the hardware. I think it would make sense for Intel people to review and test it before it gets upstream.

No problem!
After reviewing by Intel(:CCed), we started posting to LKML and we have already tested this patch on the EVA Board.

Tuhs, I want you to merge to this patch to 2.6.37 ASAP.

There's no Reviewed-by, Acked-by or Signed-off-by from anyone at Intel in the patch you posted. Which, as far as I am concerned, means that nobody at Intel looked at the code so far. If this is incorrect, please resend the patch with the appropriate acknowledgments and driver history, so that it is clearer, who did what.

Signature · 1 line
Jean Delvare
#4 lore raw

Hi Jean,

Quoted 2 lines · Jean Delvare

The _pch becomes redundant then, i2c-topcliff.c would be enough, but both are fine with me, as my initial concern is gone.

I agree.
I will modify to "i2c-topcliff.c".

Quoted 2 lines

There's no Reviewed-by, Acked-by or Signed-off-by from anyone at Intel in the patch you posted.

Must we get Intel's signature ?
We have already got the following. Isn't this enough ?

Quoted 1 line

Though I haven't heard like the requirement,
if Intel's signature is mandatory, I will request to Intel.

Thanks, Tomoya(OKI SEMICONDUCTOR CO., LTD.)

#5 lore raw
Quoted 8 lines · Tomoya MORINAGA

Hi Jean,

Quoted 2 lines · Jean Delvare

The _pch becomes redundant then, i2c-topcliff.c would be enough, but both are fine with me, as my initial concern is gone.

I agree.
I will modify to "i2c-topcliff.c".

Quoted 8 lines
Quoted 2 lines

There's no Reviewed-by, Acked-by or Signed-off-by from anyone at Intel in the patch you posted.

Must we get Intel's signature ?
We have already got the following. Isn't this enough ?

Quoted 1 line

Though I haven't heard like the requirement,
if Intel's signature is mandatory, I will request to Intel.

It's not mandatory, but the time Ben and myself have to review new drivers is scarce, so it's in your own interest to have the code reviewed by people with more time and more interest in the specific hardware. I can only imagine that Intel wants Topcliff to be supported as soon as possible by the Linux kernel, so they should certainly have resources to allocate for the review and testing.

Signature · 1 line
Jean Delvare
#6 lore raw
Quoted 6 lines · Jean Delvare

It's not mandatory, but the time Ben and myself have to review new drivers is scarce, so it's in your own interest to have the code reviewed by people with more time and more interest in the specific hardware. I can only imagine that Intel wants Topcliff to be supported as soon as possible by the Linux kernel, so they should certainly have resources to allocate for the review and testing.

I see.

I will reuest Intel to review again and put signature.

Quoted 1 line

Hi Qi and Yong Y

Could you review this patch again and put signature?

Thanks, Tomoya(OKI SEMICONDUCTOR CO., LTD.)

----- Original Message -----
From: "Jean Delvare" <[email protected]>
To: "Tomoya MORINAGA" <tomoya-linux-ECg8zkTtlr0C6LszWs/[email protected]>
Cc: "Samuel Ortiz" <sameo-VuQAYsv1563Yd54FQh9/[email protected]>; "Wolfram Sang" <[email protected]>; "Ralf Baechle"
<ralf-6z/[email protected]>; <[email protected]>; "LKML" <[email protected]>; "Ben Dooks " <[email protected]>; "Linus Walleij" <linus.walleij-0IS4wlFg1OjSUeElwK9/[email protected]>; "srinidhi kasagar" <srinidhi.kasagar-0IS4wlFg1OjSUeElwK9/[email protected]>; "Tomoya MORINAGA" <morinaga526-ECg8zkTtlr0C6LszWs/[email protected]>; "Wang Qi" <[email protected]>; "Wang Yong Y" <[email protected]>; <[email protected]>; <[email protected]>; <[email protected]>
Sent: Tuesday, October 26, 2010 8:26 PM
Subject: Re: [PATCH v3] Topcliff: Update PCH_I2C driver to 2.6.36

Quoted 33 lines · Tomoya MORINAGA
Quoted 8 lines

Hi Jean,

Quoted 2 lines · Jean Delvare

The _pch becomes redundant then, i2c-topcliff.c would be enough, but both are fine with me, as my initial concern is gone.

I agree.
I will modify to "i2c-topcliff.c".

Quoted 8 lines
Quoted 2 lines

There's no Reviewed-by, Acked-by or Signed-off-by from anyone at Intel in the patch you posted.

Must we get Intel's signature ?
We have already got the following. Isn't this enough ?

Quoted 1 line

Though I haven't heard like the requirement,
if Intel's signature is mandatory, I will request to Intel.

It's not mandatory, but the time Ben and myself have to review new drivers is scarce, so it's in your own interest to have the code reviewed by people with more time and more interest in the specific hardware. I can only imagine that Intel wants Topcliff to be supported as soon as possible by the Linux kernel, so they should certainly have resources to allocate for the review and testing.

Signature · 6 lines
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
#7 lore raw
In reply to Jean Delvare

2010/10/26 Jean Delvare <[email protected]>:

Quoted 5 lines · Tomoya MORINAGA
Quoted 4 lines

Must we get Intel's signature ?
We have already got the following. Isn't  this enough ?

Quoted 1 line
Quoted 7 lines
Quoted 2 lines

Though I haven't heard like the requirement,
if Intel's signature is mandatory, I will request to Intel.

It's not mandatory, but the time Ben and myself have to review new drivers is scarce, so it's in your own interest to have the code reviewed by people with more time and more interest in the specific hardware.

I agree. My Reviewed-by is mainly about the code structure, a few antipatterns were removed and it looks nice to me now. We indeed need someone who knows the hardware to look at this.

Yours,
Linus Walleij