From: kettenis Date: Fri, 30 Dec 2022 14:10:17 +0000 (+0000) Subject: Add chip name for new revision of the BCM4378. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=708e0c628cd89711c4b165068a45d5f5860235f2;p=openbsd Add chip name for new revision of the BCM4378. ok patrick@ --- diff --git a/sys/dev/pci/if_bwfm_pci.c b/sys/dev/pci/if_bwfm_pci.c index d3fa4143b5c..b50c8f75c2e 100644 --- a/sys/dev/pci/if_bwfm_pci.c +++ b/sys/dev/pci/if_bwfm_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_pci.c,v 1.74 2022/11/10 12:14:05 kettenis Exp $ */ +/* $OpenBSD: if_bwfm_pci.c,v 1.75 2022/12/30 14:10:17 kettenis Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2017 Patrick Wildt @@ -494,7 +494,10 @@ bwfm_pci_preinit(struct bwfm_softc *bwfm) chip = "4377b3"; break; case BRCM_CC_4378_CHIP_ID: - chip = "4378b1"; + if (bwfm->sc_chip.ch_chiprev <= 3) + chip = "4378b1"; + else + chip = "4378b3"; break; case BRCM_CC_4387_CHIP_ID: chip = "4387c2";