]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: pci: PHY should be deleted later than dwc3 core
authorPeter Chen <peter.chen@freescale.com>
Fri, 24 May 2013 06:29:20 +0000 (14:29 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 19:16:49 +0000 (22:16 +0300)
commit7d5b4bbb54c770d53491dadae793471817acd4b9
tree4735365243e6c9b4e7317a83a90e5d1ee4168bf9
parentd67f0f7f01eb8b278d2ffe137361076878c8bb76
usb: dwc3: pci: 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-pci.c