Merge "[Bugfix][T106BUG-590]Fix can't be wakeup by USB"
diff --git a/cap/zx297520v3/zxic_code/zxic_source/linux-5.10/drivers/i2c/busses/i2c-zx29.c b/cap/zx297520v3/zxic_code/zxic_source/linux-5.10/drivers/i2c/busses/i2c-zx29.c
index 2d52e80..f78c373 100755
--- a/cap/zx297520v3/zxic_code/zxic_source/linux-5.10/drivers/i2c/busses/i2c-zx29.c
+++ b/cap/zx297520v3/zxic_code/zxic_source/linux-5.10/drivers/i2c/busses/i2c-zx29.c
@@ -1902,8 +1902,8 @@
static int zx29_i2c_suspend(struct platform_device *pdev, pm_message_t state)
{
printk("LYNQ: in zx29_i2c_suspend");
- if(pdev == NULL)
- return -1;
+ if(pdev->id == 0)
+ return 0;
if(pdev && &pdev->dev)
{
printk("LYNQ: select sleep state");
@@ -1916,8 +1916,8 @@
static int zx29_i2c_resume(struct platform_device *pdev)
{
printk("LYNQ: in zx29_i2c_resume");
- if(pdev == NULL)
- return -1;
+ if(pdev->id == 0)
+ return 0;
if(pdev && &pdev->dev)
{
printk("LYNQ: select default state");