usb: dwc3: exynos: PHY should be deleted later than dwc3 core
authorPeter Chen <peter.chen@freescale.com>
Fri, 24 May 2013 06:30:16 +0000 (14:30 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 19:17:08 +0000 (22:17 +0300)
commit022d0547aa8b00ff5035ba6207ebc2c08ea0a51f
treede28409dd7759796647b345d98020d951ff13c59
parentf28c42c576b293b3a1daaed8ca2775ebc2fe5398
usb: dwc3: exynos: PHY should be deleted later than dwc3 core

If the glue layer is removed first (core layer later),
it deletes the phy device first, then the core device.
But at core's removal, it still uses PHY's resources, it may
cause kernel's oops. It is much like the problem
Paul Zimmerman reported at:
http://marc.info/?l=linux-usb&m=136547502011472&w=2.

Besides, it is reasonable the PHY is deleted at last as
the controller is the PHY's user.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/dwc3-exynos.c