Skip to content

Commit 7c48090

Browse files
committed
Merge branch 'mips-fixes' into mips-next
2 parents 7754326 + 0d5679a commit 7c48090

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
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/include/asm/mipsmtregs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ static inline void ehb(void)
322322
" .set push \n" \
323323
" .set "MIPS_ISA_LEVEL" \n" \
324324
_ASM_SET_MFTC0 \
325-
" mftc0 $1, " #rt ", " #sel " \n" \
325+
" mftc0 %0, " #rt ", " #sel " \n" \
326326
_ASM_UNSET_MFTC0 \
327327
" .set pop \n" \
328328
: "=r" (__res)); \

arch/mips/kernel/syscalls/syscall_o32.tbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
17 o32 break sys_ni_syscall
2828
# 18 was sys_stat
2929
18 o32 unused18 sys_ni_syscall
30-
19 o32 lseek sys_lseek
30+
19 o32 lseek sys_lseek compat_sys_lseek
3131
20 o32 getpid sys_getpid
3232
21 o32 mount sys_mount
3333
22 o32 umount sys_oldumount

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)