[Bug 88801] SCM PCMCIA CompactFlash Adapter seems not to be recognized

2016-08-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=88801 --- Comment #44 from ingvarthorv...@gmail.com --- First yes you can use kgb if you have a second system and can mount the debugged system over serial. On the other hand remove this line: ap->pflags = ATA_PFLAG_PIO32 | ATA_PFLAG_PIO32CHANGE; from

[Bug 88801] SCM PCMCIA CompactFlash Adapter seems not to be recognized

2016-08-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=88801 --- Comment #42 from Elmar Stellnberger --- Isn`t there any better way to debug this? If the backtrace does not give you enough information isn`t there something like kdb that can generate core files / analyse variables

Re: [PATCH 05/33] gpio: add generic single-register fixed-direction GPIO driver

2016-08-29 Thread Robert Jarzmik
Hi Russell, Russell King writes: > Add a simple, generic, single register fixed-direction GPIO driver. > This is able to support a single register where a fixed number of > bits are used for input and a fixed number of bits used for output. > > Signed-off-by: Russell

Re: [PATCH 06/33] ARM: pxa/lubbock: add GPIO driver for LUB_MISC_WR register

2016-08-29 Thread Russell King - ARM Linux
On Mon, Aug 29, 2016 at 09:57:20PM +0200, Robert Jarzmik wrote: > Russell King writes: > If gpio_reg_init() failed (and I know, the probability of a lack of memory at > that stage of the kernel boot is ridiculous), this will end up as an NULL > pointer dereference if

Re: [PATCH 05/33] gpio: add generic single-register fixed-direction GPIO driver

2016-08-29 Thread Russell King - ARM Linux
On Mon, Aug 29, 2016 at 09:39:54PM +0200, Robert Jarzmik wrote: > Hi Russell, > > Russell King writes: > > > Add a simple, generic, single register fixed-direction GPIO driver. > > This is able to support a single register where a fixed number of > > bits are used

[Bug 88801] SCM PCMCIA CompactFlash Adapter seems not to be recognized

2016-08-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=88801 --- Comment #46 from ingvarthorv...@gmail.com --- That probably is the issue. Seems that it was either ports or flags not being set correctly. After tracing for a bit that was conclusion, just checking if removing the line fixes the issue or do be

[Bug 88801] SCM PCMCIA CompactFlash Adapter seems not to be recognized

2016-08-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=88801 --- Comment #41 from Elmar Stellnberger --- dropped to initrd, no fs mountable, keyboard not working. -- You are receiving this mail because: You are the assignee for the bug.

[PATCH 0/3] SA11x0/PXA pcmcia fixes

2016-08-29 Thread Russell King - ARM Linux
Further to the DS suspend/resume fix, here's a few more for SA11x0/PXA. drivers/pcmcia/sa11xx_base.c | 8 drivers/pcmcia/soc_common.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for

[PATCH 29/33] pcmcia: sa1111/neponset: convert to use MAX1600 power driver

2016-08-29 Thread Russell King
Use the MAX1600 power switch driver for Neponset. Signed-off-by: Russell King --- drivers/pcmcia/Kconfig | 1 + drivers/pcmcia/sa_neponset.c | 79 ++-- 2 files changed, 20 insertions(+), 60 deletions(-) diff --git

[PATCH 30/33] ARM: sa1100/jornada720: switch jornada720 PCMCIA to gpiod APIs

2016-08-29 Thread Russell King
Convert the low level PCMCIA driver to gpiod APIs for controlling the socket power. Signed-off-by: Russell King --- arch/arm/mach-sa1100/jornada720.c | 12 ++ drivers/pcmcia/sa_jornada720.c | 81 +- 2 files changed, 66

[PATCH 18/33] pcmcia: sa1100: provide generic CF support

2016-08-29 Thread Russell King
Provide generic non-voltage sensing socket support for StrongARM platforms using the gpiolib and regulator subsystems to obtain the resources to control the socket. Signed-off-by: Russell King --- drivers/pcmcia/sa1100_generic.c | 120

[PATCH 16/33] pcmcia: soc_common: switch to a per-socket cpufreq notifier

