[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d6df23a0-6539-f955-5241-5cdfcaa4eca4@linux.intel.com>
Date: Fri, 22 Apr 2022 10:53:17 +0300
From: Mathias Nyman <mathias.nyman@...ux.intel.com>
To: surong pang <surong.pang@...il.com>
Cc: mathias.nyman@...el.com, Greg KH <gregkh@...uxfoundation.org>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
Orson.Zhai@...soc.com, yunguo.wu@...soc.com
Subject: Re: [PATCH V1 1/1] usb/host: Let usb phy shutdown later
On 22.4.2022 5.10, surong pang wrote:
> shared_hcd might be freed already here, but hcd should not be freed
> here, because "usb_put_hcd(hcd)" is called later.
To me it still looks like this patch calls usb_phy_shutdown(hcd->usb_phy) _after_
usb_put_hcd(hcd):
>>> @@ -398,6 +397,7 @@ static int xhci_plat_remove(struct platform_device *dev)
>>> clk_disable_unprepare(clk);
>>> clk_disable_unprepare(reg_clk);
>>> usb_put_hcd(hcd);
>>> + usb_phy_shutdown(hcd->usb_phy);
shared hcd was freed even earlier, before disabling the clocks.
Thanks
Mathias
Powered by blists - more mailing lists