mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
29bfcb3a28
commit
5fb94d0e16
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue