OSDN Git Service

usb: dwc3: core: modify IO memory resource after deferred probe completes
authorIvan T. Ivanov <iivanov@mm-sol.com>
Mon, 29 Jul 2013 07:27:02 +0000 (10:27 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 12:22:37 +0000 (15:22 +0300)
commit2e112345c22bcdf5d246db40f0587d7d11f1dc61
treec30da8ed4476a11c9ca0001250c7965405871b5a
parenta554aea67aaadb7f3396b2a8f940ab0b915b2a5e
usb: dwc3: core: modify IO memory resource after deferred probe completes

When deferred probe happens driver will try to ioremap multiple times
and will fail. Memory resource.start variable is a global variable,
modifications in this field will be accumulated on every probe.
Fix this by moving the above operations after driver hold all
required PHY's.

Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c