Skip to content

Commit 0acc3e5

Browse files
committed
Merge tag 'v4.14.67' into linux-4.14-at91
This is the 4.14.67 stable release
2 parents f83ef46 + f4c8845 commit 0acc3e5

227 files changed

Lines changed: 1565 additions & 779 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.

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 4
33
PATCHLEVEL = 14
4-
SUBLEVEL = 66
4+
SUBLEVEL = 67
55
EXTRAVERSION =
66
NAME = Petit Gorille
77

@@ -357,9 +357,9 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
357357
else if [ -x /bin/bash ]; then echo /bin/bash; \
358358
else echo sh; fi ; fi)
359359

360-
HOST_LFS_CFLAGS := $(shell getconf LFS_CFLAGS)
361-
HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS)
362-
HOST_LFS_LIBS := $(shell getconf LFS_LIBS)
360+
HOST_LFS_CFLAGS := $(shell getconf LFS_CFLAGS 2>/dev/null)
361+
HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS 2>/dev/null)
362+
HOST_LFS_LIBS := $(shell getconf LFS_LIBS 2>/dev/null)
363363

364364
HOSTCC = gcc
365365
HOSTCXX = g++

arch/arc/Makefile

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ endif
1616

1717
KBUILD_DEFCONFIG := nsim_700_defconfig
1818

19-
cflags-y += -fno-common -pipe -fno-builtin -D__linux__
19+
cflags-y += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__
2020
cflags-$(CONFIG_ISA_ARCOMPACT) += -mA7
2121
cflags-$(CONFIG_ISA_ARCV2) += -mcpu=archs
2222

@@ -140,16 +140,3 @@ dtbs: scripts
140140

141141
archclean:
142142
$(Q)$(MAKE) $(clean)=$(boot)
143-
144-
# Hacks to enable final link due to absence of link-time branch relexation
145-
# and gcc choosing optimal(shorter) branches at -O3
146-
#
147-
# vineetg Feb 2010: -mlong-calls switched off for overall kernel build
148-
# However lib/decompress_inflate.o (.init.text) calls
149-
# zlib_inflate_workspacesize (.text) causing relocation errors.
150-
# Thus forcing all exten calls in this file to be long calls
151-
export CFLAGS_decompress_inflate.o = -mmedium-calls
152-
export CFLAGS_initramfs.o = -mmedium-calls
153-
ifdef CONFIG_SMP
154-
export CFLAGS_core.o = -mmedium-calls
155-
endif

arch/arc/include/asm/mach_desc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ struct machine_desc {
3434
const char *name;
3535
const char **dt_compat;
3636
void (*init_early)(void);
37-
#ifdef CONFIG_SMP
3837
void (*init_per_cpu)(unsigned int);
39-
#endif
4038
void (*init_machine)(void);
4139
void (*init_late)(void);
4240

arch/arc/kernel/irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ void __init init_IRQ(void)
3131
/* a SMP H/w block could do IPI IRQ request here */
3232
if (plat_smp_ops.init_per_cpu)
3333
plat_smp_ops.init_per_cpu(smp_processor_id());
34+
#endif
3435

3536
if (machine_desc->init_per_cpu)
3637
machine_desc->init_per_cpu(smp_processor_id());
37-
#endif
3838
}
3939

4040
/*

arch/arc/kernel/process.c

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ SYSCALL_DEFINE0(arc_gettls)
4747
SYSCALL_DEFINE3(arc_usr_cmpxchg, int *, uaddr, int, expected, int, new)
4848
{
4949
struct pt_regs *regs = current_pt_regs();
50-
int uval = -EFAULT;
50+
u32 uval;
51+
int ret;
5152

5253
/*
5354
* This is only for old cores lacking LLOCK/SCOND, which by defintion
@@ -60,23 +61,47 @@ SYSCALL_DEFINE3(arc_usr_cmpxchg, int *, uaddr, int, expected, int, new)
6061
/* Z indicates to userspace if operation succeded */
6162
regs->status32 &= ~STATUS_Z_MASK;
6263

