Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <ladis@linux-mips.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/ZMd/5OX9szEMnhQH@lenoch
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ladislav Michl and committed by
Greg Kroah-Hartman
54026474 dc0092ce

+2 -2
+2 -2
drivers/usb/dwc3/dwc3-octeon.c
··· 299 299 val = dwc3_octeon_readq(uctl_ctl_reg); 300 300 if ((div != FIELD_GET(USBDRD_UCTL_CTL_H_CLKDIV_SEL, val)) || 301 301 (!(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; 304 304 } 305 305 306 306 /* Step 4c: Deassert the controller clock divider reset. */