Skip to content

Commit 043b4d4

Browse files
committed
Merge branch 'master' into next
Conflicts: security/keys/keyring.c Resolved conflict with whitespace fix in find_keyring_by_name() Signed-off-by: James Morris <jmorris@namei.org>
2 parents 2928238 + 722154e commit 043b4d4

41 files changed

Lines changed: 508 additions & 196 deletions

Some content is hidden

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

‎Documentation/DocBook/libata.tmpl‎

Lines changed: 16 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ void (*dev_config) (struct ata_port *, struct ata_device *);
107107
issue of SET FEATURES - XFER MODE, and prior to operation.
108108
</para>
109109
<para>
110-
Called by ata_device_add() after ata_dev_identify() determines
111-
a device is present.
112-
</para>
113-
<para>
114110
This entry may be specified as NULL in ata_port_operations.
115111
</para>
116112

@@ -154,8 +150,8 @@ unsigned int (*mode_filter) (struct ata_port *, struct ata_device *, unsigned in
154150

155151
<sect2><title>Taskfile read/write</title>
156152
<programlisting>
157-
void (*tf_load) (struct ata_port *ap, struct ata_taskfile *tf);
158-
void (*tf_read) (struct ata_port *ap, struct ata_taskfile *tf);
153+
void (*sff_tf_load) (struct ata_port *ap, struct ata_taskfile *tf);
154+
void (*sff_tf_read) (struct ata_port *ap, struct ata_taskfile *tf);
159155
</programlisting>
160156

161157
<para>
@@ -164,36 +160,35 @@ void (*tf_read) (struct ata_port *ap, struct ata_taskfile *tf);
164160
hardware registers / DMA buffers, to obtain the current set of
165161
taskfile register values.
166162
Most drivers for taskfile-based hardware (PIO or MMIO) use
167-
ata_tf_load() and ata_tf_read() for these hooks.
163+
ata_sff_tf_load() and ata_sff_tf_read() for these hooks.
168164
</para>
169165

170166
</sect2>
171167

172168
<sect2><title>PIO data read/write</title>
173169
<programlisting>
174-
void (*data_xfer) (struct ata_device *, unsigned char *, unsigned int, int);
170+
void (*sff_data_xfer) (struct ata_device *, unsigned char *, unsigned int, int);
175171
</programlisting>
176172

177173
<para>
178174
All bmdma-style drivers must implement this hook. This is the low-level
179175
operation that actually copies the data bytes during a PIO data
180176
transfer.
181-
Typically the driver
182-
will choose one of ata_pio_data_xfer_noirq(), ata_pio_data_xfer(), or
183-
ata_mmio_data_xfer().
177+
Typically the driver will choose one of ata_sff_data_xfer_noirq(),
178+
ata_sff_data_xfer(), or ata_sff_data_xfer32().
184179
</para>
185180

186181
</sect2>
187182

188183
<sect2><title>ATA command execute</title>
189184
<programlisting>
190-
void (*exec_command)(struct ata_port *ap, struct ata_taskfile *tf);
185+
void (*sff_exec_command)(struct ata_port *ap, struct ata_taskfile *tf);
191186
</programlisting>
192187

193188
<para>
194189
causes an ATA command, previously loaded with
195190
->tf_load(), to be initiated in hardware.
196-
Most drivers for taskfile-based hardware use ata_exec_command()
191+
Most drivers for taskfile-based hardware use ata_sff_exec_command()
197192
for this hook.
198193
</para>
199194

@@ -218,29 +213,23 @@ command.
218213

219214
<sect2><title>Read specific ATA shadow registers</title>
220215
<programlisting>
221-
u8 (*check_status)(struct ata_port *ap);
222-
u8 (*check_altstatus)(struct ata_port *ap);
216+
u8 (*sff_check_status)(struct ata_port *ap);
217+
u8 (*sff_check_altstatus)(struct ata_port *ap);
223218
</programlisting>
224219

225220
<para>
226221
Reads the Status/AltStatus ATA shadow register from
227222
hardware. On some hardware, reading the Status register has
228223
the side effect of clearing the interrupt condition.
229224
Most drivers for taskfile-based hardware use
230-
ata_check_status() for this hook.
231-
</para>
232-
<para>
233-
Note that because this is called from ata_device_add(), at
234-
least a dummy function that clears device interrupts must be
235-
provided for all drivers, even if the controller doesn't
236-
actually have a taskfile status register.
225+
ata_sff_check_status() for this hook.
237226
</para>
238227

239228
</sect2>
240229

241230
<sect2><title>Select ATA device on bus</title>
242231
<programlisting>
243-
void (*dev_select)(struct ata_port *ap, unsigned int device);
232+
void (*sff_dev_select)(struct ata_port *ap, unsigned int device);
244233
</programlisting>
245234

246235
<para>
@@ -251,9 +240,7 @@ void (*dev_select)(struct ata_port *ap, unsigned int device);
251240
</para>
252241
<para>
253242
Most drivers for taskfile-based hardware use
254-
ata_std_dev_select() for this hook. Controllers which do not
255-
support second drives on a port (such as SATA contollers) will
256-
use ata_noop_dev_select().
243+
ata_sff_dev_select() for this hook.
257244
</para>
258245

259246
</sect2>
@@ -441,13 +428,13 @@ void (*irq_clear) (struct ata_port *);
441428
to struct ata_host_set.
442429
</para>
443430
<para>
444-
Most legacy IDE drivers use ata_interrupt() for the
431+
Most legacy IDE drivers use ata_sff_interrupt() for the
445432
irq_handler hook, which scans all ports in the host_set,
446433
determines which queued command was active (if any), and calls
447-
ata_host_intr(ap,qc).
434+
ata_sff_host_intr(ap,qc).
448435
</para>
449436
<para>
450-
Most legacy IDE drivers use ata_bmdma_irq_clear() for the
437+
Most legacy IDE drivers use ata_sff_irq_clear() for the
451438
irq_clear() hook, which simply clears the interrupt and error
452439
flags in the DMA status register.
453440
</para>
@@ -496,10 +483,6 @@ void (*host_stop) (struct ata_host_set *host_set);
496483
data from port at this time.
497484
</para>
498485
<para>
499-
Many drivers use ata_port_stop() as this hook, which frees the
500-
PRD table.
501-
</para>
502-
<para>
503486
->host_stop() is called after all ->port_stop() calls
504487
have completed. The hook must finalize hardware shutdown, release DMA
505488
and other resources, etc.

‎Documentation/input/elantech.txt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,14 +333,14 @@ byte 0:
333333
byte 1:
334334

335335
bit 7 6 5 4 3 2 1 0
336-
x15 x14 x13 x12 x11 x10 x9 x8
336+
. . . . . x10 x9 x8
337337

338338
byte 2:
339339

340340
bit 7 6 5 4 3 2 1 0
341341
x7 x6 x5 x4 x4 x2 x1 x0
342342

343-
x15..x0 = absolute x value (horizontal)
343+
x10..x0 = absolute x value (horizontal)
344344

345345
byte 3:
346346

@@ -350,14 +350,14 @@ byte 3:
350350
byte 4:
351351

352352
bit 7 6 5 4 3 2 1 0
353-
y15 y14 y13 y12 y11 y10 y8 y8
353+
. . . . . . y9 y8
354354

355355
byte 5:
356356

357357
bit 7 6 5 4 3 2 1 0
358358
y7 y6 y5 y4 y3 y2 y1 y0
359359

360-
y15..y0 = absolute y value (vertical)
360+
y9..y0 = absolute y value (vertical)
361361

362362

363363
4.2.2 Two finger touch

‎crypto/async_tx/async_raid6_recov.c‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ struct dma_async_tx_descriptor *
324324
async_raid6_2data_recov(int disks, size_t bytes, int faila, int failb,
325325
struct page **blocks, struct async_submit_ctl *submit)
326326
{
327+
void *scribble = submit->scribble;
327328
int non_zero_srcs, i;
328329

329330
BUG_ON(faila == failb);
@@ -332,11 +333,13 @@ async_raid6_2data_recov(int disks, size_t bytes, int faila, int failb,
332333

333334
pr_debug("%s: disks: %d len: %zu\n", __func__, disks, bytes);
334335

335-
/* we need to preserve the contents of 'blocks' for the async
336-
* case, so punt to synchronous if a scribble buffer is not available
336+
/* if a dma resource is not available or a scribble buffer is not
337+
* available punt to the synchronous path. In the 'dma not
338+
* available' case be sure to use the scribble buffer to
339+
* preserve the content of 'blocks' as the caller intended.
337340
*/
338-
if (!submit->scribble) {
339-
void **ptrs = (void **) blocks;
341+
if (!async_dma_find_channel(DMA_PQ) || !scribble) {
342+
void **ptrs = scribble ? scribble : (void **) blocks;
340343

341344
async_tx_quiesce(&submit->depend_tx);
342345
for (i = 0; i < disks; i++)
@@ -406,11 +409,13 @@ async_raid6_datap_recov(int disks, size_t bytes, int faila,
406409

407410
pr_debug("%s: disks: %d len: %zu\n", __func__, disks, bytes);
408411

409-
/* we need to preserve the contents of 'blocks' for the async
410-
* case, so punt to synchronous if a scribble buffer is not available
412+
/* if a dma resource is not available or a scribble buffer is not
413+
* available punt to the synchronous path. In the 'dma not
414+
* available' case be sure to use the scribble buffer to
415+
* preserve the content of 'blocks' as the caller intended.
411416
*/
412-
if (!scribble) {
413-
void **ptrs = (void **) blocks;
417+
if (!async_dma_find_channel(DMA_PQ) || !scribble) {
418+
void **ptrs = scribble ? scribble : (void **) blocks;
414419

415420
async_tx_quiesce(&submit->depend_tx);
416421
for (i = 0; i < disks; i++)

‎drivers/ata/pata_pcmcia.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static struct pcmcia_device_id pcmcia_devices[] = {
424424
PCMCIA_DEVICE_PROD_ID12("Hyperstone", "Model1", 0x3d5b9ef5, 0xca6ab420),
425425
PCMCIA_DEVICE_PROD_ID12("IBM", "microdrive", 0xb569a6e5, 0xa6d76178),
426426
PCMCIA_DEVICE_PROD_ID12("IBM", "IBM17JSSFP20", 0xb569a6e5, 0xf2508753),
427-
PCMCIA_DEVICE_PROD_ID12("KINGSTON", "CF CARD 1GB", 0x2e6d1829, 0x3e520e17),
427+
PCMCIA_DEVICE_PROD_ID12("KINGSTON", "CF CARD 1GB", 0x2e6d1829, 0x55d5bffb),
428428
PCMCIA_DEVICE_PROD_ID12("KINGSTON", "CF CARD 4GB", 0x2e6d1829, 0x531e7d10),
429429
PCMCIA_DEVICE_PROD_ID12("KINGSTON", "CF8GB", 0x2e6d1829, 0xacbe682e),
430430
PCMCIA_DEVICE_PROD_ID12("IO DATA", "CBIDE2 ", 0x547e66dc, 0x8671043b),
@@ -446,7 +446,7 @@ static struct pcmcia_device_id pcmcia_devices[] = {
446446
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS1GCF80", 0x709b1bf1, 0x2a54d4b1),
447447
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS2GCF120", 0x709b1bf1, 0x969aa4f2),
448448
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF120", 0x709b1bf1, 0xf54a91c8),
449-
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF133", 0x709b1bf1, 0x9351e59d),
449+
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF133", 0x709b1bf1, 0x7558f133),
450450
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS8GCF133", 0x709b1bf1, 0xb2f89b47),
451451
PCMCIA_DEVICE_PROD_ID12("WIT", "IDE16", 0x244e5994, 0x3e232852),
452452
PCMCIA_DEVICE_PROD_ID12("WEIDA", "TWTTI", 0xcc7cf69c, 0x212bb918),

‎drivers/ide/ide-cs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static struct pcmcia_device_id ide_ids[] = {
409409
PCMCIA_DEVICE_PROD_ID12("Hyperstone", "Model1", 0x3d5b9ef5, 0xca6ab420),
410410
PCMCIA_DEVICE_PROD_ID12("IBM", "microdrive", 0xb569a6e5, 0xa6d76178),
411411
PCMCIA_DEVICE_PROD_ID12("IBM", "IBM17JSSFP20", 0xb569a6e5, 0xf2508753),
412-
PCMCIA_DEVICE_PROD_ID12("KINGSTON", "CF CARD 1GB", 0x2e6d1829, 0x3e520e17),
412+
PCMCIA_DEVICE_PROD_ID12("KINGSTON", "CF CARD 1GB", 0x2e6d1829, 0x55d5bffb),
413413
PCMCIA_DEVICE_PROD_ID12("KINGSTON", "CF CARD 4GB", 0x2e6d1829, 0x531e7d10),
414414
PCMCIA_DEVICE_PROD_ID12("KINGSTON", "CF8GB", 0x2e6d1829, 0xacbe682e),
415415
PCMCIA_DEVICE_PROD_ID12("IO DATA", "CBIDE2 ", 0x547e66dc, 0x8671043b),
@@ -431,7 +431,7 @@ static struct pcmcia_device_id ide_ids[] = {
431431
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS1GCF80", 0x709b1bf1, 0x2a54d4b1),
432432
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS2GCF120", 0x709b1bf1, 0x969aa4f2),
433433
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF120", 0x709b1bf1, 0xf54a91c8),
434-
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF133", 0x709b1bf1, 0x9351e59d),
434+
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF133", 0x709b1bf1, 0x7558f133),
435435
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS8GCF133", 0x709b1bf1, 0xb2f89b47),
436436
PCMCIA_DEVICE_PROD_ID12("WIT", "IDE16", 0x244e5994, 0x3e232852),
437437
PCMCIA_DEVICE_PROD_ID12("WEIDA", "TWTTI", 0xcc7cf69c, 0x212bb918),

‎drivers/input/joydev.c‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,24 @@ static const struct input_device_id joydev_ids[] = {
929929
.evbit = { BIT_MASK(EV_ABS) },
930930
.absbit = { BIT_MASK(ABS_THROTTLE) },
931931
},
932+
{
933+
.flags = INPUT_DEVICE_ID_MATCH_EVBIT |
934+
INPUT_DEVICE_ID_MATCH_KEYBIT,
935+
.evbit = { BIT_MASK(EV_KEY) },
936+
.keybit = {[BIT_WORD(BTN_JOYSTICK)] = BIT_MASK(BTN_JOYSTICK) },
937+
},
938+
{
939+
.flags = INPUT_DEVICE_ID_MATCH_EVBIT |
940+
INPUT_DEVICE_ID_MATCH_KEYBIT,
941+
.evbit = { BIT_MASK(EV_KEY) },
942+
.keybit = { [BIT_WORD(BTN_GAMEPAD)] = BIT_MASK(BTN_GAMEPAD) },
943+
},
944+
{
945+
.flags = INPUT_DEVICE_ID_MATCH_EVBIT |
946+
INPUT_DEVICE_ID_MATCH_KEYBIT,
947+
.evbit = { BIT_MASK(EV_KEY) },
948+
.keybit = { [BIT_WORD(BTN_TRIGGER_HAPPY)] = BIT_MASK(BTN_TRIGGER_HAPPY) },
949+
},
932950
{ } /* Terminating entry */
933951
};
934952

‎drivers/input/misc/ati_remote.c‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@
9898
* Module and Version Information, Module Parameters
9999
*/
100100

101-
#define ATI_REMOTE_VENDOR_ID 0x0bc7
102-
#define ATI_REMOTE_PRODUCT_ID 0x004
103-
#define LOLA_REMOTE_PRODUCT_ID 0x002
104-
#define MEDION_REMOTE_PRODUCT_ID 0x006
101+
#define ATI_REMOTE_VENDOR_ID 0x0bc7
102+
#define LOLA_REMOTE_PRODUCT_ID 0x0002
103+
#define LOLA2_REMOTE_PRODUCT_ID 0x0003
104+
#define ATI_REMOTE_PRODUCT_ID 0x0004
105+
#define NVIDIA_REMOTE_PRODUCT_ID 0x0005
106+
#define MEDION_REMOTE_PRODUCT_ID 0x0006
105107

106108
#define DRIVER_VERSION "2.2.1"
107109
#define DRIVER_AUTHOR "Torrey Hoffman <thoffman@arnor.net>"
@@ -142,8 +144,10 @@ MODULE_PARM_DESC(repeat_delay, "Delay before sending repeats, default = 500 msec
142144
#define err(format, arg...) printk(KERN_ERR format , ## arg)
143145

144146
static struct usb_device_id ati_remote_table[] = {
145-
{ USB_DEVICE(ATI_REMOTE_VENDOR_ID, ATI_REMOTE_PRODUCT_ID) },
146147
{ USB_DEVICE(ATI_REMOTE_VENDOR_ID, LOLA_REMOTE_PRODUCT_ID) },
148+
{ USB_DEVICE(ATI_REMOTE_VENDOR_ID, LOLA2_REMOTE_PRODUCT_ID) },
149+
{ USB_DEVICE(ATI_REMOTE_VENDOR_ID, ATI_REMOTE_PRODUCT_ID) },
150+
{ USB_DEVICE(ATI_REMOTE_VENDOR_ID, NVIDIA_REMOTE_PRODUCT_ID) },
147151
{ USB_DEVICE(ATI_REMOTE_VENDOR_ID, MEDION_REMOTE_PRODUCT_ID) },
148152
{} /* Terminating entry */
149153
};

‎drivers/input/mouse/alps.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ static const struct alps_model_info alps_model_data[] = {
6464
{ { 0x62, 0x02, 0x14 }, 0xcf, 0xcf,
6565
ALPS_PASS | ALPS_DUALPOINT | ALPS_PS2_INTERLEAVED },
6666
{ { 0x73, 0x02, 0x50 }, 0xcf, 0xcf, ALPS_FOUR_BUTTONS }, /* Dell Vostro 1400 */
67-
{ { 0x73, 0x02, 0x64 }, 0xf8, 0xf8, 0 }, /* HP Pavilion dm3 */
6867
{ { 0x52, 0x01, 0x14 }, 0xff, 0xff,
6968
ALPS_PASS | ALPS_DUALPOINT | ALPS_PS2_INTERLEAVED }, /* Toshiba Tecra A11-11L */
7069
};

0 commit comments

Comments
 (0)