mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
Backport of 2.6 - Workaround the controller hang
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4042 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
3c3999f9f0
commit
0e29665c65
1 file changed
+2
@@ -126,6 +126,8 @@ static int amd756_transaction(void)
|
||||
inw_p(SMB_HOST_ADDRESS), inb_p(SMB_HOST_DATA));
|
||||
|
||||
/* Make sure the SMBus host is ready to start transmitting */
|
||||
/* And wait for the SMBus controller to settle down (avoids hang) */
|
||||
msleep(1);
|
||||
if ((temp = inw_p(SMB_GLOBAL_STATUS)) & (GS_HST_STS | GS_SMB_STS)) {
|
||||
pr_debug(DRV_NAME ": SMBus busy (%04x). Waiting...\n", temp);
|
||||
do {
|
||||
|
||||
Reference in new issue
Block a user