2016-08-29 Thread Russell King
Switch to a per-socket cpufreq notifier rather than a global notifier. This allows each socket to be self-contained. Signed-off-by: Russell King --- drivers/pcmcia/soc_common.c | 77 ++--- drivers/pcmcia/soc_common.h | 3 ++ 2

[RFC PATCH 00/33] SA11x0/PXA GPIO rework (Core + PCMCIA only)

2016-08-29 Thread Russell King - ARM Linux
Following on from the PCMCIA fixes, this series reworks GPIO on SA11x0 and PXA platforms. This is a subset of a larger series, which I'm splitting up due to its size. This part contains the base and PCMCIA updates. Further updates for IrDA drivers, DMA engine, serial, and ethernet will follow

[PATCH 33/33] ARM: sa1111: remove legacy GPIO interfaces

2016-08-29 Thread Russell King
Now that we have migrated all users of the legacy private SA gpio interfaces, we can remove these redundant interfaces. Signed-off-by: Russell King --- arch/arm/common/sa.c | 59 --

[PATCH 1/3] pcmcia: sa11xx_base: fix reporting of timing information

2016-08-29 Thread Russell King
Fix the reporting of the currently programmed timing information. These entries have been showing zero due to the clock rate being a factor of 1000 too big. With this change, we go from: I/O : 165 (0) attribute: 300 (0) common : 300 (0) to: I/O : 165 (172) attribute: 300 (316)

[PATCH 2/3] pcmcia: sa11xx_base: add units to the timing information

2016-08-29 Thread Russell King
Add units to the timing information, so we know that the numbers are nanoseconds. The output changes from: I/O : 165 (172) attribute: 300 (316) common : 300 (316) to: I/O : 165ns (172ns) attribute: 300ns (316ns) common : 300ns (316ns) Signed-off-by: Russell King

[PATCH 3/3] pcmcia: soc_common: fix SS_STSCHG polarity

2016-08-29 Thread Russell King
SS_STSCHG should be set for an IO card when the BVD1 signal is asserted low, not high. Signed-off-by: Russell King --- drivers/pcmcia/soc_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pcmcia/soc_common.c

[PATCH 05/33] gpio: add generic single-register fixed-direction GPIO driver

2016-08-29 Thread Russell King
Add a simple, generic, single register fixed-direction GPIO driver. This is able to support a single register where a fixed number of bits are used for input and a fixed number of bits used for output. Signed-off-by: Russell King --- drivers/gpio/Kconfig | 6 ++

[PATCH 07/33] ARM: sa1100/assabet: add BCR/BSR GPIO driver

2016-08-29 Thread Russell King
Add a GPIO driver for the board control register/board status register for the sa1100/assabet platform. This allows us to transition a range of drivers to use the gpiod APIs rather than the platform private ASSABET_BCR_* interfaces. Signed-off-by: Russell King ---

[PATCH 06/33] ARM: pxa/lubbock: add GPIO driver for LUB_MISC_WR register

2016-08-29 Thread Russell King
Add a gpio driver for the lubbock miscellaneous write IO register so we can take advantage of subsystems modelled around gpiolib, rather than having to provide platform specific callbacks. Signed-off-by: Russell King --- arch/arm/mach-pxa/Kconfig | 1 +

[PATCH 10/33] pcmcia: soc_common: switch to using gpio_descs

2016-08-29 Thread Russell King
Switch to using the gpiod_* consumer API rather than the legacy API. Signed-off-by: Russell King --- drivers/pcmcia/soc_common.c | 57 + drivers/pcmcia/soc_common.h | 3 +++ 2 files changed, 45 insertions(+), 15

[PATCH 03/33] gpio: sa1100: convert to use IO accessors

2016-08-29 Thread Russell King
Signed-off-by: Russell King --- drivers/gpio/gpio-sa1100.c | 199 - 1 file changed, 124 insertions(+), 75 deletions(-) diff --git a/drivers/gpio/gpio-sa1100.c b/drivers/gpio/gpio-sa1100.c index fb9d52a57d78..bad0169524c9

[PATCH 02/33] gpio: sa1100: use sa11x0_gpio_set_wake()

2016-08-29 Thread Russell King
Use sa11x0_gpio_set_wake() to set the PWER register, as provided by Dmitry some time back. Signed-off-by: Russell King --- drivers/gpio/gpio-sa1100.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-sa1100.c

