Skip to content

Commit b207892

Browse files
committed
Merge branch 'for-linus' into for-3.18/core
A bit of churn on the for-linus side that would be nice to have in the core bits for 3.18, so pull it in to catch us up and make forward progress easier. Signed-off-by: Jens Axboe <axboe@fb.com> Conflicts: block/scsi_ioctl.c
2 parents 018a17b + a516440 commit b207892

346 files changed

Lines changed: 2824 additions & 1779 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.
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
* Toshiba TC3589x multi-purpose expander
2+
3+
The Toshiba TC3589x series are I2C-based MFD devices which may expose the
4+
following built-in devices: gpio, keypad, rotator (vibrator), PWM (for
5+
e.g. LEDs or vibrators) The included models are:
6+
7+
- TC35890
8+
- TC35892
9+
- TC35893
10+
- TC35894
11+
- TC35895
12+
- TC35896
13+
14+
Required properties:
15+
- compatible : must be "toshiba,tc35890", "toshiba,tc35892", "toshiba,tc35893",
16+
"toshiba,tc35894", "toshiba,tc35895" or "toshiba,tc35896"
17+
- reg : I2C address of the device
18+
- interrupt-parent : specifies which IRQ controller we're connected to
19+
- interrupts : the interrupt on the parent the controller is connected to
20+
- interrupt-controller : marks the device node as an interrupt controller
21+
- #interrupt-cells : should be <1>, the first cell is the IRQ offset on this
22+
TC3589x interrupt controller.
23+
24+
Optional nodes:
25+
26+
- GPIO
27+
This GPIO module inside the TC3589x has 24 (TC35890, TC35892) or 20
28+
(other models) GPIO lines.
29+
- compatible : must be "toshiba,tc3589x-gpio"
30+
- interrupts : interrupt on the parent, which must be the tc3589x MFD device
31+
- interrupt-controller : marks the device node as an interrupt controller
32+
- #interrupt-cells : should be <2>, the first cell is the IRQ offset on this
33+
TC3589x GPIO interrupt controller, the second cell is the interrupt flags
34+
in accordance with <dt-bindings/interrupt-controller/irq.h>. The following
35+
flags are valid:
36+
- IRQ_TYPE_LEVEL_LOW
37+
- IRQ_TYPE_LEVEL_HIGH
38+
- IRQ_TYPE_EDGE_RISING
39+
- IRQ_TYPE_EDGE_FALLING
40+
- IRQ_TYPE_EDGE_BOTH
41+
- gpio-controller : marks the device node as a GPIO controller
42+
- #gpio-cells : should be <2>, the first cell is the GPIO offset on this
43+
GPIO controller, the second cell is the flags.
44+
45+
- Keypad
46+
This keypad is the same on all variants, supporting up to 96 different
47+
keys. The linux-specific properties are modeled on those already existing
48+
in other input drivers.
49+
- compatible : must be "toshiba,tc3589x-keypad"
50+
- debounce-delay-ms : debounce interval in milliseconds
51+
- keypad,num-rows : number of rows in the matrix, see
52+
bindings/input/matrix-keymap.txt
53+
- keypad,num-columns : number of columns in the matrix, see
54+
bindings/input/matrix-keymap.txt
55+
- linux,keymap: the definition can be found in
56+
bindings/input/matrix-keymap.txt
57+
- linux,no-autorepeat: do no enable autorepeat feature.
58+
- linux,wakeup: use any event on keypad as wakeup event.
59+
60+
Example:
61+
62+
tc35893@44 {
63+
compatible = "toshiba,tc35893";
64+
reg = <0x44>;
65+
interrupt-parent = <&gpio6>;
66+
interrupts = <26 IRQ_TYPE_EDGE_RISING>;
67+
68+
interrupt-controller;
69+
#interrupt-cells = <1>;
70+
71+
tc3589x_gpio {
72+
compatible = "toshiba,tc3589x-gpio";
73+
interrupts = <0>;
74+
75+
interrupt-controller;
76+
#interrupt-cells = <2>;
77+
gpio-controller;
78+
#gpio-cells = <2>;
79+
};
80+
tc3589x_keypad {
81+
compatible = "toshiba,tc3589x-keypad";
82+
interrupts = <6>;
83+
debounce-delay-ms = <4>;
84+
keypad,num-columns = <8>;
85+
keypad,num-rows = <8>;
86+
linux,no-autorepeat;
87+
linux,wakeup;
88+
linux,keymap = <0x0301006b
89+
0x04010066
90+
0x06040072
91+
0x040200d7
92+
0x0303006a
93+
0x0205000e
94+
0x0607008b
95+
0x0500001c
96+
0x0403000b
97+
0x03040034
98+
0x05020067
99+
0x0305006c
100+
0x040500e7
101+
0x0005009e
102+
0x06020073
103+
0x01030039
104+
0x07060069
105+
0x050500d9>;
106+
};
107+
};