63-
if (!access_ok(VERIFY_WRITE, uaddr, sizeof(int)))
64-
return -EFAULT;
64+
ret = access_ok(VERIFY_WRITE, uaddr, sizeof(*uaddr));
65+
if (!ret)
66+
goto fail;
6567

68+
again:
6669
preempt_disable();
6770

68-
if (__get_user(uval, uaddr))
69-
goto done;
71+
ret = __get_user(uval, uaddr);
72+
if (ret)
73+
goto fault;
7074

71-
if (uval == expected) {
72-
if (!__put_user(new, uaddr))
73-
regs->status32 |= STATUS_Z_MASK;
74-
}
75+
if (uval != expected)
76+
goto out;
7577

76-
done:
77-
preempt_enable();
78+
ret = __put_user(new, uaddr);
79+
if (ret)
80+
goto fault;
81+
82+
regs->status32 |= STATUS_Z_MASK;
7883

84+
out:
85+
preempt_enable();
7986
return uval;
87+
88+
fault:
89+
preempt_enable();
90+
91+
if (unlikely(ret != -EFAULT))
92+
goto fail;
93+
94+
down_read(&current->mm->mmap_sem);
95+
ret = fixup_user_fault(current, current->mm, (unsigned long) uaddr,
96+
FAULT_FLAG_WRITE, NULL);
97+
up_read(&current->mm->mmap_sem);
98+
99+
if (likely(!ret))
100+
goto again;
101+
102+
fail:
103+
force_sig(SIGSEGV, current);
104+
return ret;
80105
}
81106

82107
#ifdef CONFIG_ISA_ARCV2

arch/arm/boot/dts/am3517.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@
8787
};
8888
};
8989

90+
/* Table Table 5-79 of the TRM shows 480ab000 is reserved */
91+
&usb_otg_hs {
92+
status = "disabled";
93+
};
94+
9095
&iva {
9196
status = "disabled";
9297
};

arch/arm/boot/dts/am437x-sk-evm.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,8 @@
535535

536536
touchscreen-size-x = <480>;
537537
touchscreen-size-y = <272>;
538+
539+
wakeup-source;
538540
};
539541

540542
tlv320aic3106: tlv320aic3106@1b {

arch/arm/boot/dts/armada-385-synology-ds116.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
3700 5
171171
3900 6
172172
4000 7>;
173-
cooling-cells = <2>;
173+
#cooling-cells = <2>;
174174
};
175175

176176
gpio-leds {

arch/arm/boot/dts/bcm-cygnus.dtsi

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
reg = <0x18008000 0x100>;
217217
#address-cells = <1>;
218218
#size-cells = <0>;
219-
interrupts = <GIC_SPI 85 IRQ_TYPE_NONE>;
219+
interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
220220
clock-frequency = <100000>;
221221
status = "disabled";
222222
};
@@ -245,7 +245,7 @@
245245
reg = <0x1800b000 0x100>;
246246
#address-cells = <1>;
247247
#size-cells = <0>;
248-
interrupts = <GIC_SPI 86 IRQ_TYPE_NONE>;
248+
interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
249249
clock-frequency = <100000>;
250250
status = "disabled";
251251
};
@@ -256,7 +256,7 @@
256256

257257
#interrupt-cells = <1>;
258258
interrupt-map-mask = <0 0 0 0>;
259-
interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_NONE>;
259+
interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
260260

261261
linux,pci-domain = <0>;
262262

@@ -278,10 +278,10 @@
278278
compatible = "brcm,iproc-msi";
279279
msi-controller;
280280
interrupt-parent = <&gic>;
281-
interrupts = <GIC_SPI 96 IRQ_TYPE_NONE>,
282-
<GIC_SPI 97 IRQ_TYPE_NONE>,
283-
<GIC_SPI 98 IRQ_TYPE_NONE>,
284-
<GIC_SPI 99 IRQ_TYPE_NONE>;
281+
interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
282+
<GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
283+
<GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
284+
<GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
285285
};
286286
};
287287

