Skip to content

Commit c610f7f

Browse files
committed
Merge 4.0-rc7 into staging-next
We want those fixes (iio primarily) into the -next branch to help with merge and testing issues. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2 parents f9541f8 + f22e6e8 commit c610f7f

File tree

304 files changed

+2831
-1381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

304 files changed

+2831
-1381
lines changed

Documentation/devicetree/bindings/net/dsa/dsa.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ the parent DSA node. The maximum number of allowed child nodes is 4
1919
(DSA_MAX_SWITCHES).
2020
Each of these switch child nodes should have the following required properties:
2121

22-
- reg : Describes the switch address on the MII bus
22+
- reg : Contains two fields. The first one describes the
23+
address on the MII bus. The second is the switch
24+
number that must be unique in cascaded configurations
2325
- #address-cells : Must be 1
2426
- #size-cells : Must be 0
2527

Documentation/input/alps.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ ALPS Absolute Mode - Protocol Version 2
114114
byte 4: 0 y6 y5 y4 y3 y2 y1 y0
115115
byte 5: 0 z6 z5 z4 z3 z2 z1 z0
116116

117+
Protocol Version 2 DualPoint devices send standard PS/2 mouse packets for
118+
the DualPoint Stick.
119+
117120
Dualpoint device -- interleaved packet format
118121
---------------------------------------------
119122

@@ -127,6 +130,11 @@ Dualpoint device -- interleaved packet format
127130
byte 7: 0 y6 y5 y4 y3 y2 y1 y0
128131
byte 8: 0 z6 z5 z4 z3 z2 z1 z0
129132

133+
Devices which use the interleaving format normally send standard PS/2 mouse
134+
packets for the DualPoint Stick + ALPS Absolute Mode packets for the
135+
touchpad, switching to the interleaved packet format when both the stick and
136+
the touchpad are used at the same time.
137+
130138
ALPS Absolute Mode - Protocol Version 3
131139
---------------------------------------
132140

Documentation/input/event-codes.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,12 @@ accordingly. This property does not affect kernel behavior.
294294
The kernel does not provide button emulation for such devices but treats
295295
them as any other INPUT_PROP_BUTTONPAD device.
296296

297+
INPUT_PROP_ACCELEROMETER
298+
-------------------------
299+
Directional axes on this device (absolute and/or relative x, y, z) represent
300+
accelerometer data. All other axes retain their meaning. A device must not mix
301+
regular directional axes and accelerometer axes on the same event node.
302+
297303
Guidelines:
298304
==========
299305
The guidelines below ensure proper single-touch and multi-finger functionality.

Documentation/input/multi-touch-protocol.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,12 @@ ABS_MT_TOOL_TYPE
312312

313313
The type of approaching tool. A lot of kernel drivers cannot distinguish
314314
between different tool types, such as a finger or a pen. In such cases, the
315-
event should be omitted. The protocol currently supports MT_TOOL_FINGER and
316-
MT_TOOL_PEN [2]. For type B devices, this event is handled by input core;
317-
drivers should instead use input_mt_report_slot_state().
315+
event should be omitted. The protocol currently supports MT_TOOL_FINGER,
316+
MT_TOOL_PEN, and MT_TOOL_PALM [2]. For type B devices, this event is handled
317+
by input core; drivers should instead use input_mt_report_slot_state().
318+
A contact's ABS_MT_TOOL_TYPE may change over time while still touching the
319+
device, because the firmware may not be able to determine which tool is being
320+
used when it first appears.
318321

319322
ABS_MT_BLOB_ID
320323

MAINTAINERS

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,7 @@ F: drivers/gpu/drm/radeon/radeon_kfd.h
637637
F: include/uapi/linux/kfd_ioctl.h
638638

639639
AMD MICROCODE UPDATE SUPPORT
640-
M: Andreas Herrmann <[email protected]>
641-
640+
M: Borislav Petkov <[email protected]>
642641
S: Maintained
643642
F: arch/x86/kernel/cpu/microcode/amd*
644643

@@ -1186,7 +1185,7 @@ M: Sebastian Hesselbarth <[email protected]>
11861185
L: [email protected] (moderated for non-subscribers)
11871186
S: Maintained
11881187
F: arch/arm/mach-mvebu/
1189-
F: drivers/rtc/armada38x-rtc
1188+
F: drivers/rtc/rtc-armada38x.c
11901189

11911190
ARM/Marvell Berlin SoC support
11921191
M: Sebastian Hesselbarth <[email protected]>
@@ -1362,6 +1361,7 @@ F: drivers/i2c/busses/i2c-rk3x.c
13621361
F: drivers/*/*rockchip*
13631362
F: drivers/*/*/*rockchip*
13641363
F: sound/soc/rockchip/
1364+
N: rockchip
13651365

13661366
ARM/SAMSUNG EXYNOS ARM ARCHITECTURES
13671367
M: Kukjin Kim <[email protected]>
@@ -1675,8 +1675,8 @@ F: drivers/misc/eeprom/at24.c
16751675
F: include/linux/platform_data/at24.h
16761676

16771677
ATA OVER ETHERNET (AOE) DRIVER
1678-
M: "Ed L. Cashin" <[email protected]>
1679-
W: http://support.coraid.com/support/linux
1678+
M: "Ed L. Cashin" <[email protected]>
1679+
W: http://www.openaoe.org/
16801680
S: Supported
16811681
F: Documentation/aoe/
16821682
F: drivers/block/aoe/
@@ -3252,6 +3252,13 @@ S: Maintained
32523252
F: Documentation/hwmon/dme1737
32533253
F: drivers/hwmon/dme1737.c
32543254

3255+
DMI/SMBIOS SUPPORT
3256+
M: Jean Delvare <[email protected]>
3257+
S: Maintained
3258+
F: drivers/firmware/dmi-id.c
3259+
F: drivers/firmware/dmi_scan.c
3260+
F: include/linux/dmi.h
3261+
32553262
DOCKING STATION DRIVER
32563263
M: Shaohua Li <[email protected]>
32573264
@@ -5094,7 +5101,7 @@ S: Supported
50945101
F: drivers/platform/x86/intel_menlow.c
50955102

50965103
INTEL IA32 MICROCODE UPDATE SUPPORT
5097-
M: Tigran Aivazian <[email protected]>
5104+
M: Borislav Petkov <[email protected]>
50985105
S: Maintained
50995106
F: arch/x86/kernel/cpu/microcode/core*
51005107
F: arch/x86/kernel/cpu/microcode/intel*
@@ -5135,22 +5142,21 @@ M: Deepak Saxena <[email protected]>
51355142
S: Maintained
51365143
F: drivers/char/hw_random/ixp4xx-rng.c
51375144

5138-
INTEL ETHERNET DRIVERS (e100/e1000/e1000e/fm10k/igb/igbvf/ixgb/ixgbe/ixgbevf/i40e/i40evf)
5145+
INTEL ETHERNET DRIVERS
51395146
M: Jeff Kirsher <[email protected]>
5140-
M: Jesse Brandeburg <[email protected]>
5141-
M: Bruce Allan <[email protected]>
5142-
M: Carolyn Wyborny <[email protected]>
5143-
M: Don Skidmore <[email protected]>
5144-
M: Greg Rose <[email protected]>
5145-
M: Matthew Vick <[email protected]>
5146-
M: John Ronciak <[email protected]>
5147-
M: Mitch Williams <[email protected]>
5148-
M: Linux NICS <[email protected]>
5149-
5147+
R: Jesse Brandeburg <[email protected]>
5148+
R: Shannon Nelson <[email protected]>
5149+
R: Carolyn Wyborny <[email protected]>
5150+
R: Don Skidmore <[email protected]>
5151+
R: Matthew Vick <[email protected]>
5152+
R: John Ronciak <[email protected]>
5153+
R: Mitch Williams <[email protected]>
5154+
51505155
W: http://www.intel.com/support/feedback.htm
51515156
W: http://e1000.sourceforge.net/
5152-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net.git
5153-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next.git
5157+
Q: http://patchwork.ozlabs.org/project/intel-wired-lan/list/
5158+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-queue.git
5159+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git
51545160
S: Supported
51555161
F: Documentation/networking/e100.txt
51565162
F: Documentation/networking/e1000.txt

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION = 4
22
PATCHLEVEL = 0
33
SUBLEVEL = 0
4-
EXTRAVERSION = -rc5
4+
EXTRAVERSION = -rc7
55
NAME = Hurr durr I'ma sheep
66

77
# *DOCUMENTATION*

arch/arc/kernel/signal.c

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs,
6767
sigset_t *set)
6868
{
6969
int err;
70-
err = __copy_to_user(&(sf->uc.uc_mcontext.regs), regs,
70+
err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), regs,
7171
sizeof(sf->uc.uc_mcontext.regs.scratch));
7272
err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t));
7373

@@ -83,7 +83,7 @@ static int restore_usr_regs(struct pt_regs *regs, struct rt_sigframe __user *sf)
8383
if (!err)
8484
set_current_blocked(&set);
8585

86-
err |= __copy_from_user(regs, &(sf->uc.uc_mcontext.regs),
86+
err |= __copy_from_user(regs, &(sf->uc.uc_mcontext.regs.scratch),
8787
sizeof(sf->uc.uc_mcontext.regs.scratch));
8888

8989
return err;
@@ -131,6 +131,15 @@ SYSCALL_DEFINE0(rt_sigreturn)
131131
/* Don't restart from sigreturn */
132132
syscall_wont_restart(regs);
133133

