mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
i2c: enable async suspend/resume on i2c client devices
This enables the async suspend for i2c client devices. This reduces the suspend/resume time considerably on platforms where i2c devices can take a lot of time (hundreds of ms) to resume. Signed-off-by: Derek Basehore <[email protected]> Signed-off-by: Rajat Jain <[email protected]> Tested-by: Jarkko Nikula <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
1 parent
d320ec7acc
commit
172d931910
1 file changed
+1
@@ -1048,6 +1048,7 @@ i2c_new_client_device(struct i2c_adapter *adap, struct i2c_board_info const *inf
|
||||
client->dev.of_node = of_node_get(info->of_node);
|
||||
client->dev.fwnode = info->fwnode;
|
||||
|
||||
device_enable_async_suspend(&client->dev);
|
||||
i2c_dev_set_name(adap, client, info);
|
||||
|
||||
if (info->swnode) {
|
||||
|
||||
Reference in new issue
Block a user