Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1cfe62c8 authored by Alexey Starikovskiy's avatar Alexey Starikovskiy Committed by Len Brown
Browse files

ACPI: EC: revert msleep patch

With the better solution for EC interrupt storm issue,
there is no need to use msleep over udelay.

References:
	http://bugzilla.kernel.org/show_bug.cgi?id=11810
	http://bugzilla.kernel.org/show_bug.cgi?id=10724



Signed-off-by: default avatarAlexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 3ad4f597
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -239,10 +239,10 @@ static int ec_check_sci(struct acpi_ec *ec, u8 state)
static int ec_poll(struct acpi_ec *ec)
static int ec_poll(struct acpi_ec *ec)
{
{
	unsigned long delay = jiffies + msecs_to_jiffies(ACPI_EC_DELAY);
	unsigned long delay = jiffies + msecs_to_jiffies(ACPI_EC_DELAY);
	msleep(1);
	udelay(ACPI_EC_UDELAY);
	while (time_before(jiffies, delay)) {
	while (time_before(jiffies, delay)) {
		gpe_transaction(ec, acpi_ec_read_status(ec));
		gpe_transaction(ec, acpi_ec_read_status(ec));
		msleep(1);
		udelay(ACPI_EC_UDELAY);
		if (ec_transaction_done(ec))
		if (ec_transaction_done(ec))
			return 0;
			return 0;
	}
	}