134+
/*
135+
* Ensure that sigreturn always returns to user mode (in case the
136+
* regs saved on user stack got fudged between save and sigreturn)
137+
* Otherwise it is easy to panic the kernel with a custom
138+
* signal handler and/or restorer which clobberes the status32/ret
139+
* to return to a bogus location in kernel mode.
140+
*/
141+
regs->status32 |= STATUS_U_MASK;
142+
134143
return regs->r0;
135144

136145
badframe:
@@ -229,8 +238,11 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs)
229238

230239
/*
231240
* handler returns using sigreturn stub provided already by userpsace
241+
* If not, nuke the process right away
232242
*/
233-
BUG_ON(!(ksig->ka.sa.sa_flags & SA_RESTORER));
243+
if(!(ksig->ka.sa.sa_flags & SA_RESTORER))
244+
return 1;
245+
234246
regs->blink = (unsigned long)ksig->ka.sa.sa_restorer;
235247

236248
/* User Stack for signal handler will be above the frame just carved */
@@ -296,12 +308,12 @@ static void
296308
handle_signal(struct ksignal *ksig, struct pt_regs *regs)
297309
{
298310
sigset_t *oldset = sigmask_to_save();
299-
int ret;
311+
int failed;
300312

301313
/* Set up the stack frame */
302-
ret = setup_rt_frame(ksig, oldset, regs);
314+
failed = setup_rt_frame(ksig, oldset, regs);
303315

304-
signal_setup_done(ret, ksig, 0);
316+
signal_setup_done(failed, ksig, 0);
305317
}
306318

307319
void do_signal(struct pt_regs *regs)

arch/arm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ config ARCH_PXA
619619
select GENERIC_CLOCKEVENTS
620620
select GPIO_PXA
621621
select HAVE_IDE
622+
select IRQ_DOMAIN
622623
select MULTI_IRQ_HANDLER
623624
select PLAT_PXA
624625
select SPARSE_IRQ

arch/arm/boot/dts/dm8168-evm.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@
3636
>;
3737
};
3838

39+
mmc_pins: pinmux_mmc_pins {
40+
pinctrl-single,pins = <
41+
DM816X_IOPAD(0x0a70, MUX_MODE0) /* SD_POW */
42+
DM816X_IOPAD(0x0a74, MUX_MODE0) /* SD_CLK */
43+
DM816X_IOPAD(0x0a78, MUX_MODE0) /* SD_CMD */
44+
DM816X_IOPAD(0x0a7C, MUX_MODE0) /* SD_DAT0 */
45+
DM816X_IOPAD(0x0a80, MUX_MODE0) /* SD_DAT1 */
46+
DM816X_IOPAD(0x0a84, MUX_MODE0) /* SD_DAT2 */
47+
DM816X_IOPAD(0x0a88, MUX_MODE0) /* SD_DAT2 */
48+
DM816X_IOPAD(0x0a8c, MUX_MODE2) /* GP1[7] */
49+
DM816X_IOPAD(0x0a90, MUX_MODE2) /* GP1[8] */
50+
>;
51+
};
52+
3953
usb0_pins: pinmux_usb0_pins {
4054
pinctrl-single,pins = <
4155
DM816X_IOPAD(0x0d00, MUX_MODE0) /* USB0_DRVVBUS */
@@ -137,7 +151,12 @@
137151
};
138152

139153
&mmc1 {
154+
pinctrl-names = "default";
155+
pinctrl-0 = <&mmc_pins>;
140156
vmmc-supply = <&vmmcsd_fixed>;
157+
bus-width = <4>;
158+
cd-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
159+
wp-gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
141160
};
142161

