Skip to content

Commit d84a2b0

Browse files
committed
Merge 3.17-rc6 into staging-next.
We want the fixes in there, and it resolves a merge issue with drivers/iio/accel/bma180.c Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2 parents 3f76a4e + 0f33be0 commit d84a2b0

167 files changed

Lines changed: 1078 additions & 612 deletions

File tree

Some content is hidden

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

‎Documentation/devicetree/bindings/input/atmel,maxtouch.txt‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ Required properties:
1111

1212
Optional properties for main touchpad device:
1313

14-
- linux,gpio-keymap: An array of up to 4 entries indicating the Linux
15-
keycode generated by each GPIO. Linux keycodes are defined in
16-
<dt-bindings/input/input.h>.
17-
1814
- linux,gpio-keymap: When enabled, the SPT_GPIOPWN_T19 object sends messages
1915
on GPIO bit changes. An array of up to 8 entries can be provided
2016
indicating the Linux keycode mapped to each bit of the status byte,

‎Documentation/devicetree/bindings/sound/rockchip-i2s.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ i2s@ff890000 {
3131
#address-cells = <1>;
3232
#size-cells = <0>;
3333
dmas = <&pdma1 0>, <&pdma1 1>;
34-
dma-names = "rx", "tx";
34+
dma-names = "tx", "rx";
3535
clock-names = "i2s_hclk", "i2s_clk";
3636
clocks = <&cru HCLK_I2S0>, <&cru SCLK_I2S0>;
3737
};

‎Documentation/devicetree/bindings/spi/spi-rockchip.txt‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ Required Properties:
1616
- clocks: Must contain an entry for each entry in clock-names.
1717
- clock-names: Shall be "spiclk" for the transfer-clock, and "apb_pclk" for
1818
the peripheral clock.
19+
- #address-cells: should be 1.
20+
- #size-cells: should be 0.
21+
22+
Optional Properties:
23+
1924
- dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
2025
Documentation/devicetree/bindings/dma/dma.txt
2126
- dma-names: DMA request names should include "tx" and "rx" if present.
22-
- #address-cells: should be 1.
23-
- #size-cells: should be 0.
27+
2428

2529
Example:
2630

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6890,7 +6890,7 @@ F: arch/x86/kernel/quirks.c
68906890

68916891
PCI DRIVER FOR IMX6
68926892
M: Richard Zhu <r65037@freescale.com>
6893-
M: Shawn Guo <shawn.guo@freescale.com>
6893+
M: Lucas Stach <l.stach@pengutronix.de>
68946894
L: linux-pci@vger.kernel.org
68956895
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
68966896
S: Maintained

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION = 3
22
PATCHLEVEL = 17
33
SUBLEVEL = 0
4-
EXTRAVERSION = -rc5
4+
EXTRAVERSION = -rc6
55
NAME = Shuffling Zombie Juror
66

77
# *DOCUMENTATION*

‎arch/arm/include/asm/tls.h‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#ifndef __ASMARM_TLS_H
22
#define __ASMARM_TLS_H
33

4+
#include <linux/compiler.h>
5+
#include <asm/thread_info.h>
6+
47
#ifdef __ASSEMBLY__
58
#include <asm/asm-offsets.h>
69
.macro switch_tls_none, base, tp, tpuser, tmp1, tmp2
@@ -50,6 +53,47 @@
5053
#endif
5154

5255
#ifndef __ASSEMBLY__
56+
57+
static inline void set_tls(unsigned long val)
58+
{
59+
struct thread_info *thread;
60+
61+
thread = current_thread_info();
62+
63+
thread->tp_value[0] = val;
64+
65+
/*
66+
* This code runs with preemption enabled and therefore must
67+
* be reentrant with respect to switch_tls.
68+
*
69+
* We need to ensure ordering between the shadow state and the
70+
* hardware state, so that we don't corrupt the hardware state
71+
* with a stale shadow state during context switch.
72+
*
73+
* If we're preempted here, switch_tls will load TPIDRURO from
74+
* thread_info upon resuming execution and the following mcr
75+
* is merely redundant.
76+
*/
77+
barrier();
78+
79+
if (!tls_emu) {
80+
if (has_tls_reg) {
81+
asm("mcr p15, 0, %0, c13, c0, 3"
82+
: : "r" (val));
83+
} else {
84+
/*
85+
* User space must never try to access this
86+
* directly. Expect your app to break
87+
* eventually if you do so. The user helper
88+
* at 0xffff0fe0 must be used instead. (see
89+
* entry-armv.S for details)
90+
*/
91+
*((unsigned int *)0xffff0ff0) = val;
92+
}
93+
94+
}
95+
}
96+
5397
static inline unsigned long get_tpuser(void)
5498
{
5599
unsigned long reg = 0;
@@ -59,5 +103,23 @@ static inline unsigned long get_tpuser(void)
59103

60104
return reg;
61105
}
106+
107+
static inline void set_tpuser(unsigned long val)
108+
{
109+
/* Since TPIDRURW is fully context-switched (unlike TPIDRURO),
110+
* we need not update thread_info.
111+
*/
112+
if (has_tls_reg && !tls_emu) {
113+
asm("mcr p15, 0, %0, c13, c0, 2"
114+
: : "r" (val));
115+
}
116+
}
117+
118+
static inline void flush_tls(void)
119+
{
120+
set_tls(0);
121+
set_tpuser(0);
122+
}
123+
62124
#endif
63125
#endif /* __ASMARM_TLS_H */

