[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220929093200.v6.11.I7309b8f322082437b93581c6e2953886eeb998d7@changeid>
Date: Thu, 29 Sep 2022 10:19:15 -0600
From: Raul E Rangel <rrangel@...omium.org>
To: linux-acpi@...r.kernel.org, linux-input@...r.kernel.org
Cc: andriy.shevchenko@...ux.intel.com, dmitry.torokhov@...il.com,
hdegoede@...hat.com, rafael@...nel.org,
mika.westerberg@...ux.intel.com, mario.limonciello@....com,
timvp@...gle.com, linus.walleij@...aro.org, jingle.wu@....com.tw,
Raul E Rangel <rrangel@...omium.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH v6 11/13] Input: elan_i2c - Don't set wake_capable and wake_irq
The i2c-core will now handle setting the wake_irq and wake capability
for DT and ACPI systems.
Signed-off-by: Raul E Rangel <rrangel@...omium.org>
---
(no changes since v2)
Changes in v2:
- I chose not to keep the legacy code around since systems without DT or ACPI should be rare.
drivers/input/mouse/elan_i2c_core.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c
index 3947474e93d16ab..b25b94aba3e88e5 100644
--- a/drivers/input/mouse/elan_i2c_core.c
+++ b/drivers/input/mouse/elan_i2c_core.c
@@ -1332,22 +1332,6 @@ static int elan_probe(struct i2c_client *client,
}
}
- /*
- * Systems using device tree should set up wakeup via DTS,
- * the rest will configure device as wakeup source by default.
- */
- if (!dev->of_node)
- device_init_wakeup(dev, true);
-
- /*
- * The wake IRQ should be declared via device tree instead of assuming
- * the IRQ can wake the system. This is here for legacy reasons and
- * will be removed once the i2c-core supports querying ACPI for wake
- * capabilities.
- */
- if (!dev->power.wakeirq)
- dev_pm_set_wake_irq(dev, client->irq);
-
return 0;
}
--
2.37.3.998.g577e59143f-goog
Powered by blists - more mailing lists