‎Documentation/devicetree/bindings/mtd/gpmc-nand.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Optional properties:
2222
width of 8 is assumed.
2323

2424
- ti,nand-ecc-opt: A string setting the ECC layout to use. One of:
25-
"sw" <deprecated> use "ham1" instead
25+
"sw" 1-bit Hamming ecc code via software
2626
"hw" <deprecated> use "ham1" instead
2727
"hw-romcode" <deprecated> use "ham1" instead
2828
"ham1" 1-bit Hamming ecc code

‎Documentation/devicetree/bindings/pinctrl/qcom,apq8064-pinctrl.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Example:
6262
#gpio-cells = <2>;
6363
interrupt-controller;
6464
#interrupt-cells = <2>;
65-
interrupts = <0 32 0x4>;
65+
interrupts = <0 16 0x4>;
6666

6767
pinctrl-names = "default";
6868
pinctrl-0 = <&gsbi5_uart_default>;

‎Documentation/dma-buf-sharing.txt‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ The dma_buf buffer sharing API usage contains the following steps:
5656
size_t size, int flags,
5757
const char *exp_name)
5858

59-
If this succeeds, dma_buf_export allocates a dma_buf structure, and returns a
60-
pointer to the same. It also associates an anonymous file with this buffer,
61-
so it can be exported. On failure to allocate the dma_buf object, it returns
62-
NULL.
59+
If this succeeds, dma_buf_export_named allocates a dma_buf structure, and
60+
returns a pointer to the same. It also associates an anonymous file with this
61+
buffer, so it can be exported. On failure to allocate the dma_buf object,
62+
it returns NULL.
6363

6464
'exp_name' is the name of exporter - to facilitate information while
6565
debugging.
@@ -76,7 +76,7 @@ The dma_buf buffer sharing API usage contains the following steps:
7676
drivers and/or processes.
7777

7878
Interface:
79-
int dma_buf_fd(struct dma_buf *dmabuf)
79+
int dma_buf_fd(struct dma_buf *dmabuf, int flags)
8080

8181
This API installs an fd for the anonymous file associated with this buffer;
8282
returns either 'fd', or error.
@@ -157,7 +157,9 @@ to request use of buffer for allocation.
157157
"dma_buf->ops->" indirection from the users of this interface.
158158

159159
In struct dma_buf_ops, unmap_dma_buf is defined as
160-
void (*unmap_dma_buf)(struct dma_buf_attachment *, struct sg_table *);
160+
void (*unmap_dma_buf)(struct dma_buf_attachment *,
161+
struct sg_table *,
162+
enum dma_data_direction);
161163

162164
unmap_dma_buf signifies the end-of-DMA for the attachment provided. Like
163165
map_dma_buf, this API also must be implemented by the exporter.

‎Documentation/kdump/kdump.txt‎

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ memory image to a dump file on the local disk, or across the network to
1818
a remote system.
1919