‎arch/arm/include/asm/uaccess.h‎

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ static inline void set_fs(mm_segment_t fs)
107107
extern int __get_user_1(void *);
108108
extern int __get_user_2(void *);
109109
extern int __get_user_4(void *);
110-
extern int __get_user_lo8(void *);
110+
extern int __get_user_32t_8(void *);
111111
extern int __get_user_8(void *);
112+
extern int __get_user_64t_1(void *);
113+
extern int __get_user_64t_2(void *);
114+
extern int __get_user_64t_4(void *);
112115

113116
#define __GUP_CLOBBER_1 "lr", "cc"
114117
#ifdef CONFIG_CPU_USE_DOMAINS
@@ -117,7 +120,7 @@ extern int __get_user_8(void *);
117120
#define __GUP_CLOBBER_2 "lr", "cc"
118121
#endif
119122
#define __GUP_CLOBBER_4 "lr", "cc"
120-
#define __GUP_CLOBBER_lo8 "lr", "cc"
123+
#define __GUP_CLOBBER_32t_8 "lr", "cc"
121124
#define __GUP_CLOBBER_8 "lr", "cc"
122125

123126
#define __get_user_x(__r2,__p,__e,__l,__s) \
@@ -131,12 +134,30 @@ extern int __get_user_8(void *);
131134

132135
/* narrowing a double-word get into a single 32bit word register: */
133136
#ifdef __ARMEB__
134-
#define __get_user_xb(__r2, __p, __e, __l, __s) \
135-
__get_user_x(__r2, __p, __e, __l, lo8)
137+
#define __get_user_x_32t(__r2, __p, __e, __l, __s) \
138+
__get_user_x(__r2, __p, __e, __l, 32t_8)
136139
#else
137-
#define __get_user_xb __get_user_x
140+
#define __get_user_x_32t __get_user_x
138141
#endif
139142

