About enabling async suspend/resume on i2c devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I came across this patch: https://marc.info/?l=linux-i2c&m=153270824822381&w=2
and I'm evaluating if it's a good candidate for upstreaming:

----------------------------------------------------------------------
diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c
index 1ba40bb2b966..3382bb7e1dcc 100644
--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -749,6 +749,7 @@  i2c_new_device(struct i2c_adapter *adap, struct
i2c_board_info const *info)
 	client->dev.of_node = info->of_node;
 	client->dev.fwnode = info->fwnode;
 
+	device_enable_async_suspend(&client->dev);
 	i2c_dev_set_name(adap, client, info);
 
 	if (info->properties) {
----------------------------------------------------------------------

Was this ever tested on something other than a Chromebook? Reading the thread I
got the impression that the patch was intended for Chromebooks only. Wouldn't
adding that line to i2c_new_device affect all i2c clients in every platform?

Thanks!

Best,
Ricardo




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux