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:
Rudolf Marek committed 2006-06-06 16:32:41 +00:00
1 parent 3c3999f9f0
commit 0e29665c65
1 file changed
+2
+2
View File
@@ -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 {