diff options
author | 2020-12-10 21:31:37 +0800 | |
---|---|---|
committer | 2020-12-29 13:38:42 +0800 | |
commit | 2ef02b846ee2526249a562a66d6dcb25fcbca9d8 (patch) | |
tree | ca85ba8a9de0fe336f7fda0900a0c932cf57bd2d /drivers/usb/host/ehci-hub.c | |
parent | usb: cdns3: imx: fix writing read-only memory issue (diff) | |
download | linux-dev-2ef02b846ee2526249a562a66d6dcb25fcbca9d8.tar.xz linux-dev-2ef02b846ee2526249a562a66d6dcb25fcbca9d8.zip |
usb: cdns3: imx: fix can't create core device the second time issue
The cdns3 core device is populated by calling of_platform_populate,
the flag OF_POPULATED is set for core device node, if this flag
is not cleared, when calling of_platform_populate the second time
after loading parent module again, the OF code will not try to create
platform device for core device.
To fix it, it uses of_platform_depopulate to depopulate the core
device which the parent created, and the flag OF_POPULATED for
core device node will be cleared accordingly.
Cc: <stable@vger.kernel.org>
Fixes: 1e056efab993 ("usb: cdns3: add NXP imx8qm glue layer")
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/host/ehci-hub.c')
0 files changed, 0 insertions, 0 deletions