Skip to content

Commit 5402647

Browse files
3x380Vgregkh
authored andcommitted
usb: dwc3: dwc3-octeon: Dump control register on clock init failure
It might be interesting to know control register value in case clock fails to enable. Signed-off-by: Ladislav Michl <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Acked-by: Thinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/ZMd/5OX9szEMnhQH@lenoch Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent dc0092c commit 5402647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/dwc3/dwc3-octeon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ static int dwc3_octeon_setup(struct dwc3_octeon *octeon,
299299
val = dwc3_octeon_readq(uctl_ctl_reg);
300300
if ((div != FIELD_GET(USBDRD_UCTL_CTL_H_CLKDIV_SEL, val)) ||
301301
(!(FIELD_GET(USBDRD_UCTL_CTL_H_CLK_EN, val)))) {
302-
dev_err(dev, "dwc3 controller clock init failure.\n");
303-
return -EINVAL;
302+
dev_err(dev, "clock init failure (UCTL_CTL=%016llx)\n", val);
303+
return -EINVAL;
304304
}
305305

306306
/* Step 4c: Deassert the controller clock divider reset. */

0 commit comments

Comments
 (0)