143+
/*
144+
* storing result into proper least significant word of 64bit target var,
145+
* different only for big endian case where 64 bit __r2 lsw is r3:
146+
*/
147+
#ifdef __ARMEB__
148+
#define __get_user_x_64t(__r2, __p, __e, __l, __s) \
149+
__asm__ __volatile__ ( \
150+
__asmeq("%0", "r0") __asmeq("%1", "r2") \
151+
__asmeq("%3", "r1") \
152+
"bl __get_user_64t_" #__s \
153+
: "=&r" (__e), "=r" (__r2) \
154+
: "0" (__p), "r" (__l) \
155+
: __GUP_CLOBBER_##__s)
156+
#else
157+
#define __get_user_x_64t __get_user_x
158+
#endif
159+
160+
140161
#define __get_user_check(x,p) \
141162
({ \
142163
unsigned long __limit = current_thread_info()->addr_limit - 1; \
@@ -146,17 +167,26 @@ extern int __get_user_8(void *);
146167
register int __e asm("r0"); \
147168
switch (sizeof(*(__p))) { \
148169
case 1: \
149-
__get_user_x(__r2, __p, __e, __l, 1); \
170+
if (sizeof((x)) >= 8) \
171+
__get_user_x_64t(__r2, __p, __e, __l, 1); \
172+
else \
173+
__get_user_x(__r2, __p, __e, __l, 1); \
150174
break; \
151175
case 2: \
152-
__get_user_x(__r2, __p, __e, __l, 2); \
176+
if (sizeof((x)) >= 8) \
177+
__get_user_x_64t(__r2, __p, __e, __l, 2); \
178+
else \
179+
__get_user_x(__r2, __p, __e, __l, 2); \
153180
break; \
154181
case 4: \
155-
__get_user_x(__r2, __p, __e, __l, 4); \
182+
if (sizeof((x)) >= 8) \
183+
__get_user_x_64t(__r2, __p, __e, __l, 4); \
184+
else \
185+
__get_user_x(__r2, __p, __e, __l, 4); \
156186
break; \
157187
case 8: \
158188
if (sizeof((x)) < 8) \
159-
__get_user_xb(__r2, __p, __e, __l, 4); \
189+
__get_user_x_32t(__r2, __p, __e, __l, 4); \
160190
else \
161191
__get_user_x(__r2, __p, __e, __l, 8); \
162192
break; \

‎arch/arm/kernel/armksyms.c‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ EXPORT_SYMBOL(__clear_user);
9898
EXPORT_SYMBOL(__get_user_1);
9999
EXPORT_SYMBOL(__get_user_2);
100100
EXPORT_SYMBOL(__get_user_4);
101+
EXPORT_SYMBOL(__get_user_8);
102+
103+
#ifdef __ARMEB__
104+
EXPORT_SYMBOL(__get_user_64t_1);
105+
EXPORT_SYMBOL(__get_user_64t_2);
106+
EXPORT_SYMBOL(__get_user_64t_4);
107+
EXPORT_SYMBOL(__get_user_32t_8);
108+
#endif
101109

102110
EXPORT_SYMBOL(__put_user_1);
103111
EXPORT_SYMBOL(__put_user_2);

‎arch/arm/kernel/irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static bool migrate_one_irq(struct irq_desc *desc)
175175
c = irq_data_get_irq_chip(d);
176176
if (!c->irq_set_affinity)
177177
pr_debug("IRQ%u: unable to set affinity\n", d->irq);
178-
else if (c->irq_set_affinity(d, affinity, true) == IRQ_SET_MASK_OK && ret)
178+
else if (c->irq_set_affinity(d, affinity, false) == IRQ_SET_MASK_OK && ret)
179179
cpumask_copy(d->affinity, affinity);
180180

181181
return ret;

‎arch/arm/kernel/perf_event_cpu.c‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,15 @@ static struct pmu_hw_events *cpu_pmu_get_cpu_events(void)
7676

7777
static void cpu_pmu_enable_percpu_irq(void *data)
7878
{
79-
struct arm_pmu *cpu_pmu = data;
80-
struct platform_device *pmu_device = cpu_pmu->plat_device;
81-
int irq = platform_get_irq(pmu_device, 0);
79+
int irq = *(int *)data;
8280

8381
enable_percpu_irq(irq, IRQ_TYPE_NONE);
84-
cpumask_set_cpu(smp_processor_id(), &cpu_pmu->active_irqs);
8582
}
8683

8784
static void cpu_pmu_disable_percpu_irq(void *data)
8885
{
89-
struct arm_pmu *cpu_pmu = data;
90-
struct platform_device *pmu_device = cpu_pmu->plat_device;
91-
int irq = platform_get_irq(pmu_device, 0);
86+
int irq = *(int *)data;
9287

93-
cpumask_clear_cpu(smp_processor_id(), &cpu_pmu->active_irqs);
9488
disable_percpu_irq(irq);
9589
}
9690

@@ -103,7 +97,7 @@ static void cpu_pmu_free_irq(struct arm_pmu *cpu_pmu)
10397

10498
irq = platform_get_irq(pmu_device, 0);
10599
if (irq >= 0 && irq_is_percpu(irq)) {
106-
on_each_cpu(cpu_pmu_disable_percpu_irq, cpu_pmu, 1);
100+
on_each_cpu(cpu_pmu_disable_percpu_irq, &irq, 1);
107101
free_percpu_irq(irq, &percpu_pmu);
108102
} else {
109103
for (i = 0; i < irqs; ++i) {
@@ -138,7 +132,7 @@ static int cpu_pmu_request_irq(struct arm_pmu *cpu_pmu, irq_handler_t handler)
138132
irq);
139133
return err;
140134
}
141-
on_each_cpu(cpu_pmu_enable_percpu_irq, cpu_pmu, 1);
135+
on_each_cpu(cpu_pmu_enable_percpu_irq, &irq, 1);
142136
} else {
143137
for (i = 0; i < irqs; ++i) {
144138
err = 0;

0 commit comments

Comments
 (0)