* [RESEND PATCH] i2c: ismt: Add Intel DNV PCI ID
@ 2016-04-08 12:29 Mika Westerberg
2016-04-08 12:34 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Mika Westerberg @ 2016-04-08 12:29 UTC (permalink / raw)
To: Wolfram Sang
Cc: Seth Heasley, Neil Horman, scott.lawson, alexandra.yates,
Andy Shevchenko, Mika Westerberg, linux-i2c
Intel DNV has the same iSMT SMBus host controller than Intel Avoton. Add
DNV PCI ID to the list of supported devices.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
Wolfram,
This is the same patch that conflicted with another patch by Alexandra [1].
We have now verified that it is the iSMT driver that is compatible with
this particular PCI ID (not i2c-i801.c). Not tested on a real hardware as I
do not have such machine available.
[1] https://patchwork.ozlabs.org/patch/584758/
drivers/i2c/busses/i2c-ismt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c
index 7ba795b24e75..24c48e899a22 100644
--- a/drivers/i2c/busses/i2c-ismt.c
+++ b/drivers/i2c/busses/i2c-ismt.c
@@ -76,6 +76,7 @@
#define PCI_DEVICE_ID_INTEL_S1200_SMT0 0x0c59
#define PCI_DEVICE_ID_INTEL_S1200_SMT1 0x0c5a
#define PCI_DEVICE_ID_INTEL_AVOTON_SMT 0x1f15
+#define PCI_DEVICE_ID_INTEL_DNV_SMT 0x19ac
#define ISMT_DESC_ENTRIES 2 /* number of descriptor entries */
#define ISMT_MAX_RETRIES 3 /* number of SMBus retries to attempt */
@@ -181,6 +182,7 @@ static const struct pci_device_id ismt_ids[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_S1200_SMT0) },
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_S1200_SMT1) },
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_AVOTON_SMT) },
+ { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_DNV_SMT) },
{ 0, }
};
--
2.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND PATCH] i2c: ismt: Add Intel DNV PCI ID
2016-04-08 12:29 [RESEND PATCH] i2c: ismt: Add Intel DNV PCI ID Mika Westerberg
@ 2016-04-08 12:34 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2016-04-08 12:34 UTC (permalink / raw)
To: Mika Westerberg, Wolfram Sang
Cc: Seth Heasley, Neil Horman, scott.lawson, alexandra.yates,
linux-i2c
On Fri, 2016-04-08 at 15:29 +0300, Mika Westerberg wrote:
> Intel DNV has the same iSMT SMBus host controller than Intel Avoton.
> Add
> DNV PCI ID to the list of supported devices.
>
> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> ---
> Wolfram,
>
> This is the same patch that conflicted with another patch by Alexandra
> [1].
> We have now verified that it is the iSMT driver that is compatible
> with
> this particular PCI ID (not i2c-i801.c). Not tested on a real hardware
> as I
> do not have such machine available.
>
> [1] https://patchwork.ozlabs.org/patch/584758/
For me seems that Mika is right and this is the right place to add the
ID.
>
> drivers/i2c/busses/i2c-ismt.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-
> ismt.c
> index 7ba795b24e75..24c48e899a22 100644
> --- a/drivers/i2c/busses/i2c-ismt.c
> +++ b/drivers/i2c/busses/i2c-ismt.c
> @@ -76,6 +76,7 @@
> #define PCI_DEVICE_ID_INTEL_S1200_SMT0 0x0c59
> #define PCI_DEVICE_ID_INTEL_S1200_SMT1 0x0c5a
> #define PCI_DEVICE_ID_INTEL_AVOTON_SMT 0x1f15
> +#define PCI_DEVICE_ID_INTEL_DNV_SMT 0x19ac
Nit:
I still prefer to have IDs sorted by their values.
>
> #define ISMT_DESC_ENTRIES 2 /* number of descriptor
> entries */
> #define ISMT_MAX_RETRIES 3 /* number of SMBus retries
> to attempt */
> @@ -181,6 +182,7 @@ static const struct pci_device_id ismt_ids[] = {
> { PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_INTEL_S1200_SMT0) },
> { PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_INTEL_S1200_SMT1) },
> { PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_INTEL_AVOTON_SMT) },
> + { PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_INTEL_DNV_SMT) },
> { 0, }
> };
>
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-08 12:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-08 12:29 [RESEND PATCH] i2c: ismt: Add Intel DNV PCI ID Mika Westerberg
2016-04-08 12:34 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox