git: 52dfb8b11453 - stable/14 - rk_i2s: change interrupt type from MISC to AV (audio/video)

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Sat, 17 Feb 2024 15:12:21 UTC
The branch stable/14 has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=52dfb8b11453c30e9afcdafc9bf581401eb912a6

commit 52dfb8b11453c30e9afcdafc9bf581401eb912a6
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-09-24 17:06:49 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2024-02-17 14:15:10 +0000

    rk_i2s: change interrupt type from MISC to AV (audio/video)
    
    This gives a higher priority to the interrupt handling thread.
    We need it because its work (filling the hardware FIFO) is time sensitive.
    
    (cherry picked from commit 406e959d07c78521fb755d94dc784d377f302cfe)
---
 sys/arm64/rockchip/rk_i2s.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm64/rockchip/rk_i2s.c b/sys/arm64/rockchip/rk_i2s.c
index b1356a17987e..85a45af50af8 100644
--- a/sys/arm64/rockchip/rk_i2s.c
+++ b/sys/arm64/rockchip/rk_i2s.c
@@ -545,7 +545,7 @@ rk_i2s_dai_setup_intr(device_t dev, driver_intr_t intr_handler, void *intr_arg)
 	struct rk_i2s_softc 	*sc = device_get_softc(dev);
 
 	if (bus_setup_intr(dev, sc->res[1],
-	    INTR_TYPE_MISC | INTR_MPSAFE, NULL, intr_handler, intr_arg,
+	    INTR_TYPE_AV | INTR_MPSAFE, NULL, intr_handler, intr_arg,
 	    &sc->intrhand)) {
 		device_printf(dev, "cannot setup interrupt handler\n");
 		return (ENXIO);