i2c: piix4: Fix probing of reserved ports on AMD Family 16h Model 30h
authorJean Delvare <jdelvare@suse.de>
Fri, 2 Aug 2019 12:54:38 +0000 (14:54 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 29 Aug 2019 20:18:54 +0000 (22:18 +0200)
commit528d53a1592b0e27c423f7cafc1df85f77fc1163
treed6a80da64a7cd5a6f2eea87279c9cb3a61dc2fd0
parentba919403566dba52bf074851896ba0ca7f72c1e2
i2c: piix4: Fix probing of reserved ports on AMD Family 16h Model 30h

Prevent bus timeouts and resets on Family 16h Model 30h by not probing
reserved Ports 3 and 4.

According to the AMD BIOS and Kernel Developer's Guides (BKDG), Port 3
and Port 4 are reserved on the following devices:
 - Family 15h Model 60h-6Fh
 - Family 15h Model 70h-7Fh
 - Family 16h Model 30h-3Fh

Based on earlier work by Andrew Cooks.

Reported-by: Andrew Cooks <andrew.cooks@opengear.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-piix4.c