-/* $OpenBSD: ufshci.c,v 1.38 2024/06/15 18:26:25 mglocker Exp $ */
+/* $OpenBSD: ufshci.c,v 1.39 2024/06/27 21:35:34 mglocker Exp $ */
/*
* Copyright (c) 2022 Marcus Glocker <mglocker@openbsd.org>
if (status == 0)
return handled;
+ /* ACK interrupt */
+ UFSHCI_WRITE_4(sc, UFSHCI_REG_IS, status);
+
if (status & UFSHCI_REG_IS_UCCS) {
DPRINTF(3, "%s: UCCS interrupt\n", __func__);
handled = 1;
sc->sc_dev.dv_xname, status);
}
- /* ACK interrupt */
- UFSHCI_WRITE_4(sc, UFSHCI_REG_IS, status);
-
return handled;
}