Input: mpr121: Drop redundant wakeup handling
Subsystems (2)
PATCH 1/1 Input: mpr121: Drop redundant wakeup handling
From: bui duc phuc <[email protected]>
The driver currently calls device_init_wakeup() and manually toggles IRQ wake in suspend and resume paths. This is unnecessary since the I2C core already handles wakeup configuration when the device is described in Device Tree with the "wakeup-source" property.
Note: Compile-tested only, not verified on hardware.
--- drivers/input/keyboard/mpr121_touchkey.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/input/keyboard/mpr121_touchkey.c +0 -8
@@ -295,8 +295,6 @@ static int mpr_touchkey_probe(struct i2c_client *client)return error;i2c_set_clientdata (client, mpr121); -device_init_wakeup (dev, -device_property_read_bool (dev,"wakeup-source" ));return 0 ; }
@@ -305,9 +303,6 @@ static int mpr_suspend(struct device *dev) {struct i2c_client *client =to_i2c_client (dev); -if (device_may_wakeup (&client->dev)) -enable_irq_wake (client->irq); -i2c_smbus_write_byte_data (client,ELECTRODE_CONF_ADDR ,0x00 );return 0 ;
@@ -318,9 +313,6 @@ static int mpr_resume(struct device *dev)struct i2c_client *client =to_i2c_client (dev);struct mpr121_touchkey *mpr121 =i2c_get_clientdata (client); -if (device_may_wakeup (&client->dev)) -disable_irq_wake (client->irq); -i2c_smbus_write_byte_data (client,ELECTRODE_CONF_ADDR , mpr121->keycount);
Signature · 1 line
2.43.0
Quoted 10 lines · On Mon, Mar 09, 2026 at 02:14:13PM +0700, [email protected] wrote:
From: bui duc phuc <[email protected]>
The driver currently calls
device_init_wakeup()and manually toggles IRQ wake in suspend and resume paths. This is unnecessary since the I2C core already handles wakeup configuration when the device is described in Device Tree with the "wakeup-source" property.Note: Compile-tested only, not verified on hardware.
Signed-off-by bui duc phuc <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry
Re: [PATCH v4 1/2] dt-bindings: input: touchscreen:
Hi Dmitry,
Thank you for applying the patch.
Best regards,
Phuc