From 9db36ca01006f07ad53f814e84504d4e31a744cf Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 12 Jul 2022 02:10:16 +0000 Subject: [PATCH] Remove unneeded bus_space_barrier() calls. --- sys/dev/eisa/mlx_eisa.c | 7 ++----- sys/dev/vme/if_ie_vme.c | 8 ++------ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/sys/dev/eisa/mlx_eisa.c b/sys/dev/eisa/mlx_eisa.c index 575020faf61a..fd5c27c46d63 100644 --- a/sys/dev/eisa/mlx_eisa.c +++ b/sys/dev/eisa/mlx_eisa.c @@ -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 -__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 #include @@ -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); diff --git a/sys/dev/vme/if_ie_vme.c b/sys/dev/vme/if_ie_vme.c index 5ed71c097ace..8176de4a95fc 100644 --- a/sys/dev/vme/if_ie_vme.c +++ b/sys/dev/vme/if_ie_vme.c @@ -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 -__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 #include @@ -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