Skip to content

Commit 0ee7fb3

Browse files
committed
Merge tag 'mips_fixes_5.1_2' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
Pull MIPS fixes from Paul Burton: "A few minor MIPS fixes: - Provide struct pt_regs * from get_irq_regs() to kgdb_nmicallback() when handling an IPI triggered by kgdb_roundup_cpus(), matching the behavior of other architectures & resolving kgdb issues for SMP systems. - Defer a pointer dereference until after a NULL check in the irq_shutdown callback for SGI IP27 HUB interrupts. - A defconfig update for the MSCC Ocelot to enable some necessary drivers" * tag 'mips_fixes_5.1_2' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: MIPS: generic: Add switchdev, pinctrl and fit to ocelot_defconfig MIPS: SGI-IP27: Fix use of unchecked pointer in shutdown_bridge_irq MIPS: KGDB: fix kgdb support for SMP platforms.
2 parents 972acfb + 6e3572e commit 0ee7fb3

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

arch/mips/configs/generic/board-ocelot.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# require CONFIG_CPU_MIPS32_R2=y
22

33
CONFIG_LEGACY_BOARD_OCELOT=y
4+
CONFIG_FIT_IMAGE_FDT_OCELOT=y
5+
6+
CONFIG_BRIDGE=y
7+
CONFIG_GENERIC_PHY=y
48

59
CONFIG_MTD=y
610
CONFIG_MTD_CMDLINE_PARTS=y
@@ -19,6 +23,8 @@ CONFIG_SERIAL_8250_CONSOLE=y
1923
CONFIG_SERIAL_OF_PLATFORM=y
2024

2125
CONFIG_NETDEVICES=y
26+
CONFIG_NET_SWITCHDEV=y
27+
CONFIG_NET_DSA=y
2228
CONFIG_MSCC_OCELOT_SWITCH=y
2329
CONFIG_MSCC_OCELOT_SWITCH_OCELOT=y
2430
CONFIG_MDIO_MSCC_MIIM=y
@@ -35,6 +41,8 @@ CONFIG_SPI_DESIGNWARE=y
3541
CONFIG_SPI_DW_MMIO=y
3642
CONFIG_SPI_SPIDEV=y
3743

44+
CONFIG_PINCTRL_OCELOT=y
45+
3846
CONFIG_GPIO_SYSFS=y
3947

4048
CONFIG_POWER_RESET=y

arch/mips/kernel/kgdb.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <asm/processor.h>
3434
#include <asm/sigcontext.h>
3535
#include <linux/uaccess.h>
36+
#include <asm/irq_regs.h>
3637

3738
static struct hard_trap_info {
3839
unsigned char tt; /* Trap type code for MIPS R3xxx and R4xxx */
@@ -214,7 +215,7 @@ void kgdb_call_nmi_hook(void *ignored)
214215
old_fs = get_fs();
215216
set_fs(KERNEL_DS);
216217

217-
kgdb_nmicallback(raw_smp_processor_id(), NULL);
218+
kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs());
218219

219220
set_fs(old_fs);
220221
}

arch/mips/sgi-ip27/ip27-irq.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,14 @@ static void shutdown_bridge_irq(struct irq_data *d)
118118
{
119119
struct hub_irq_data *hd = irq_data_get_irq_chip_data(d);
120120
struct bridge_controller *bc;
121-
int pin = hd->pin;
122121

123122
if (!hd)
124123
return;
125124

126125
disable_hub_irq(d);
127126

128127
bc = hd->bc;
129-
bridge_clr(bc, b_int_enable, (1 << pin));
128+
bridge_clr(bc, b_int_enable, (1 << hd->pin));
130129
bridge_read(bc, b_wid_tflush);
131130
}
132131

0 commit comments

Comments
 (0)