usb: chipidea: udc: using structure ci_hdrc device for runtime PM
authorPeter Chen <peter.chen@nxp.com>
Thu, 23 Jan 2020 02:49:19 +0000 (10:49 +0800)
committerPeter Chen <peter.chen@nxp.com>
Mon, 16 Mar 2020 03:13:47 +0000 (11:13 +0800)
commit7fd87c956c0ab5633f20597cb828713f9c03aa5b
tree61ee09246de006fe2a709973fe5271dec4f3fdf9
parent6a7c533d4a1854f54901a065d8c672e890400d8a
usb: chipidea: udc: using structure ci_hdrc device for runtime PM

At current code, it doesn't maintain ci->gadget.dev's runtime PM
status well, eg, during the PM operation, the PM counter for
ci->gadget.dev doesn't be changed accordingly.

In this commit, we use ci_hdrc device instead of ci->gadget.dev
for runtime PM APIs at udc driver, in the way, we handle runtime
PM APIs using unify device structure between core and udc driver.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/udc.c