2020
Kdump and kexec are currently supported on the x86, x86_64, ppc64, ia64,
21-
and s390x architectures.
21+
s390x and arm architectures.
2222

2323
When the system kernel boots, it reserves a small section of memory for
2424
the dump-capture kernel. This ensures that ongoing Direct Memory Access
@@ -112,7 +112,7 @@ There are two possible methods of using Kdump.
112112
2) Or use the system kernel binary itself as dump-capture kernel and there is
113113
no need to build a separate dump-capture kernel. This is possible
114114
only with the architectures which support a relocatable kernel. As
115-
of today, i386, x86_64, ppc64 and ia64 architectures support relocatable
115+
of today, i386, x86_64, ppc64, ia64 and arm architectures support relocatable
116116
kernel.
117117

118118
Building a relocatable kernel is advantageous from the point of view that
@@ -241,6 +241,13 @@ Dump-capture kernel config options (Arch Dependent, ia64)
241241
kernel will be aligned to 64Mb, so if the start address is not then
242242
any space below the alignment point will be wasted.
243243

244+
Dump-capture kernel config options (Arch Dependent, arm)
245+
----------------------------------------------------------
246+
247+
- To use a relocatable kernel,
248+
Enable "AUTO_ZRELADDR" support under "Boot" options:
249+
250+
AUTO_ZRELADDR=y
244251

245252
Extended crashkernel syntax
246253
===========================
@@ -256,6 +263,10 @@ The syntax is:
256263
crashkernel=<range1>:<size1>[,<range2>:<size2>,...][@offset]
257264
range=start-[end]
258265

266+
Please note, on arm, the offset is required.
267+
crashkernel=<range1>:<size1>[,<range2>:<size2>,...]@offset
268+
range=start-[end]
269+
259270
'start' is inclusive and 'end' is exclusive.
260271

261272
For example:
@@ -296,6 +307,12 @@ Boot into System Kernel
296307
on the memory consumption of the kdump system. In general this is not
297308
dependent on the memory size of the production system.
298309

310+
On arm, use "crashkernel=Y@X". Note that the start address of the kernel
311+
will be aligned to 128MiB (0x08000000), so if the start address is not then
312+
any space below the alignment point may be overwritten by the dump-capture kernel,
313+
which means it is possible that the vmcore is not that precise as expected.
314+
315+
299316
Load the Dump-capture Kernel
300317
============================
301318

@@ -315,7 +332,8 @@ For ia64:
315332
- Use vmlinux or vmlinuz.gz
316333
For s390x:
317334
- Use image or bzImage
318-
335+
For arm:
336+
- Use zImage
319337

320338
If you are using a uncompressed vmlinux image then use following command
321339
to load dump-capture kernel.
@@ -331,6 +349,15 @@ to load dump-capture kernel.
331349
--initrd=<initrd-for-dump-capture-kernel> \
332350
--append="root=<root-dev> <arch-specific-options>"
333351

352+
If you are using a compressed zImage, then use following command
353+
to load dump-capture kernel.
354+
355+
kexec --type zImage -p <dump-capture-kernel-bzImage> \
356+
--initrd=<initrd-for-dump-capture-kernel> \
357+
--dtb=<dtb-for-dump-capture-kernel> \
358+
--append="root=<root-dev> <arch-specific-options>"
359+
360+
334361
Please note, that --args-linux does not need to be specified for ia64.
335362
It is planned to make this a no-op on that architecture, but for now
336363
it should be omitted
@@ -347,6 +374,9 @@ For ppc64:
347374
For s390x:
348375
"1 maxcpus=1 cgroup_disable=memory"
349376

377+
For arm:
378+
"1 maxcpus=1 reset_devices"
379+
350380
Notes on loading the dump-capture kernel:
351381

352382
* By default, the ELF headers are stored in ELF64 format to support

0 commit comments

Comments
 (0)