i2c: piix4: Fix request_region size
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Fri, 27 Jan 2017 14:59:30 +0000 (15:59 +0100)
committerWolfram Sang <wsa@the-dreams.de>
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 <ricardo.ribalda@gmail.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-piix4.c

index e34d82e..73cc679 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