Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Modify strange bus_space_barrier().



details:   https://anonhg.NetBSD.org/src/rev/9e4a64fa7663
branches:  trunk
changeset: 368393:9e4a64fa7663
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sat Jul 09 11:41:18 2022 +0000

description:
Modify strange bus_space_barrier().

diffstat:

 sys/dev/pci/mfii.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 427b9d2c2e79 -r 9e4a64fa7663 sys/dev/pci/mfii.c
--- a/sys/dev/pci/mfii.c        Sat Jul 09 10:30:27 2022 +0000
+++ b/sys/dev/pci/mfii.c        Sat Jul 09 11:41:18 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfii.c,v 1.20 2022/06/29 13:03:20 msaitoh Exp $ */
+/* $NetBSD: mfii.c,v 1.21 2022/07/09 11:41:18 msaitoh Exp $ */
 /* $OpenBSD: mfii.c,v 1.58 2018/08/14 05:22:21 jmatthew Exp $ */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfii.c,v 1.20 2022/06/29 13:03:20 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfii.c,v 1.21 2022/07/09 11:41:18 msaitoh Exp $");
 
 #include "bio.h"
 
@@ -1877,12 +1877,9 @@
 #else
        mutex_enter(&sc->sc_post_mtx);
        bus_space_write_4(sc->sc_iot, sc->sc_ioh, MFI_IQPL, r[0]);
+       bus_space_write_4(sc->sc_iot, sc->sc_ioh, MFI_IQPH, r[1]);
        bus_space_barrier(sc->sc_iot, sc->sc_ioh,
            MFI_IQPL, 8, BUS_SPACE_BARRIER_WRITE);
-
-       bus_space_write_4(sc->sc_iot, sc->sc_ioh, MFI_IQPH, r[1]);
-       bus_space_barrier(sc->sc_iot, sc->sc_ioh,
-           MFI_IQPH, 8, BUS_SPACE_BARRIER_WRITE);
        mutex_exit(&sc->sc_post_mtx);
 #endif
 }



Home | Main Index | Thread Index | Old Index