Skip to content

Commit 44a5ab7

Browse files
committed
Merge tag 'powerpc-6.16-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc fixes from Madhavan Srinivasan: - Fix to handle VDSO32 with pcrel - Couple of dts fixes in microwatt and mpc8315erdb - Fix to handle PE bridge reconfiguration in VFIO EEH recovery path - Fix ioctl macros related to struct termio Thanks to Christophe Leroy, Ganesh Goudar, J. Neuschäfer, Justin M. Forbes, Michael Ellerman, Narayana Murty N, Tulio Magno, and Vaibhav Jain * tag 'powerpc-6.16-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc: Fix struct termio related ioctl macros powerpc: dts: mpc8315erdb: Add GPIO controller node powerpc/microwatt: Fix model property in device tree powerpc/eeh: Fix missing PE bridge reconfiguration during VFIO EEH recovery powerpc/vdso: Fix build of VDSO32 with pcrel
2 parents fe78e02 + ab10727 commit 44a5ab7

File tree

6 files changed

+19
-7
lines changed

6 files changed

+19
-7
lines changed

arch/powerpc/boot/dts/microwatt.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/ {
55
#size-cells = <0x02>;
66
#address-cells = <0x02>;
7-
model-name = "microwatt";
7+
model = "microwatt";
88
compatible = "microwatt-soc";
99

1010
aliases {

arch/powerpc/boot/dts/mpc8315erdb.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
/dts-v1/;
9+
#include <dt-bindings/interrupt-controller/irq.h>
910

1011
/ {
1112
compatible = "fsl,mpc8315erdb";
@@ -358,6 +359,15 @@
358359
interrupt-parent = <&ipic>;
359360
fsl,mpc8313-wakeup-timer = <&gtm1>;
360361
};
362+
363+
gpio: gpio-controller@c00 {
364+
compatible = "fsl,mpc8314-gpio";
365+
reg = <0xc00 0x100>;
366+
interrupts = <74 IRQ_TYPE_LEVEL_LOW>;
367+
interrupt-parent = <&ipic>;
368+
gpio-controller;
369+
#gpio-cells = <2>;
370+
};
361371
};
362372

363373
pci0: pci@e0008500 {

arch/powerpc/include/asm/ppc_asm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
/*
184184
* Used to name C functions called from asm
185185
*/
186-
#ifdef CONFIG_PPC_KERNEL_PCREL
186+
#if defined(__powerpc64__) && defined(CONFIG_PPC_KERNEL_PCREL)
187187
#define CFUNC(name) name@notoc
188188
#else
189189
#define CFUNC(name) name

arch/powerpc/include/uapi/asm/ioctls.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
#define TCSETSW _IOW('t', 21, struct termios)
2424
#define TCSETSF _IOW('t', 22, struct termios)
2525

26-
#define TCGETA _IOR('t', 23, struct termio)
27-
#define TCSETA _IOW('t', 24, struct termio)
28-
#define TCSETAW _IOW('t', 25, struct termio)
29-
#define TCSETAF _IOW('t', 28, struct termio)
26+
#define TCGETA 0x40147417 /* _IOR('t', 23, struct termio) */
27+
#define TCSETA 0x80147418 /* _IOW('t', 24, struct termio) */
28+
#define TCSETAW 0x80147419 /* _IOW('t', 25, struct termio) */
29+
#define TCSETAF 0x8014741c /* _IOW('t', 28, struct termio) */
3030

3131
#define TCSBRK _IO('t', 29)
3232
#define TCXONC _IO('t', 30)

arch/powerpc/kernel/eeh.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,8 @@ int eeh_pe_configure(struct eeh_pe *pe)
15091509
/* Invalid PE ? */
15101510
if (!pe)
15111511
return -ENODEV;
1512+
else
1513+
ret = eeh_ops->configure_bridge(pe);
15121514

15131515
return ret;
15141516
}

arch/powerpc/kernel/vdso/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ldflags-$(CONFIG_LD_ORPHAN_WARN) += -Wl,--orphan-handling=$(CONFIG_LD_ORPHAN_WAR
5353
ldflags-y += $(filter-out $(CC_AUTO_VAR_INIT_ZERO_ENABLER) $(CC_FLAGS_FTRACE) -Wa$(comma)%, $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS))
5454

5555
CC32FLAGS := -m32
56-
CC32FLAGSREMOVE := -mcmodel=medium -mabi=elfv1 -mabi=elfv2 -mcall-aixdesc
56+
CC32FLAGSREMOVE := -mcmodel=medium -mabi=elfv1 -mabi=elfv2 -mcall-aixdesc -mpcrel
5757
ifdef CONFIG_CC_IS_CLANG
5858
# This flag is supported by clang for 64-bit but not 32-bit so it will cause
5959
# an unused command line flag warning for this file.

0 commit comments

Comments
 (0)