Re: Generic PHY "unload" crash

From: Kishon Vijay Abraham I
Date: Tue May 21 2019 - 15:17:38 EST


Hi Alan,

On 21/05/19 1:40 PM, Alan Cooper wrote:
I'm seeing an issue on a system where I have a generic PHY that is
used by a USB XHCI driver. The XHCI driver does the phy_init() in
probe and the phy_exit() in remove. The problem happens when I use
sysfs to "unload" the PHY driver before doing an unload of the XHCI
driver. This is a result of the XHCI driver calling into the PHY
driver's phy_exit routine after it's been removed. It seems like this
issue will exist for other PHY provider/user pairs and I don't see an
easy solution. I was wondering if anyone had any suggestions on how to
solve this problem.

Can you share the crash dump please?

Thanks
Kishon