From 5fb94d0e1667faa3298d1785bb8d297f3a36ae35 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Wed, 23 Aug 2023 09:41:47 +0200 Subject: [PATCH] arm64: xilinx: dwc3: Fix reset names Use the correct resets and not the same one three times in a row. Reported by: rpokala Sponsored by: Beckhoff Automation GmbH & Co. KG --- sys/dev/usb/controller/xlnx_dwc3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/controller/xlnx_dwc3.c b/sys/dev/usb/controller/xlnx_dwc3.c index aad929663eed..0a53fb855034 100644 --- a/sys/dev/usb/controller/xlnx_dwc3.c +++ b/sys/dev/usb/controller/xlnx_dwc3.c @@ -109,13 +109,13 @@ xlnx_dwc3_attach(device_t dev) } } if (hwreset_get_by_ofw_name(dev, node, "usb_hibrst", &sc->rst_hibrst) == 0) { - if (hwreset_deassert(sc->rst_crst) != 0) { + if (hwreset_deassert(sc->rst_hibrst) != 0) { device_printf(dev, "Cannot deassert reset\n"); return (ENXIO); } } if (hwreset_get_by_ofw_name(dev, node, "usb_apbrst", &sc->rst_apbrst) == 0) { - if (hwreset_deassert(sc->rst_crst) != 0) { + if (hwreset_deassert(sc->rst_apbrst) != 0) { device_printf(dev, "Cannot deassert reset\n"); return (ENXIO); }