diff options
author | Parag Warudkar <parag.lkml@gmail.com> | 2012-09-17 17:49:55 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2012-09-18 13:20:49 -0700 |
commit | 521cf6489269f5b223c24857d99c779e91f42d3e (patch) | |
tree | 09118c4e44ee5126b4f578422a7b7229d803fc19 | |
parent | 3ceefe4319636d89d4bdf40dca9471970f942e4f (diff) | |
download | linux-521cf6489269f5b223c24857d99c779e91f42d3e.tar.gz linux-521cf6489269f5b223c24857d99c779e91f42d3e.tar.bz2 linux-521cf6489269f5b223c24857d99c779e91f42d3e.zip |
hwmon: (applesmc) Bump max wait
A heavy-load test on a MacBookPro6,1 is still showing a substantial
amount of read errors. Increasing the maximum wait time to 128 ms
resolves the issue.
Signed-off-by: Parag Warudkar <parag.lkml@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/applesmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c index 282708860517..8f3f6f2c45fd 100644 --- a/drivers/hwmon/applesmc.c +++ b/drivers/hwmon/applesmc.c @@ -53,10 +53,10 @@ #define APPLESMC_MAX_DATA_LENGTH 32 -/* wait up to 32 ms for a status change. */ +/* wait up to 128 ms for a status change. */ #define APPLESMC_MIN_WAIT 0x0010 #define APPLESMC_RETRY_WAIT 0x0100 -#define APPLESMC_MAX_WAIT 0x8000 +#define APPLESMC_MAX_WAIT 0x20000 #define APPLESMC_READ_CMD 0x10 #define APPLESMC_WRITE_CMD 0x11 |