]> www.infradead.org Git - users/hch/misc.git/commit
usb: dwc3: qcom: Use bulk clock API and devres
authorBjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Fri, 9 May 2025 03:42:11 +0000 (22:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 11:10:23 +0000 (13:10 +0200)
commite33ebb133a245a48b543d6eb79768a66f233656b
treee54c63dcb35537a3d927ec4a23b7d249321b0215
parent4f78a9c7b8e86f8544e0363a22b367df6620b9ab
usb: dwc3: qcom: Use bulk clock API and devres

The Qualcomm DWC3 glue driver duplicates the logic of the bulk clock
API to acquire, prepare, and unprepare the controller's clocks. It also
manages the life cycle of these handled explicitly.

Transition to the bulk clock API and manage the resources using devres,
to clean up the code. The resource acquisition is moved above the
initial reset pulse, to handle resource issues before the state is
touched - other than this, this no functional change.

Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20250508-dwc3-clk-bulk-v2-1-bad3427e88d4@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c