Skip to content

Commit

Permalink
hwmon: (applesmc) Bump max wait
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Henrik Rydberg <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
paragw authored and groeck committed Sep 18, 2012
1 parent 3ceefe4 commit 521cf64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hwmon/applesmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 521cf64

Please sign in to comment.