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
This commit is contained in:
Emmanuel Vadot 2023-08-23 09:41:47 +02:00
parent 29bfcb3a28
commit 5fb94d0e16

View File

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