]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: dwc3: qcom: Don't rely on drvdata during probe
authorBjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Tue, 15 Apr 2025 01:21:54 +0000 (20:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 12:29:19 +0000 (14:29 +0200)
commit2dc9f137e194267773f785cc0a352136fb9e42cc
tree1bf65c79b3814ffa0c4baa66e95edf5456d459eb
parent170940f7e6859152d8579e7be57c6a2060438651
usb: dwc3: qcom: Don't rely on drvdata during probe

With the upcoming transition to a model where DWC3 core and glue operate
on a single struct device the drvdata datatype will change to be owned
by the core.

The drvdata is however used by the Qualcomm DWC3 glue to pass the qcom
glue context around before the core is allocated.

Remove this problem, and clean up the code, by passing the dwc3_qcom
struct around during probe, instead of acquiring it from the drvdata.

Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8650-QRD
Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250414-dwc3-refactor-v7-5-f015b358722d@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c