Fix DMA sync flags in ehci_append_sqtd
This commit is contained in:
parent
90b2b35672
commit
1e70fa6df2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ehci.c,v 1.320 2024/02/04 05:43:06 mrg Exp $ */
|
||||
/* $NetBSD: ehci.c,v 1.321 2024/02/05 23:04:18 jmcneill Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004-2012,2016,2020 The NetBSD Foundation, Inc.
|
||||
|
@ -54,7 +54,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.320 2024/02/04 05:43:06 mrg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.321 2024/02/05 23:04:18 jmcneill Exp $");
|
||||
|
||||
#include "ohci.h"
|
||||
#include "uhci.h"
|
||||
|
@ -3065,7 +3065,7 @@ ehci_append_sqtd(ehci_soft_qtd_t *sqtd, ehci_soft_qtd_t *prev)
|
|||
prev->qtd.qtd_next = htole32(sqtd->physaddr);
|
||||
prev->qtd.qtd_altnext = prev->qtd.qtd_next;
|
||||
usb_syncmem(&prev->dma, prev->offs, sizeof(prev->qtd),
|
||||
BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD);
|
||||
BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue