Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2023 07:43:02 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5fb94d0e1667 - main - arm64: xilinx: dwc3: Fix reset names
Message-ID:  <202308230743.37N7h2mF045615@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by manu:

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

commit 5fb94d0e1667faa3298d1785bb8d297f3a36ae35
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2023-08-23 07:41:47 +0000
Commit:     Emmanuel Vadot <manu@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);
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308230743.37N7h2mF045615>