@@ -291,7 +291,7 @@
291291

292292
#interrupt-cells = <1>;
293293
interrupt-map-mask = <0 0 0 0>;
294-
interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_NONE>;
294+
interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
295295

296296
linux,pci-domain = <1>;
297297

@@ -313,10 +313,10 @@
313313
compatible = "brcm,iproc-msi";
314314
msi-controller;
315315
interrupt-parent = <&gic>;
316-
interrupts = <GIC_SPI 102 IRQ_TYPE_NONE>,
317-
<GIC_SPI 103 IRQ_TYPE_NONE>,
318-
<GIC_SPI 104 IRQ_TYPE_NONE>,
319-
<GIC_SPI 105 IRQ_TYPE_NONE>;
316+
interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
317+
<GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
318+
<GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
319+
<GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
320320
};
321321
};
322322

arch/arm/boot/dts/bcm-nsp.dtsi

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@
391391
reg = <0x38000 0x50>;
392392
#address-cells = <1>;
393393
#size-cells = <0>;
394-
interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>;
394+
interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
395395
clock-frequency = <100000>;
396396
dma-coherent;
397397
status = "disabled";
@@ -496,7 +496,7 @@
496496

497497
#interrupt-cells = <1>;
498498
interrupt-map-mask = <0 0 0 0>;
499-
interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_NONE>;
499+
interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
500500

501501
linux,pci-domain = <0>;
502502

@@ -519,10 +519,10 @@
519519
compatible = "brcm,iproc-msi";
520520
msi-controller;
521521
interrupt-parent = <&gic>;
522-
interrupts = <GIC_SPI 127 IRQ_TYPE_NONE>,
523-
<GIC_SPI 128 IRQ_TYPE_NONE>,
524-
<GIC_SPI 129 IRQ_TYPE_NONE>,
525-
<GIC_SPI 130 IRQ_TYPE_NONE>;
522+
interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>,
523+
<GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>,
524+
<GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>,
525+
<GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
526526
brcm,pcie-msi-inten;
527527
};
528528
};
@@ -533,7 +533,7 @@
533533

534534
#interrupt-cells = <1>;
535535
interrupt-map-mask = <0 0 0 0>;
536-
interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_NONE>;
536+
interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
537537

538538
linux,pci-domain = <1>;
539539

@@ -556,10 +556,10 @@
556556
compatible = "brcm,iproc-msi";
557557
msi-controller;
558558
interrupt-parent = <&gic>;
559-
interrupts = <GIC_SPI 133 IRQ_TYPE_NONE>,
560-
<GIC_SPI 134 IRQ_TYPE_NONE>,
561-
<GIC_SPI 135 IRQ_TYPE_NONE>,
562-
<GIC_SPI 136 IRQ_TYPE_NONE>;
559+
interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>,
560+
<GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
561+
<GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
562+
<GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
563563
brcm,pcie-msi-inten;
564564
};
565565
};
@@ -570,7 +570,7 @@
570570

571571
#interrupt-cells = <1>;
572572
interrupt-map-mask = <0 0 0 0>;
573-
interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_NONE>;
573+
interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
574574

575575
linux,pci-domain = <2>;
576576

@@ -593,10 +593,10 @@
593593
compatible = "brcm,iproc-msi";
594594
msi-controller;
595595
interrupt-parent = <&gic>;
596-
interrupts = <GIC_SPI 139 IRQ_TYPE_NONE>,
597-
<GIC_SPI 140 IRQ_TYPE_NONE>,
598-
<GIC_SPI 141 IRQ_TYPE_NONE>,
599-
<GIC_SPI 142 IRQ_TYPE_NONE>;
596+
interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>,
597+
<GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>,
598+
<GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
599+
<GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
600600
brcm,pcie-msi-inten;
601601
};
602602
};

0 commit comments

Comments
 (0)