The branch main has been updated by manu:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5fb94d0e1667faa3298d1785bb8d297f3a36ae35

commit 5fb94d0e1667faa3298d1785bb8d297f3a36ae35
Author:     Emmanuel Vadot <m...@freebsd.org>
AuthorDate: 2023-08-23 07:41:47 +0000
Commit:     Emmanuel Vadot <m...@freebsd.org>
CommitDate: 2023-08-23 07:42:40 +0000

    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);
                }

Reply via email to