Skip to content

Commit 6785e3c

Browse files
committed
Merge tag 'mips-fixes_6.10_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
Pull MIPS fixes from Thomas Bogendoerfer: - fix for BCM6538 boards - fix RB532 PCI workaround * tag 'mips-fixes_6.10_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: Revert "MIPS: pci: lantiq: restore reset gpio polarity" mips: bmips: BCM6358: make sure CBR is correctly set MIPS: pci: lantiq: restore reset gpio polarity MIPS: Routerboard 532: Fix vendor retry check code
2 parents 92e5605 + 6e5aee0 commit 6785e3c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

arch/mips/bmips/setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ static void bcm6358_quirks(void)
110110
* RAC flush causes kernel panics on BCM6358 when booting from TP1
111111
* because the bootloader is not initializing it properly.
112112
*/
113-
bmips_rac_flush_disable = !!(read_c0_brcm_cmt_local() & (1 << 31));
113+
bmips_rac_flush_disable = !!(read_c0_brcm_cmt_local() & (1 << 31)) ||
114+
!!BMIPS_GET_CBR();
114115
}
115116

116117
static void bcm6368_quirks(void)

arch/mips/pci/ops-rc32434.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ static int read_config_dword(struct pci_bus *bus, unsigned int devfn,
112112
* gives them time to settle
113113
*/
114114
if (where == PCI_VENDOR_ID) {
115-
if (ret == 0xffffffff || ret == 0x00000000 ||
116-
ret == 0x0000ffff || ret == 0xffff0000) {
115+
if (*val == 0xffffffff || *val == 0x00000000 ||
116+
*val == 0x0000ffff || *val == 0xffff0000) {
117117
if (delay > 4)
118118
return 0;
119119
delay *= 2;

0 commit comments

Comments
 (0)