Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/amlogic Fix SCF_RSP_R1B test



details:   https://anonhg.NetBSD.org/src/rev/4a9a2a29a66b
branches:  trunk
changeset: 449661:4a9a2a29a66b
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Mar 15 11:45:17 2019 +0000

description:
Fix SCF_RSP_R1B test

diffstat:

 sys/arch/arm/amlogic/mesongx_mmc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ade597f18293 -r 4a9a2a29a66b sys/arch/arm/amlogic/mesongx_mmc.c
--- a/sys/arch/arm/amlogic/mesongx_mmc.c        Fri Mar 15 07:03:36 2019 +0000
+++ b/sys/arch/arm/amlogic/mesongx_mmc.c        Fri Mar 15 11:45:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mesongx_mmc.c,v 1.2 2019/03/03 12:54:58 jmcneill Exp $ */
+/* $NetBSD: mesongx_mmc.c,v 1.3 2019/03/15 11:45:17 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mesongx_mmc.c,v 1.2 2019/03/03 12:54:58 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mesongx_mmc.c,v 1.3 2019/03/15 11:45:17 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -957,7 +957,7 @@
                        cmdflags |= MESONGX_MMC_FLAGS_RESP_128;
                if ((cmd->c_flags & SCF_RSP_CRC) == 0)
                        cmdflags |= MESONGX_MMC_FLAGS_RESP_NOCRC;
-               if (__SHIFTOUT(cmd->c_flags, SCF_RSP_MASK) == SCF_RSP_R1B)
+               if ((cmd->c_flags & SCF_RSP_MASK) == SCF_RSP_R1B)
                        cmdflags |= MESONGX_MMC_FLAGS_R1B;
        }
 



Home | Main Index | Thread Index | Old Index