aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2012-12-16 15:11:55 -0500
committerJean Delvare <khali@endymion.delvare>2012-12-16 15:11:55 -0500
commit6676a847d48ac48908cf467b42da9045b5463a6e (patch)
tree787263a8cc648b65c7e4e71a586f8fd60315382a /drivers/i2c
parentf6afc8b158951cf2c8492e10e4ee70abc7b213f3 (diff)
i2c-i801: Enable interrupts for all post-ICH5 chips
I did not receive a single bug report after interrupt support was added for a limited number of chips. So I'd say the code is good and should be enabled for all supported chips, that is: ICH5 and later. Signed-off-by: Jean Delvare <khali@linux-fr.org> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-i801.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index e80eafc48e78..1e73638225e1 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -1109,6 +1109,7 @@ static int __devinit i801_probe(struct pci_dev *dev,
1109 /* fall through */ 1109 /* fall through */
1110 default: 1110 default:
1111 priv->features |= FEATURE_I2C_BLOCK_READ; 1111 priv->features |= FEATURE_I2C_BLOCK_READ;
1112 priv->features |= FEATURE_IRQ;
1112 /* fall through */ 1113 /* fall through */
1113 case PCI_DEVICE_ID_INTEL_82801DB_3: 1114 case PCI_DEVICE_ID_INTEL_82801DB_3:
1114 priv->features |= FEATURE_SMBUS_PEC; 1115 priv->features |= FEATURE_SMBUS_PEC;
@@ -1121,16 +1122,6 @@ static int __devinit i801_probe(struct pci_dev *dev,
1121 break; 1122 break;
1122 } 1123 }
1123 1124
1124 /* IRQ processing tested on CougarPoint PCH, ICH5, ICH7-M and ICH10 */
1125 if (dev->device == PCI_DEVICE_ID_INTEL_COUGARPOINT_SMBUS ||
1126 dev->device == PCI_DEVICE_ID_INTEL_82801EB_3 ||
1127 dev->device == PCI_DEVICE_ID_INTEL_ICH7_17 ||
1128 dev->device == PCI_DEVICE_ID_INTEL_ICH8_5 ||
1129 dev->device == PCI_DEVICE_ID_INTEL_ICH9_6 ||
1130 dev->device == PCI_DEVICE_ID_INTEL_ICH10_4 ||
1131 dev->device == PCI_DEVICE_ID_INTEL_ICH10_5)
1132 priv->features |= FEATURE_IRQ;
1133
1134 /* Disable features on user request */ 1125 /* Disable features on user request */
1135 for (i = 0; i < ARRAY_SIZE(i801_feature_names); i++) { 1126 for (i = 0; i < ARRAY_SIZE(i801_feature_names); i++) {
1136 if (priv->features & disable_features & (1 << i)) 1127 if (priv->features & disable_features & (1 << i))