From 6533953ebe6c077dc97a322fb4f8e9616b521941 Mon Sep 17 00:00:00 2001 From: patrick Date: Fri, 16 Dec 2022 18:08:08 +0000 Subject: [PATCH] qcpdc(4)'s establish routine needs to return the wrapped cookie, not the cookie it received from establishing the interrupt. --- sys/dev/fdt/qcpdc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/qcpdc.c b/sys/dev/fdt/qcpdc.c index fb97237fbf9..c0068c189d4 100644 --- a/sys/dev/fdt/qcpdc.c +++ b/sys/dev/fdt/qcpdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qcpdc.c,v 1.1 2022/11/10 12:12:53 patrick Exp $ */ +/* $OpenBSD: qcpdc.c,v 1.2 2022/12/16 18:08:08 patrick Exp $ */ /* * Copyright (c) 2022 Patrick Wildt * @@ -205,7 +205,7 @@ qcpdc_intr_establish(void *aux, int *cells, int ipl, HSET4(sc, PDC_INTR_ENABLE(pin), PDC_INTR_ENABLE_BIT(pin)); splx(s); - return cookie; + return ih; } void -- 2.20.1