i2c: piix4: Fix request_region size
authorRicardo Ribalda <[email protected]>
Fri, 27 Jan 2017 14:59:30 +0000 (15:59 +0100)
committerWolfram Sang <[email protected]>
Thu, 9 Feb 2017 16:10:38 +0000 (17:10 +0100)
Since '701dc207bf55 ("i2c: piix4: Avoid race conditions with IMC")' we
are using the SMBSLVCNT register at offset 0x8. We need to request it.

Fixes: 701dc207bf55 ("i2c: piix4: Avoid race conditions with IMC")
Signed-off-by: Ricardo Ribalda Delgado <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/busses/i2c-piix4.c

index e34d82e79b988a781010cad1e0f283617dfb8471..73cc6799cc59b2e8a502c927dae28b80831f34b8 100644 (file)
@@ -58,7 +58,7 @@
 #define SMBSLVDAT      (0xC + piix4_smba)
 
 /* count for request_region */
-#define SMBIOSIZE      8
+#define SMBIOSIZE      9
 
 /* PCI Address Constants */
 #define SMBBA          0x090