-/* $OpenBSD: if_alc.c,v 1.55 2022/03/11 18:00:45 mpi Exp $ */
+/* $OpenBSD: if_alc.c,v 1.56 2022/05/19 00:52:37 kevlo Exp $ */
/*-
* Copyright (c) 2009, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
sc->alc_dma_wr_burst = 3;
/*
* Force maximum payload size to 128 bytes for
- * E2200/E2400/E2500.
+ * E2200/E2400/E2500/AR8162/AR8171/AR8172.
* Otherwise it triggers DMA write error.
*/
- if ((sc->alc_flags & ALC_FLAG_E2X00) != 0)
+ if ((sc->alc_flags &
+ (ALC_FLAG_E2X00 | ALC_FLAG_AR816X_FAMILY)) != 0)
sc->alc_dma_wr_burst = 0;
alc_init_pcie(sc, base);
}