|
@@ -223,7 +223,7 @@ static int ec_check_sci_sync(struct acpi_ec *ec, u8 state)
|
|
|
static int ec_poll(struct acpi_ec *ec)
|
|
|
{
|
|
|
unsigned long flags;
|
|
|
- int repeat = 2; /* number of command restarts */
|
|
|
+ int repeat = 5; /* number of command restarts */
|
|
|
while (repeat--) {
|
|
|
unsigned long delay = jiffies +
|
|
|
msecs_to_jiffies(ec_delay);
|
|
@@ -241,8 +241,6 @@ static int ec_poll(struct acpi_ec *ec)
|
|
|
}
|
|
|
advance_transaction(ec, acpi_ec_read_status(ec));
|
|
|
} while (time_before(jiffies, delay));
|
|
|
- if (acpi_ec_read_status(ec) & ACPI_EC_FLAG_IBF)
|
|
|
- break;
|
|
|
pr_debug(PREFIX "controller reset, restart transaction\n");
|
|
|
spin_lock_irqsave(&ec->lock, flags);
|
|
|
start_transaction(ec);
|