Commit 521cf6489269f5b223c24857d99c779e91f42d3e
Committed by
Guenter Roeck
1 parent
3ceefe4319
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/hwmon/applesmc.c
... | ... | @@ -53,10 +53,10 @@ |
53 | 53 | |
54 | 54 | #define APPLESMC_MAX_DATA_LENGTH 32 |
55 | 55 | |
56 | -/* wait up to 32 ms for a status change. */ | |
56 | +/* wait up to 128 ms for a status change. */ | |
57 | 57 | #define APPLESMC_MIN_WAIT 0x0010 |
58 | 58 | #define APPLESMC_RETRY_WAIT 0x0100 |
59 | -#define APPLESMC_MAX_WAIT 0x8000 | |
59 | +#define APPLESMC_MAX_WAIT 0x20000 | |
60 | 60 | |
61 | 61 | #define APPLESMC_READ_CMD 0x10 |
62 | 62 | #define APPLESMC_WRITE_CMD 0x11 |