[PATCH 25/33] ARM: sa1100/nanoengine: convert to generic CF sockets

2016-08-29 Thread Russell King
Convert nanoengine to use the generic CF socket support. Signed-off-by: Russell King --- arch/arm/mach-sa1100/nanoengine.c | 23 +++ drivers/pcmcia/sa1100_generic.c| 3 - drivers/pcmcia/sa1100_generic.h| 1 - drivers/pcmcia/sa1100_nanoengine.c | 133

[PATCH 26/33] ARM: sa1100/shannon: switch shannon PCMCIA to use gpiod APIs

2016-08-29 Thread Russell King
Switch shannon's PCMCIA implementation to use the gpiod APIs. Signed-off-by: Russell King --- arch/arm/mach-sa1100/shannon.c | 13 + drivers/pcmcia/sa1100_shannon.c | 25 ++--- 2 files changed, 19 insertions(+), 19 deletions(-) diff

[PATCH 28/33] ARM: sa1100/neponset: add GPIOs for PCMCIA

2016-08-29 Thread Russell King
Add the gpiod table for Neponset PCMCIA power control. Signed-off-by: Russell King --- arch/arm/mach-sa1100/neponset.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/mach-sa1100/neponset.c b/arch/arm/mach-sa1100/neponset.c index

[PATCH 27/33] ARM: sa1100/simpad: switch simpad CF to use gpiod APIs

2016-08-29 Thread Russell King
Switch simpad's CF implementation to use the gpiod APIs. The inverted detection is handled using gpiolib's native inversion abilities. Signed-off-by: Russell King --- arch/arm/mach-sa1100/simpad.c | 12 drivers/pcmcia/sa1100_simpad.c | 12 +++-

[PATCH 09/33] ARM: sa1111: implement a gpio_chip for SA1111 GPIOs

2016-08-29 Thread Russell King
Add a gpio_chip instance for SA GPIOs. This allows us to use gpiolib to lookup and manipulate SA GPIOs. Signed-off-by: Russell King --- arch/arm/common/sa.c | 168 ++- 1 file changed, 165 insertions(+), 3

[PATCH 08/33] ARM: sa1100/neponset: add GPIO drivers for control and modem registers

2016-08-29 Thread Russell King
The NCR, MDM_CTL* and AUD registers manipulate the state of external signals (eg, the RTS, DTR signals and the ethernet oscillator enable signal) or indicate the state of external signals (eg, CTS, DSR). Where these registers can be written, the current value can be read back, which relieves us

[PATCH 31/33] ARM: pxa/lubbock: convert PCMCIA to use MAX1600 driver

2016-08-29 Thread Russell King
As Lubbock now provides GPIOs via gpiolib for controlling the socket power, we can use the MAX1600 driver. Switch Lubbock to use this driver, which simplifies the code. Signed-off-by: Russell King --- arch/arm/mach-pxa/lubbock.c | 16 ++

[PATCH 12/33] pcmcia: soc_common: add support for reset and bus enable GPIOs

2016-08-29 Thread Russell King
Add support to soc_common for controlling reset and bus enable GPIOs from within the generic soc_common layer, rather than having individual drivers having to perform this themselves. Signed-off-by: Russell King --- drivers/pcmcia/soc_common.c | 20

[PATCH 15/33] pcmcia: soc_common: add support for Vcc and Vpp regulators

2016-08-29 Thread Russell King
Add support for handling supply regulators in the soc_common code. This allows us to separate out the board specifics for setting voltages from the PCMCIA code. We detect when setting a voltage fails, and report this fact - some platforms have fixed-voltage supplies (eg, for CF sockets at 3.3V)

[PATCH 19/33] pcmcia: sa1111: add driver-data pointer

2016-08-29 Thread Russell King
Add a driver-data pointer so that low level drivers can add additional data to the sa pcmcia socket structure. Signed-off-by: Russell King --- drivers/pcmcia/sa_generic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pcmcia/sa_generic.h

[PATCH 22/33] ARM: sa1100/assabet: convert to generic CF sockets

2016-08-29 Thread Russell King
Convert Assabet to use the generic CF socket support. Signed-off-by: Russell King --- arch/arm/mach-sa1100/assabet.c | 61 +- arch/arm/mach-sa1100/include/mach/assabet.h | 6 -- drivers/pcmcia/Makefile | 1 -

