Re: [PATCH] usb/mtu3: power down device ip at setup

2018-11-27 Thread Chunfeng Yun
On Wed, 2018-11-28 at 14:26 +0800, Hsin-Yi Wang wrote: > Hi Chunfeng, > On mt8183, We found `ip sleep failed!!!` with powerd_dbus_suspend. Did you enable usb device mode in BROM or LK stage? e.g. download image by fastboot / flashtool > Referenced from xhci, it also power down device ip at > xhci

Re: [PATCH] usb/mtu3: power down device ip at setup

2018-11-27 Thread Hsin-Yi Wang
Hi Chunfeng, On mt8183, We found `ip sleep failed!!!` with powerd_dbus_suspend. Referenced from xhci, it power down device ip at xhci_mtk_ssusb_config(). Also if dr_mode is PERIPHERAL and OTG, they both power down device ip at ssusb_gadget_init(). On Wed, Nov 28, 2018 at 2:22 PM Chunfeng Yun wrot

Re: [PATCH] usb/mtu3: power down device ip at setup

2018-11-27 Thread Chunfeng Yun
Hi Hsin-Yi, On Wed, 2018-11-28 at 14:04 +0800, Hsin-Yi, Wang wrote: > Originally, when dr_mode is USB_DR_MODE_HOST, it didn't power down device ip, > so host ip sleep will fail at ssusb_host_disable. > > Power down device ip at ssusb_host_setup. > > Signed-off-by: Hsin-Yi, Wang > --- > drivers