Remove unneeded bus_space_barrier() calls.

This commit is contained in:
thorpej 2022-07-12 02:10:16 +00:00
parent 34d53c1a7d
commit 9db36ca010
2 changed files with 4 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mlx_eisa.c,v 1.29 2021/07/24 19:06:25 thorpej Exp $ */
/* $NetBSD: mlx_eisa.c,v 1.30 2022/07/12 02:12:26 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mlx_eisa.c,v 1.29 2021/07/24 19:06:25 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: mlx_eisa.c,v 1.30 2022/07/12 02:12:26 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -221,9 +221,6 @@ mlx_v1_submit(struct mlx_softc *mlx, struct mlx_ccb *mc)
/* Copy mailbox data to window. */
bus_space_write_region_1(mlx->mlx_iot, mlx->mlx_ioh,
MLX_V1REG_MAILBOX, mc->mc_mbox, 13);
bus_space_barrier(mlx->mlx_iot, mlx->mlx_ioh,
MLX_V1REG_MAILBOX, 13,
BUS_SPACE_BARRIER_WRITE);
/* Post command. */
mlx_outb(mlx, MLX_V1REG_IDB, MLX_V1_IDB_FULL);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ie_vme.c,v 1.34 2021/10/24 20:00:12 andvar Exp $ */
/* $NetBSD: if_ie_vme.c,v 1.35 2022/07/12 02:10:16 thorpej Exp $ */
/*
* Copyright (c) 1995 Charles D. Cranor
@ -140,7 +140,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.34 2021/10/24 20:00:12 andvar Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.35 2022/07/12 02:10:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -376,7 +376,6 @@ ie_vme_read16(struct ie_softc *sc, int offset)
{
uint16_t v;
bus_space_barrier(sc->bt, sc->bh, offset, 2, BUS_SPACE_BARRIER_READ);
v = bus_space_read_2(sc->bt, sc->bh, offset);
return (((v&0xff)<<8) | ((v>>8)&0xff));
}
@ -386,7 +385,6 @@ ie_vme_write16(struct ie_softc *sc, int offset, uint16_t v)
{
int v0 = ((((v)&0xff)<<8) | (((v)>>8)&0xff));
bus_space_write_2(sc->bt, sc->bh, offset, v0);
bus_space_barrier(sc->bt, sc->bh, offset, 2, BUS_SPACE_BARRIER_WRITE);
}
void
@ -403,8 +401,6 @@ ie_vme_write24(struct ie_softc *sc, int offset, int addr)
t = (u_char *)&v1;
t[0] = f[1]; t[1] = 0;
bus_space_write_2(sc->bt, sc->bh, offset+2, v1);
bus_space_barrier(sc->bt, sc->bh, offset, 4, BUS_SPACE_BARRIER_WRITE);
}
int