Part Number: AM3352
Hello,
We are using am3352 in our design with kernel 4.14.67 from TI SDK.
We are connecting an external USB modem and we want to use autosuspend/resume in order to save some power. To enable this option for our modem we have changed option_probe() function in drivers/usb/serial/option.c file:
if(serial->dev->descriptor.idVendor == cpu_to_le16(0x2C7C)) {
pm_runtime_set_autosuspend_delay(&serial->dev->dev, 3000);
usb_enable_autosuspend(serial->dev);
}
if (serial->dev->descriptor.idVendor == cpu_to_le16(0x2C7C)) {
device_init_wakeup(&serial->dev->dev, 1); //usb remote wakeup
}
We see that when there is no traffic USB enters in suspend mode, and also when host sends some new data it resumes and USB modem responds.
The problem is that USB modem is not able to wake host up while in suspend mode.
We contact USB manufacturer and they ask us to comfirm that am3352 can support autosuspend/resume feature. Could you please confirm this please?
If this is the case, do you know if we need to do something else to enable this feature?
Best regards and thank you
Angel