On Fri, Aug 23, 2024 at 09:26:18AM +0530, Faisal Hassan wrote:
On 8/22/2024 4:55 PM, Johan Hovold wrote:
On Tue, Aug 13, 2024 at 04:48:47PM +0530, Faisal Hassan wrote:
Null pointer dereference occurs when accessing 'hcd' to detect speed from dwc3_qcom_suspend after the xhci-hcd is unbound.
Why are you unbinding the xhci driver?
On our automotive platforms, when preparing for suspend, a script unbinds the xhci driver to remove all devices, ensuring the platform reaches the lowest power state.
That used to be the case a decade or so ago, but shouldn't be needed anymore if your hardware is "sane" and can properly go to sleep. Why not just fix the driver to correctly sleep instead of unloading everything? This would require you to go through the whole initialization sequence again when waking up and that can be a long time overall, right?
thanks,
greg k-h