Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use IBBU's data structure for iBBU-09.



details:   https://anonhg.NetBSD.org/src/rev/6b136060b58a
branches:  trunk
changeset: 366054:6b136060b58a
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu May 12 12:04:09 2022 +0000

description:
Use IBBU's data structure for iBBU-09.

diffstat:

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

diffs (31 lines):

diff -r 46b03b2e098d -r 6b136060b58a sys/dev/pci/mfii.c
--- a/sys/dev/pci/mfii.c        Thu May 12 12:00:58 2022 +0000
+++ b/sys/dev/pci/mfii.c        Thu May 12 12:04:09 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfii.c,v 1.13 2022/05/11 15:30:33 msaitoh Exp $ */
+/* $NetBSD: mfii.c,v 1.14 2022/05/12 12:04:09 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.13 2022/05/11 15:30:33 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfii.c,v 1.14 2022/05/12 12:04:09 msaitoh Exp $");
 
 #include "bio.h"
 
@@ -3708,11 +3708,11 @@
 
        switch (bbu.battery_type) {
        case MFI_BBU_TYPE_IBBU:
+       case MFI_BBU_TYPE_IBBU09:
                mask = MFI_BBU_STATE_BAD_IBBU;
                soh_bad = 0;
                break;
        case MFI_BBU_TYPE_BBU:
-       case MFI_BBU_TYPE_IBBU09:
                mask = MFI_BBU_STATE_BAD_BBU;
                soh_bad = (bbu.detail.bbu.is_SOH_good == 0);
                break;



Home | Main Index | Thread Index | Old Index