Instead of waiting for the inbound item to show up in the interrupt
authorpatrick <patrick@openbsd.org>
Tue, 4 Jul 2023 14:32:21 +0000 (14:32 +0000)
committerpatrick <patrick@openbsd.org>
Tue, 4 Jul 2023 14:32:21 +0000 (14:32 +0000)
commitd467fd9ece01b44cbb03027b3530da87ab255861
tree510c9e452d3af33f58f1f1df273a862c6b40a9cf
parent95c411ffdbcf2ce623d0736f4d65c433aa9cb37d
Instead of waiting for the inbound item to show up in the interrupt
handler, allocate it ourselves.  The firmware doesn't seem to mind
that it's us doing the allocation.  This fixes a splassert, because
the code that retrieves the item reaches through the shared memory
driver, which acquires the hardware mutex, which in turn mallocs.

ok kettenis@
sys/dev/fdt/qcsmptp.c