diff options
Diffstat (limited to 'drivers/hwmon/applesmc.c')
-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 d5bd0cadbf31..9a43c4b60ea9 100644 --- a/drivers/hwmon/applesmc.c +++ b/drivers/hwmon/applesmc.c | |||
@@ -163,7 +163,7 @@ static unsigned int key_at_index; | |||
163 | static struct workqueue_struct *applesmc_led_wq; | 163 | static struct workqueue_struct *applesmc_led_wq; |
164 | 164 | ||
165 | /* | 165 | /* |
166 | * __wait_status - Wait up to 2ms for the status port to get a certain value | 166 | * __wait_status - Wait up to 10ms for the status port to get a certain value |
167 | * (masked with 0x0f), returning zero if the value is obtained. Callers must | 167 | * (masked with 0x0f), returning zero if the value is obtained. Callers must |
168 | * hold applesmc_lock. | 168 | * hold applesmc_lock. |
169 | */ | 169 | */ |
@@ -173,7 +173,7 @@ static int __wait_status(u8 val) | |||
173 | 173 | ||
174 | val = val & APPLESMC_STATUS_MASK; | 174 | val = val & APPLESMC_STATUS_MASK; |
175 | 175 | ||
176 | for (i = 0; i < 200; i++) { | 176 | for (i = 0; i < 1000; i++) { |
177 | if ((inb(APPLESMC_CMD_PORT) & APPLESMC_STATUS_MASK) == val) { | 177 | if ((inb(APPLESMC_CMD_PORT) & APPLESMC_STATUS_MASK) == val) { |
178 | if (debug) | 178 | if (debug) |
179 | printk(KERN_DEBUG | 179 | printk(KERN_DEBUG |