i2c: i801: Adding Intel Lewisburg support for iTCO
A message that is not in the archive (sent off-list or not yet received): [PATCH V3] i2c: i801: Adding Intel Lewisburg support for iTCO
PATCH v3 1/1 i2c: i801: Adding Intel Lewisburg support for iTCO
Changes log v2 to v3: Clarified commit message. No changes in code.
Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have been moved to reside under the i801 SMBus host controller whereas previously they were under the LPC device.
This patch adds Intel lewisburg SMBus support for iTCO device. It allows to load watchdog dynamically when the hardware is present. This patch is an addition
to cdc5a3110e7c3ae793f367285789a6bc39c962dc i2c: i801: "add Intel Lewisburg device IDs".
--- drivers/i2c/busses/i2c-i801.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/i2c/busses/i2c-i801.c +2 -0
@@ -1271,6 +1271,8 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)switch (dev->device) {case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS :case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS : +case PCI_DEVICE_ID_INTEL_LEWISBURG_SMBUS : +case PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS :case PCI_DEVICE_ID_INTEL_DNV_SMBUS : priv->features |=FEATURE_I2C_BLOCK_READ ; priv->features |=FEATURE_IRQ ;
Signature · 1 line
1.9.1
Hi Alexandra,
Quoted 22 lines · Alexandra Yates
Changes log v2 to v3: Clarified commit message. No changes in code.
Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have been moved to reside under the i801 SMBus host controller whereas previously they were under the LPC device.
This patch adds Intel lewisburg SMBus support for iTCO device. It allows to load watchdog dynamically when the hardware is present. This patch is an addition
tocdc5a3110e7c3ae793f367285789a6bc39c962dci2c: i801: "add Intel Lewisburg device IDs".Signed-off-by Alexandra Yates <[email protected]>--- drivers/i2c/busses/i2c-i801.c | 2 ++ 1 file changed, 2 insertions(+)drivers/i2c/busses/i2c-i801.c +0
-0
drivers/i2c/busses/i2c-i801.c static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) · line 1278
Quoted 8 lines
drivers/i2c/busses/i2c-i801.c +2
-0@@ -1271,6 +1271,8 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)switch (dev->device) {case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS :case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS : +case PCI_DEVICE_ID_INTEL_LEWISBURG_SMBUS : +case PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS :case PCI_DEVICE_ID_INTEL_DNV_SMBUS : priv->features |=FEATURE_I2C_BLOCK_READ ; priv->features |=FEATURE_IRQ ;
Note this checkpatch warning though:
ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 0123456789ab ("commit description")' #40:
to cdc5a3110e7c3ae793f367285789a6bc39c962dc i2c: i801: "add
It is also common to add a "Fixes:" line with that information so that patch backporting can be automated. And as I said before I would tag the patch for stable as well.
Signature · 2 lines
Jean Delvare SUSE L3 Support
Quoted 4 lines · Jean Delvare
Hi Alexandra,
Quoted 1 line · Alexandra Yates
Changes log v2 to v3: Clarified commit message. No changes in code.
This line should be below the "---".
Quoted 34 lines
Quoted 21 lines
Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have been moved to reside under the i801 SMBus host controller whereas previously they were under the LPC device.
This patch adds Intel lewisburg SMBus support for iTCO device. It allows to load watchdog dynamically when the hardware is present. This patch is an addition
tocdc5a3110e7c3ae793f367285789a6bc39c962dci2c: i801: "add Intel Lewisburg device IDs".Signed-off-by Alexandra Yates <[email protected]>--- drivers/i2c/busses/i2c-i801.c | 2 ++ 1 file changed, 2 insertions(+)drivers/i2c/busses/i2c-i801.c +0
-0drivers/i2c/busses/i2c-i801.c static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) · line 1278
Quoted 8 lines
drivers/i2c/busses/i2c-i801.c +2
-0@@ -1271,6 +1271,8 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)switch (dev->device) {case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS :case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS : +case PCI_DEVICE_ID_INTEL_LEWISBURG_SMBUS : +case PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS :case PCI_DEVICE_ID_INTEL_DNV_SMBUS : priv->features |=FEATURE_I2C_BLOCK_READ ; priv->features |=FEATURE_IRQ ;Reviewed-by Jean Delvare <[email protected]>Note this checkpatch warning though:
Quoted 7 lines
ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit
0123456789ab("commit description")' #40:
tocdc5a3110e7c3ae793f367285789a6bc39c962dci2c: i801: "addIt is also common to add a "Fixes:" line with that information so that patch backporting can be automated. And as I said before I would tag the patch for stable as well.
Can you do this and resend?
Hi,
Quoted 46 lines · Wolfram Sang
Quoted 4 lines · Jean Delvare
Hi Alexandra,
Quoted 1 line · Alexandra Yates
Changes log v2 to v3: Clarified commit message. No changes in code.
This line should be below the "---".
Quoted 38 lines
Quoted 21 lines
Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have been moved to reside under the i801 SMBus host controller whereas previously they were under the LPC device.
This patch adds Intel lewisburg SMBus support for iTCO device. It allows to load watchdog dynamically when the hardware is present. This patch is an addition
tocdc5a3110e7c3ae793f367285789a6bc39c962dci2c: i801: "add Intel Lewisburg device IDs".Signed-off-by Alexandra Yates <[email protected]>--- drivers/i2c/busses/i2c-i801.c | 2 ++ 1 file changed, 2 insertions(+)drivers/i2c/busses/i2c-i801.c +0
-0drivers/i2c/busses/i2c-i801.c static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) · line 1278
Quoted 8 lines
drivers/i2c/busses/i2c-i801.c +2
-0@@ -1271,6 +1271,8 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)switch (dev->device) {case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS :case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS : +case PCI_DEVICE_ID_INTEL_LEWISBURG_SMBUS : +case PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS :case PCI_DEVICE_ID_INTEL_DNV_SMBUS : priv->features |=FEATURE_I2C_BLOCK_READ ; priv->features |=FEATURE_IRQ ;Reviewed-by Jean Delvare <[email protected]>Note this checkpatch warning though:
ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit
0123456789ab("commit description")' #40:
tocdc5a3110e7c3ae793f367285789a6bc39c962dci2c: i801: "add
Quoted 6 lines
Quoted 3 lines
It is also common to add a "Fixes:" line with that information so that patch backporting can be automated. And as I said before I would tag the patch for stable as well.
Can you do this and resend?
Thank you guys for the very constructive feedback. I'll be resending the patches today.
Signature · 2 lines
Thank you, <Alexandra>
Hi Jean,
Quoted 36 lines · Jean Delvare
Hi Alexandra,
Quoted 22 lines · Alexandra Yates
Changes log v2 to v3: Clarified commit message. No changes in code.
Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have been moved to reside under the i801 SMBus host controller whereas previously they were under the LPC device.
This patch adds Intel lewisburg SMBus support for iTCO device. It allows to load watchdog dynamically when the hardware is present. This patch is an addition
tocdc5a3110e7c3ae793f367285789a6bc39c962dci2c: i801: "add Intel Lewisburg device IDs".Signed-off-by Alexandra Yates <[email protected]>--- drivers/i2c/busses/i2c-i801.c | 2 ++ 1 file changed, 2 insertions(+)drivers/i2c/busses/i2c-i801.c +0
-0drivers/i2c/busses/i2c-i801.c static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) · line 1278
Quoted 8 lines
drivers/i2c/busses/i2c-i801.c +2
-0@@ -1271,6 +1271,8 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)switch (dev->device) {case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_SMBUS :case PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_SMBUS : +case PCI_DEVICE_ID_INTEL_LEWISBURG_SMBUS : +case PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS :case PCI_DEVICE_ID_INTEL_DNV_SMBUS : priv->features |=FEATURE_I2C_BLOCK_READ ; priv->features |=FEATURE_IRQ ;Reviewed-by Jean Delvare <[email protected]>
Quoted 7 lines
Note this checkpatch warning though:
ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit
0123456789ab("commit description")' #40:
tocdc5a3110e7c3ae793f367285789a6bc39c962dci2c: i801: "addIt is also common to add a "Fixes:" line with that information so that
I'm adding all your recommendations. However, Can you help me understand what do you mean by tagging the patch for stable? I've been looking online but I can't find such tag name.
Do you mean CCing the patch to stable mailing list?
Quoted 3 lines
patch backporting can be automated. And as I said before I would tag the patch for stable as well.
Signature · 2 lines
Thank you, <Alexandra>
Quoted 1 line
Do you mean CCing the patch to stable mailing list?
Yes, he means that. Although how this is handled depends on the subsystem. I prefer a hint like "I think this patch is for stable" and then I'll add the proper cc when committing. This way, I can override the decision if necessary without noise on the stable mailing list.