[PATCH 21/33] ARM: sa1100: provide infrastructure to support generic CF sockets

2016-08-29 Thread Russell King
Provide the SoC-level infrastructure to support the generic CF sockets. Signed-off-by: Russell King --- arch/arm/mach-sa1100/clock.c | 2 ++ arch/arm/mach-sa1100/generic.c | 14 +- arch/arm/mach-sa1100/generic.h | 3 +++ 3 files changed, 18

[PATCH 24/33] ARM: sa1100/h3xxx: switch h3xxx PCMCIA to use gpiod APIs

2016-08-29 Thread Russell King
Switch h3xxx's PCMCIA implementation to use the gpiod APIs where possible. Signed-off-by: Russell King --- arch/arm/mach-sa1100/h3xxx.c | 17 + drivers/pcmcia/sa1100_h3600.c | 16 +++- 2 files changed, 24 insertions(+), 9 deletions(-)

[PATCH 23/33] ARM: sa1100/cerf: convert to generic CF sockets

2016-08-29 Thread Russell King
Convert Cerf to use the generic CF socket support. Signed-off-by: Russell King --- arch/arm/mach-sa1100/cerf.c | 18 +++-- drivers/pcmcia/Makefile | 1 - drivers/pcmcia/sa1100_cerf.c| 85 -

[PATCH 32/33] pcmcia: sa1100*: remove redundant bvd1/bvd2 setting

2016-08-29 Thread Russell King
bvd1 and bvd2 both default to 1 in the generic soc_common code, so having a driver repeat this is redundant. Remove it. Signed-off-by: Russell King --- drivers/pcmcia/sa1100_shannon.c | 4 drivers/pcmcia/sa1100_simpad.c | 4 ++-- 2 files changed, 2

[PATCH 14/33] pcmcia: soc_common: add CF socket state helper

2016-08-29 Thread Russell King
Add a helper to get the voltage state of CF sockets, where the voltage sense pins are not wired up. Switch assabet and cerf to use this helper. Signed-off-by: Russell King --- drivers/pcmcia/sa1100_assabet.c | 9 + drivers/pcmcia/sa1100_cerf.c| 9

[PATCH 17/33] pcmcia: soc_common: constify pcmcia_low_level ops pointer

2016-08-29 Thread Russell King
Constify the pcmcia_low_level operation pointer to soc_pcmcia_init_one() which has no need to modify it. Signed-off-by: Russell King --- drivers/pcmcia/soc_common.c | 2 +- drivers/pcmcia/soc_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 20/33] pcmcia: add MAX1600 driver

2016-08-29 Thread Russell King
Add a driver for the MAX1600 PCMCIA power switch device. This is a dual-channel device, controlled via four GPIO signals per channel. Two signals control the Vcc output, and two control the Vpp output. Signed-off-by: Russell King --- drivers/pcmcia/Kconfig | 3

[Bug 88801] SCM PCMCIA CompactFlash Adapter seems not to be recognized

2016-08-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=88801 --- Comment #36 from ingvarthorv...@gmail.com --- Most drivers need to check that was just making sure it wasn't this one. I don't have this hardware otherwise I would have not asked you to test for me and just give me your traces so I can debug

[Bug 88801] SCM PCMCIA CompactFlash Adapter seems not to be recognized

2016-08-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=88801 --- Comment #37 from ingvarthorv...@gmail.com --- Created attachment 231151 --> https://bugzilla.kernel.org/attachment.cgi?id=231151=edit Test Port on Card is Not Null -- You are receiving this mail because: You are the assignee for the bug.

[Bug 88801] SCM PCMCIA CompactFlash Adapter seems not to be recognized

2016-08-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=88801 --- Comment #35 from Elmar Stellnberger --- Ingvar; are you sure that your latest patch does not break the whole kernel IO subsystem? Last time I have got stuck in the initrd (not even the kyboard was working). Please test

[Bug 88801] SCM PCMCIA CompactFlash Adapter seems not to be recognized

2016-08-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=88801 --- Comment #38 from Elmar Stellnberger --- Created attachment 231221 --> https://bugzilla.kernel.org/attachment.cgi?id=231221=edit screenshot of the backtrace (your last patch 0009) Now that definitely worsens things: