mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01: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
@ -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 New Issue
Block a user