[git pull] PCMCIA changes for v4.2

2015-06-22 Thread Dominik Brodowski
Hi Linus, a few PCMCIA fixes and cleanups are available in the PCMCIA tree. Most of them are trivial and self-explanatory. Of particular note are the last three patches which add an important hardware quirk for Toshiba ToPIC95 sockets (or BIOS breakage on systems with these sockets), fix resource

[PATCH 05/12] drivers: pcmcia: electra_cf.c fix checkpatch error and warnings

2015-06-22 Thread Dominik Brodowski
From: Laurent Navet laurent.na...@gmail.com fix these checkpatch errors and warning: - ERROR: foo * bar should be foo *bar - WARNING: please, no space before tabs - WARNING: sizeof *cf should be sizeof(*cf) - WARNING: space prohibited between function name and open parenthesis '('i

[PATCH 03/12] PCMCIA: Remove commented references to dead class_device_create_file()

2015-06-22 Thread Dominik Brodowski
From: Robert P. J. Day rpj...@crashcourse.ca Since this routine doesn't even exist anymore, there's no point leaving in commented code using it. Signed-off-by: Robert P. J. Day rpj...@crashcourse.ca Signed-off-by: Dominik Brodowski li...@dominikbrodowski.net --- drivers/pcmcia/i82365.c | 7

[PATCH 06/12] pcmcia: Remove typedef tuple_flags

2015-06-22 Thread Dominik Brodowski
From: Himangi Saraogi himangi...@gmail.com The Linux kernel coding style guidelines suggest not using typedefs for structure types. This patch gets rid of the typedef for tuple_flags. The following Coccinelle semantic patch makes the transformation. @tn@ identifier i; type td; @@ -typedef

[PATCH 01/12] pcmcia: replace open-coded ARRAY_SIZE with macro

2015-06-22 Thread Dominik Brodowski
From: Jim Cromie jim.cro...@gmail.com Signed-off-by: Jim Cromie jim.cro...@gmail.com Signed-off-by: Dominik Brodowski li...@dominikbrodowski.net --- drivers/pcmcia/i82365.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pcmcia/i82365.c b/drivers/pcmcia/i82365.c index

[PATCH 04/12] drivers: pcmcia: ds.c fix checkpatch errors

2015-06-22 Thread Dominik Brodowski
From: Laurent Navet laurent.na...@gmail.com fix these checkpatch errors : - ERROR: spaces required around that '' (ctx:VxW) - ERROR: foo * bar should be foo *bar - WARNING: please, no space before tabs Signed-off-by: Laurent Navet laurent.na...@gmail.com Signed-off-by: Dominik Brodowski

[PATCH 02/12] drivers/pcmcia/electra_cf.c: add missing iounmap and kfree

2015-06-22 Thread Dominik Brodowski
From: Julia Lawall julia.law...@lip6.fr cf and cf-mem_base have been allocated at the point of this failure, so they should be freed before leaving the function. [li...@dominikbrodowski.net: limit call to device_init_wakeup() to the same error paths as before] Signed-off-by: Julia Lawall

[PATCH 10/12] Disable write buffering on Toshiba ToPIC95

2015-06-22 Thread Dominik Brodowski
From: Ryan Underwood neme...@icequake.net Disable write buffering on the Toshiba ToPIC95 if it is enabled by somebody (it is not supposed to be a power-on default according to the datasheet). On the ToPIC95, practically no 32-bit Cardbus card will work under heavy load without locking up the

[PATCH 08/12] pcmcia/vrc4171: Remove typedefs for enums and struct

2015-06-22 Thread Dominik Brodowski
From: Himangi Saraogi himangi...@gmail.com The Linux kernel coding style guidelines suggest not using typedefs for structure and enum types. This patch gets rid of the typedefs for vrc4171_slot_t, vrc4171_slotb_t and vrc4171_socket_t. Also, the names of the enums and the struct are changed to

[PATCH 12/12] pcmcia: do not break rsrc_nonstatic when handling anonymous cards

2015-06-22 Thread Dominik Brodowski
Patch 1c6c9b1d9d25 caused a regression for rsrc_nonstatic: It relies on pccard_validate_cis() to determine whether an iomem resource can be used for PCMCIA cards. This override, however, lead invalid iomem resources to be accepted -- and lead to a fake CIS being used instead of the original CIS.