143162
/* At least dm8168-evm rev c won't support multipoint, later may */

arch/arm/boot/dts/dm816x.dtsi

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,17 +150,27 @@
150150
};
151151

152152
gpio1: gpio@48032000 {
153-
compatible = "ti,omap3-gpio";
153+
compatible = "ti,omap4-gpio";
154154
ti,hwmods = "gpio1";
155+
ti,gpio-always-on;
155156
reg = <0x48032000 0x1000>;
156-
interrupts = <97>;
157+
interrupts = <96>;
158+
gpio-controller;
159+
#gpio-cells = <2>;
160+
interrupt-controller;
161+
#interrupt-cells = <2>;
157162
};
158163

159164
gpio2: gpio@4804c000 {
160-
compatible = "ti,omap3-gpio";
165+
compatible = "ti,omap4-gpio";
161166
ti,hwmods = "gpio2";
167+
ti,gpio-always-on;
162168
reg = <0x4804c000 0x1000>;
163-
interrupts = <99>;
169+
interrupts = <98>;
170+
gpio-controller;
171+
#gpio-cells = <2>;
172+
interrupt-controller;
173+
#interrupt-cells = <2>;
164174
};
165175

166176
gpmc: gpmc@50000000 {

arch/arm/boot/dts/dra7.dtsi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,6 @@
11111111
"wkupclk", "refclk",
11121112
"div-clk", "phy-div";
11131113
#phy-cells = <0>;
1114-
ti,hwmods = "pcie1-phy";
11151114
};
11161115

11171116
pcie2_phy: pciephy@4a095000 {
@@ -1130,7 +1129,6 @@
11301129
"wkupclk", "refclk",
11311130
"div-clk", "phy-div";
11321131
#phy-cells = <0>;
1133-
ti,hwmods = "pcie2-phy";
11341132
status = "disabled";
11351133
};
11361134
};

arch/arm/boot/dts/omap3.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
ti,hwmods = "aes";
9393
reg = <0x480c5000 0x50>;
9494
interrupts = <0>;
95+
dmas = <&sdma 65 &sdma 66>;
96+
dma-names = "tx", "rx";
9597
};
9698

9799
prm: prm@48306000 {
@@ -550,6 +552,8 @@
550552
ti,hwmods = "sham";
551553
reg = <0x480c3000 0x64>;
552554
interrupts = <49>;
555+
dmas = <&sdma 69>;
556+
dma-names = "rx";
553557
};
554558

555559
smartreflex_core: smartreflex@480cb000 {

arch/arm/boot/dts/rk3288.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@
411411
"mac_clk_rx", "mac_clk_tx",
412412
"clk_mac_ref", "clk_mac_refout",
413413
"aclk_mac", "pclk_mac";
414+
status = "disabled";
414415
};
415416

416417
usb_host0_ehci: usb@ff500000 {

arch/arm/boot/dts/socfpga.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@
660660
#address-cells = <1>;
661661
#size-cells = <0>;
662662
reg = <0xfff01000 0x1000>;
663-
interrupts = <0 156 4>;
663+
interrupts = <0 155 4>;
664664
num-cs = <4>;
665665
clocks = <&spi_m_clk>;
666666
status = "disabled";

arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@
5656
model = "Olimex A10-OLinuXino-LIME";
5757
compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10";
5858

59+
cpus {
60+
cpu0: cpu@0 {
61+
/*
62+
* The A10-Lime is known to be unstable
63+
* when running at 1008 MHz
64+
*/
65+
operating-points = <
66+
/* kHz uV */
67+
912000 1350000
68+
864000 1300000
69+
624000 1250000
70+
>;
71+
cooling-max-level = <2>;
72+
};
73+
};
74+
5975
soc@01c00000 {
6076
emac: ethernet@01c0b000 {
6177
pinctrl-names = "default";

arch/arm/boot/dts/sun4i-a10.dtsi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,14 @@
7575
clock-latency = <244144>; /* 8 32k periods */
7676
operating-points = <
7777
/* kHz uV */
78-
1056000 1500000
7978
1008000 1400000
8079
912000 1350000
8180
864000 1300000
8281
624000 1250000
8382
>;
8483
#cooling-cells = <2>;
8584
cooling-min-level = <0>;
86-
cooling-max-level = <4>;
85+
cooling-max-level = <3>;
8786
};
8887
};
8988

0 commit comments

Comments
 (0)