Commit 521cf648 authored by Parag Warudkar's avatar Parag Warudkar Committed by Guenter Roeck

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: default avatarParag Warudkar <parag.lkml@gmail.com>
Signed-off-by: default avatarHenrik Rydberg <rydberg@euromail.se>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 3ceefe43
...@@ -53,10 +53,10 @@ ...@@ -53,10 +53,10 @@
#define APPLESMC_MAX_DATA_LENGTH 32 #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_MIN_WAIT 0x0010
#define APPLESMC_RETRY_WAIT 0x0100 #define APPLESMC_RETRY_WAIT 0x0100
#define APPLESMC_MAX_WAIT 0x8000 #define APPLESMC_MAX_WAIT 0x20000
#define APPLESMC_READ_CMD 0x10 #define APPLESMC_READ_CMD 0x10
#define APPLESMC_WRITE_CMD 0x11 #define APPLESMC_WRITE_CMD 0x11
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment