Re: ZTE MC315 CDMA wireless PCMCIA data card on Linux

2006-12-05 Thread Russell King
for experimenting with, but I tried for _years_ (literally) and never got anywhere... Consequently, I do not have any enthusiasm for 950 support. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux

Re: [PATCH] pcmcia: Remove bulkmem.h and ioctl warning messages

2006-12-13 Thread Russell King
responding to the same old patches over and over again. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman/listinfo/linux-pcmcia

Re: [PATCH v2] pcmcia: export pcmcia_bus_type

2007-05-13 Thread Russell King
-io_size); + + kfree(cf); + + return 0; +} -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman/listinfo/linux-pcmcia

Re: libata and legacy ide pcmcia failure

2007-06-10 Thread Russell King
memorystick, so it actually works. If so, send me your mailing address privately. Before you do, it might help to build the ide-disk module and insert that as well? -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer

Re: PCMCIA driver resource allocation

2007-10-19 Thread Russell King
) + release_region(link-io.BasePort1, link-io.NumPorts1); + if (info-flags USE_SHMEM) { iounmap(info-base); pcmcia_release_window(link-win); -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer

Re: PCMCIA driver resource allocation

2007-10-21 Thread Russell King
On Sun, Oct 21, 2007 at 10:46:17AM -0700, Kristoffer Ericson wrote: On Fri, 19 Oct 2007 23:40:22 +0100 Russell King [EMAIL PROTECTED] wrote: The list is still around, but Dominik seems to have vanished. Ive tried to subscribbe to the list, but with no luck. You might want to talk to David

Re: [PATCH] PCMCIA: prevent auto insert during resume.

2007-10-26 Thread Russell King
that happening, which sucks for at least embedded devices. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman/listinfo/linux-pcmcia

Re: [PATCH] PCMCIA: prevent auto insert during resume.

2007-10-26 Thread Russell King
On Fri, Oct 26, 2007 at 05:47:06PM +0200, Rodolfo Giometti wrote: On Fri, Oct 26, 2007 at 04:11:41PM +0100, Russell King wrote: On Fri, Oct 26, 2007 at 12:51:25PM +0200, Rodolfo Giometti wrote: If a socket has been ejected before sleeping, at resume time it shouldn't be awaked

Re: [PATCH] PCMCIA: prevent auto insert during resume.

2007-10-26 Thread Russell King
On Fri, Oct 26, 2007 at 06:27:06PM +0200, Rodolfo Giometti wrote: On Fri, Oct 26, 2007 at 05:02:06PM +0100, Russell King wrote: When you bring the battery device out of resume, and you've inserted a card, you want it to be detected. Your change means you have to wait until the system has

Re: [PATCH] PCMCIA: prevent auto insert during resume.

2007-10-26 Thread Russell King
On Fri, Oct 26, 2007 at 06:54:00PM +0200, Rodolfo Giometti wrote: On Fri, Oct 26, 2007 at 05:36:51PM +0100, Russell King wrote: On Fri, Oct 26, 2007 at 06:27:06PM +0200, Rodolfo Giometti wrote: On Fri, Oct 26, 2007 at 05:02:06PM +0100, Russell King wrote: When you bring the battery

Re: [PATCH] PCMCIA: prevent auto insert during resume.

2007-11-01 Thread Russell King
On Thu, Nov 01, 2007 at 06:37:41PM +, Russell King wrote: On Thu, Nov 01, 2007 at 03:53:59PM +0100, Rodolfo Giometti wrote: On Mon, Oct 29, 2007 at 07:24:15PM +, Pavel Machek wrote: On Fri 2007-10-26 19:18:57, Rodolfo Giometti wrote: On Fri, Oct 26, 2007 at 06:00:31PM +0100

Re: [BUG] New Kernel Bugs

2007-11-13 Thread Russell King
*VOLUNTEERED* to be a part of the kernel bugzilla, and really *WISH* I could pull out of that function. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation list http

Re: [BUG] New Kernel Bugs

2007-11-13 Thread Russell King
as reported in bugzilla had been reported on the correct mailing list would've been solved earlier; I doubt there'd be much difference. However, the probability of a question being asked of the reporter would've been much higher, and _that_ might have led to an earlier resolution.) -- Russell King

Re: [BUG] New Kernel Bugs

2007-11-13 Thread Russell King
and wonderfully exciting technologies, to churn out more patches for me to merge (and eventually provide a free to them bug fixing service for.) That's less inclined, not won't. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer

Re: [BUG] New Kernel Bugs

2007-11-13 Thread Russell King
can somehow spend infinite amounts of time solving lots and lots of bugs. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman/listinfo

Re: [BUG] New Kernel Bugs

2007-11-13 Thread Russell King
On Tue, Nov 13, 2007 at 12:52:22PM -0800, Andrew Morton wrote: On Tue, 13 Nov 2007 19:32:19 + Russell King [EMAIL PROTECTED] wrote: There's another issue I want to raise concerning bugzilla. We have the classic case of not enough people reading bugzilla bugs - which is one

Re: [BUG] New Kernel Bugs

2007-11-13 Thread Russell King
sure sufficient would do. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman/listinfo/linux-pcmcia

Re: [BUG] New Kernel Bugs

2007-11-13 Thread Russell King
On Tue, Nov 13, 2007 at 09:13:19PM +0100, Adrian Bunk wrote: On Tue, Nov 13, 2007 at 07:32:19PM +, Russell King wrote: ... There's another issue I want to raise concerning bugzilla. We have the classic case of not enough people reading bugzilla bugs - which is one of the biggest

Re: [BUG] New Kernel Bugs

2007-11-13 Thread Russell King
On Tue, Nov 13, 2007 at 03:18:07PM -0500, Mark Lord wrote: Russell King wrote: On Tue, Nov 13, 2007 at 09:08:32AM -0500, Mark Lord wrote: Ingo Molnar wrote: .. This is all QA-101 that _cannot be argued against on a rational basis_, it's just that these sorts of things have been largely

Re: [BUG] New Kernel Bugs

2007-11-14 Thread Russell King
On Tue, Nov 13, 2007 at 05:55:51PM -0800, David Miller wrote: From: Andrew Morton [EMAIL PROTECTED] Date: Tue, 13 Nov 2007 14:32:01 -0800 On Tue, 13 Nov 2007 22:18:01 + Russell King [EMAIL PROTECTED] wrote: Find some other mailing list; I'm not hosting *nor* am I willing to run

Re: [BUG] New Kernel Bugs

2007-11-14 Thread Russell King
9229 has been solved, and the reporter of that bug now says that: If I unset NO_TZ suspend/resume works. If I set it suspend/resume doesn't works. So I think this guy is now suffering from bug #9275 -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer

Re: [BUG] Kernel Bugs Weekly (maybe bi-weekly)

2007-12-14 Thread Russell King
(question is if he knows this :) Not quite sure what the point of putting it in an email he hasn't seen is either. Adding Ben as a CC. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA

Re: Recommendation for PCMCIA (DMA capable) interface chipset

2007-12-21 Thread Russell King
what architecture or platform or chipset. The only time you get DMA on such an interface is with Cardbus cards which effectively extend the PCI programming interface direct to the card. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer

Re: PCMCIA wireless CDMA card

2008-02-18 Thread Russell King
, .wakeup = quirk_wakeup_oxsemi, + .setup = quirk_setup_oxsemi, }, { .manfid = MANFID_POSSIO, .prodid = PRODID_POSSIO_GCC, -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer

Re: PCMCIA wireless CDMA card

2008-02-18 Thread Russell King
On Mon, Feb 18, 2008 at 09:00:34PM +, Russell King wrote: On Mon, Apr 16, 2007 at 12:54:58AM -0400, Brian Walsh wrote: I have a CDMA wireless card which I am trying to bring up. However it does not seem to be responding properly. When trying to minicom to the device to get

Re: PCMCIA wireless CDMA card

2008-02-19 Thread Russell King
On Tue, Feb 19, 2008 at 01:35:54AM +0100, Peter Stuge wrote: On Mon, Feb 18, 2008 at 09:00:34PM +, Russell King wrote: However, I'm not sure if its worth submitting into the kernel tree or not - are these cards current technology? Better working support for old technology than broken

Re: Power Cycling cards

2008-02-21 Thread Russell King
the drivers from the card, so you can't do it from your driver. I have searched other drivers but could nto find anything that seemed to have a similar need. That's because you seem to have non-standard requirements. -- Russell King Linux kernel2.6 ARM Linux - http

Re: [2.6 patch] the long overdue pcmcia_ioctl.c removal

2008-02-27 Thread Russell King
reporting IOCTL. Eg, it now thinks there's always a wireless card plugged in. TBH I've given up trying to fight this continue lets remove these IOCTLs which no one uses crap. Obviously, _I_ use them. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer

Re: [2.6 patch] the long overdue pcmcia_ioctl.c removal

2008-02-28 Thread Russell King
On Thu, Feb 28, 2008 at 01:24:57AM +0100, Peter Stuge wrote: (Really cross-post like this?) On Wed, Feb 27, 2008 at 08:44:07PM +, Russell King wrote: TBH I've given up trying to fight this continue lets remove these IOCTLs which no one uses crap. Obviously, _I_ use them. I suppose

Re: [2.6 patch] PCMCIA mustn't select HAVE_IDE

2008-04-15 Thread Russell King
in hell for me to be able to track these kinds of dependencies. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman/listinfo/linux-pcmcia

Re: [2.6 patch] PCMCIA mustn't select HAVE_IDE

2008-04-15 Thread Russell King
it should have fixed should be fixed properly. I'd suggest backing out the entire change which introduced HAVE_IDE then - rather than doing it piecemeal and bringing up questions about it which are unanswerable (which is the case of Bart's question of me.) -- Russell King Linux kernel2.6 ARM

Re: [2.6 patch] PCMCIA mustn't select HAVE_IDE

2008-04-15 Thread Russell King
On Tue, Apr 15, 2008 at 10:28:22PM +0100, Russell King wrote: On Wed, Apr 16, 2008 at 12:23:26AM +0300, Adrian Bunk wrote: On Tue, Apr 15, 2008 at 10:15:34PM +0200, Bartlomiej Zolnierkiewicz wrote: On Monday 14 April 2008, Sam Ravnborg wrote: On Mon, Apr 14, 2008 at 05:16:59PM +0300

Re: [2.6 patch] PCMCIA mustn't select HAVE_IDE

2008-04-15 Thread Russell King
On Wed, Apr 16, 2008 at 12:52:23AM +0300, Adrian Bunk wrote: On Tue, Apr 15, 2008 at 10:42:03PM +0100, Russell King wrote: On Tue, Apr 15, 2008 at 10:28:22PM +0100, Russell King wrote: On Wed, Apr 16, 2008 at 12:23:26AM +0300, Adrian Bunk wrote: On Tue, Apr 15, 2008 at 10:15:34PM +0200

Re: [2.6 patch] PCMCIA mustn't select HAVE_IDE

2008-04-15 Thread Russell King
On Wed, Apr 16, 2008 at 01:10:02AM +0300, Adrian Bunk wrote: On Tue, Apr 15, 2008 at 11:03:45PM +0100, Russell King wrote: On Wed, Apr 16, 2008 at 12:52:23AM +0300, Adrian Bunk wrote: ... So this is a only impacting ARM wrt. PCMCIA, and given that ARM supplies an asm/ide.h, it's _entirely_

Re: pcmcia_ioctl.c compile error

2008-04-29 Thread Russell King
at least one of my platforms is now dead as far as building new kernels for it, and nothing I can do about that. Ho hum. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation

Re: pcmcia_ioctl.c compile error

2008-04-29 Thread Russell King
On Tue, Apr 29, 2008 at 01:59:02PM -0700, Randy Dunlap wrote: On Tue, 29 Apr 2008 21:17:04 +0100 Russell King wrote: On Tue, Apr 29, 2008 at 09:27:10PM +0300, Adrian Bunk wrote: Commit 9c37066d888bf6e1b96ad12304971b3ddeabbad0 (proc: remove proc_bus) came through -mm that contains

Re: pcmcia_ioctl.c compile error

2008-04-29 Thread Russell King
it gets to Linus ASAP. Hind sight is always a wonderful thing. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman/listinfo/linux-pcmcia

Re: Problem with Oxford 950 2xRS232

2008-05-11 Thread Russell King
[] = { .prodid = ~0, .multi = -1, .wakeup = quirk_wakeup_oxsemi, + .setup = quirk_setup_oxsemi, }, { .manfid = MANFID_POSSIO, .prodid = PRODID_POSSIO_GCC, -- Russell King Linux kernel2.6 ARM

Re: [PATCH 1/1] [PCMCIA]: add support the CF PCMCIA driver for Blackfin

2008-05-12 Thread Russell King
), + .suspend= pcmcia_socket_dev_suspend, + .resume = pcmcia_socket_dev_resume, +}; NAK. All platform device drivers must be of type 'struct platform_driver'. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer

Re: [2.6 patch] pcmcia: kill IN_CARD_SERVICES

2008-05-15 Thread Russell King
. That means I've no problem with this patch to remove IN_CARD_SERVICES. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman/listinfo/linux

Re: [m...@misterjones.org: [PATCH 3/5] [PCMCIA] Add support for platform dependant quirks]

2008-08-12 Thread Russell King
sockets... Maybe that's a misunderstanding because of the loseness of the patch description. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation list http://lists.infradead.org

Re: [PATCH] pcmcia: add SS_COMA state to distinguish between insert and resume events.

2009-04-14 Thread Russell King
with Linux PCMCIA anymore, please refrain from copying him on emails on this subject. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: ___ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman

[PATCH 4/5] [ARM] pxa: lx: add PCMCIA driver

2009-04-18 Thread Russell King
Add GPIO-based PCMCIA driver for LX platform. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk CC: linux-pcmcia@lists.infradead.org --- drivers/pcmcia/Kconfig |2 +- drivers/pcmcia/Makefile|1 + drivers/pcmcia/pxa2xx_lx.c | 227

[RFC PATCH 08/10] PCMCIA: soc_common: remove 'dev' member from soc_pcmcia_socket

2009-10-04 Thread Russell King
The 'dev' member is now only ever written, so we can safely remove it. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/pxa2xx_base.c |1 - drivers/pcmcia/sa11xx_base.c |1 - drivers/pcmcia/soc_common.h |1 - 3 files changed, 0 insertions(+), 3 deletions

[RFC PATCH 10/10] PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket

2009-10-04 Thread Russell King
skt-irq is a mere duplication of pcmcia_socket's pci_irq member. Get rid of it. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/pxa2xx_base.c |2 +- drivers/pcmcia/pxa2xx_cm_x255.c |2 +- drivers/pcmcia/pxa2xx_cm_x270.c |2 +- drivers/pcmcia

[RFC PATCH 05/10] PCMCIA: sa1111: wrap soc_pcmcia_socket to contain sa1111 specific data

2009-10-04 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/pxa2xx_base.c | 19 +++ drivers/pcmcia/pxa2xx_base.h |3 ++ drivers/pcmcia/pxa2xx_lubbock.c| 10 -- drivers/pcmcia/sa1100_badge4.c |7 - drivers/pcmcia/sa1100_jornada720.c

[RFC PATCH 02/10] PCMCIA: soc_common: provide single socket add/remove functionality

2009-10-04 Thread Russell King
Factor out the functionality for adding and removing a single socket, thereby allowing SoCs to individually register each socket. The advantage of this approach is that SoCs can then extend soc_pcmcia_socket as they wish. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers

[RFC PATCH 01/10] PCMCIA: soc_common: convert to a stand alone module

2009-10-04 Thread Russell King
Convert soc_common.c to be a stand alone module, rather than wrapping it up into the individual SoC specific base modules. In doing this, we need to add init/exit functions for soc_common to register/remove the cpufreq notifier. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk

[RFC PATCH 04/10] PCMCIA: soc_common: push socket probe down into SoC specific support

2009-10-04 Thread Russell King
Move the individual socket probing and initialization down into the SoC specific support files, thereby allowing soc_common_drv_pcmcia_probe to be eliminated. soc_common.c now no longer deals with distinct groups of sockets. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers

[RFC PATCH 03/10] PCMCIA: soc_common: push socket removal down to SoC specific support

2009-10-04 Thread Russell King
Mechanically transplant the removal code from soc_common into each SoC specific base support file, thereby allowing soc_common_drv_pcmcia_remove to be removed. No other changes. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/pxa2xx_base.c| 11

[RFC PATCH 06/10] PCMCIA: sa1111: remove duplicated initializers

2009-10-04 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/pxa2xx_lubbock.c|4 drivers/pcmcia/sa1100_badge4.c |6 -- drivers/pcmcia/sa1100_jornada720.c | 28 +++- drivers/pcmcia/sa1100_neponset.c |4 drivers/pcmcia

[RFC PATCH 07/10] PCMCIA: soc_common: constify soc_pcmcia_socket ops member

2009-10-04 Thread Russell King
No one should modify the ops structure supplied to soc_pcmcia_socket so make it const. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/soc_common.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pcmcia/soc_common.h b/drivers/pcmcia

[RFC PATCH 09/10] PCMCIA: ss: allow PCI IRQs 255

2009-10-04 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- include/pcmcia/ss.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/pcmcia/ss.h b/include/pcmcia/ss.h index 9a3b498..d5a741e 100644 --- a/include/pcmcia/ss.h +++ b/include/pcmcia/ss.h @@ -172,7 +172,7

Re: [PATCH] PCMCIA: add Cogent CSB726 PCMCIA support

2010-05-15 Thread Russell King
On Sat, May 15, 2010 at 04:06:36PM +0200, Dominik Brodowski wrote: do you prefer to push this patch upstream via your ARM tree? Alternatively, I could take it via PCMCIA -- it's your call. I haven't had any visibility of the patch in question, so I can't give a view. -- Russell King Linux

Re: [PATCH 5/5] pcmcia: disable pcmcia ioctl for !ARM, prepare for removal

2010-05-15 Thread Russell King
On Sat, May 15, 2010 at 04:37:05PM +0200, Dominik Brodowski wrote: Russell, On Sat, May 15, 2010 at 03:24:10PM +0100, Russell King wrote: On Wed, Mar 03, 2010 at 09:00:48AM +0100, Dominik Brodowski wrote: Furthermore, the last legitimate use of the ioctl to be reported relates

[PATCH 4/8] pcmcia: pxa2xx: convert memory allocation to devm_* API

2015-03-26 Thread Russell King
Convert the pxa2xx socket driver memory allocation to use devm_kzalloc() to simplify the cleanup path. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/pxa2xx_base.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/pcmcia/pxa2xx_base.c

[PATCH 3/8] pcmcia: pxa2xx: update socket driver to use devm_clk_get() API

2015-03-26 Thread Russell King
Update the pxa2xx socket driver to use the devm_clk_get() API so that the cleanup paths are simplified. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/pxa2xx_base.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/pcmcia

[PATCH 8/8] pcmcia: soc_common: remove skt_dev_info's clk pointer

2015-03-26 Thread Russell King
We no longer need to store the clk pointer in struct skt_dev_info as we no longer need to remember the clk pointer for the cleanup paths. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/pxa2xx_base.c | 1 - drivers/pcmcia/sa11xx_base.c | 1 - drivers/pcmcia

[PATCH 5/8] pcmcia: sa1111: update socket driver to use devm_clk_get() API

2015-03-26 Thread Russell King
Update the pxa2xx socket driver to use the devm_clk_get() API so that the cleanup paths are simplified. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/sa_generic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pcmcia

[PATCH 1/8] pcmcia: sa11x0: fix missing clk_put() in sa11x0 socket drivers

2015-03-26 Thread Russell King
Fix the lack of clk_put() in sa11xx_base.c's error cleanup paths by converting the driver to the devm_* API. Fixes: 86d88bfca475 (ARM: 8247/2: pcmcia: sa1100: make use of device clock) Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/sa1100_generic.c | 1 - drivers

[PATCH 2/8] pcmcia: sa11x0: convert memory allocation to devm_* API

2015-03-26 Thread Russell King
Convert the sa11x0 socket driver memory allocation to use devm_kzalloc() to simplify the cleanup path. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/sa1100_generic.c | 1 - drivers/pcmcia/sa11xx_base.c| 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff

[PATCH 6/8] pcmcia: sa1111: simplify clk handing in sa1111_pcmcia_add()

2015-03-26 Thread Russell King
clk_get(dev, NULL) will always refer to the same clock, so it's pointless calling this multiple times for the same device. As we no longer have to worry about the cleanup (via use of devm_clk_get()) we can simplify sa_pcmcia_add() too. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk

[PATCH 7/8] pcmcia: sa11xx_base.c: remove useless init/exit functions

2015-03-26 Thread Russell King
A library module is not required to have module init/exit functions. Get rid of these unnecessary functions. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/sa11xx_base.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/pcmcia/sa11xx_base.c b

[PATCH 8/8] pcmcia: soc_common: remove skt_dev_info's clk pointer

2015-07-15 Thread Russell King
We no longer need to store the clk pointer in struct skt_dev_info as we no longer need to remember the clk pointer for the cleanup paths. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/pxa2xx_base.c | 1 - drivers/pcmcia/sa11xx_base.c | 1 - drivers/pcmcia

[PATCH 7/8] pcmcia: sa11xx_base.c: remove useless init/exit functions

2015-07-15 Thread Russell King
A library module is not required to have module init/exit functions. Get rid of these unnecessary functions. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/sa11xx_base.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/pcmcia/sa11xx_base.c b

[PATCH 5/8] pcmcia: sa1111: update socket driver to use devm_clk_get() API

2015-07-15 Thread Russell King
Update the pxa2xx socket driver to use the devm_clk_get() API so that the cleanup paths are simplified. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/sa_generic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pcmcia

[PATCH 1/8] pcmcia: sa11x0: fix missing clk_put() in sa11x0 socket drivers

2015-07-15 Thread Russell King
Fix the lack of clk_put() in sa11xx_base.c's error cleanup paths by converting the driver to the devm_* API. Fixes: 86d88bfca475 (ARM: 8247/2: pcmcia: sa1100: make use of device clock) Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/sa1100_generic.c | 1 - drivers

[PATCH 4/8] pcmcia: pxa2xx: convert memory allocation to devm_* API

2015-07-15 Thread Russell King
Convert the pxa2xx socket driver memory allocation to use devm_kzalloc() to simplify the cleanup path. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/pxa2xx_base.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/pcmcia/pxa2xx_base.c

[PATCH 3/8] pcmcia: pxa2xx: update socket driver to use devm_clk_get() API

2015-07-15 Thread Russell King
Update the pxa2xx socket driver to use the devm_clk_get() API so that the cleanup paths are simplified. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/pxa2xx_base.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/pcmcia

[PATCH 2/8] pcmcia: sa11x0: convert memory allocation to devm_* API

2015-07-15 Thread Russell King
Convert the sa11x0 socket driver memory allocation to use devm_kzalloc() to simplify the cleanup path. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/pcmcia/sa1100_generic.c | 1 - drivers/pcmcia/sa11xx_base.c| 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff

[PATCH 6/8] pcmcia: sa1111: simplify clk handing in sa1111_pcmcia_add()

2015-07-15 Thread Russell King
clk_get(dev, NULL) will always refer to the same clock, so it's pointless calling this multiple times for the same device. As we no longer have to worry about the cleanup (via use of devm_clk_get()) we can simplify sa_pcmcia_add() too. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk

[PATCH] pcmcia: ds: fix suspend/resume

2016-08-20 Thread Russell King
ot;PM / sleep: Go direct_complete if driver has no callbacks") Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/ds.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 489ea1098c96..69b

[PATCH 6/8] ARM: sa1111: fix pcmcia suspend/resume

2016-09-06 Thread Russell King
cards after a S2RAM cycle. Fixes: d7646f7632549 ("pcmcia: use dev_pm_ops for class pcmcia_socket_class") Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- arch/arm/common/sa.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a

[PATCH 2/8] pcmcia: lubbock: fix sockets configuration

2016-09-06 Thread Russell King
ldmib r3, {r2, r3}<-- trapping instruction Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr> Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/pxa2xx_base.c| 9 + drivers/pcmcia/pxa2xx_base.h| 2 +- drivers/pcmcia/sa111

[PATCH 1/8] pcmcia: sa1111: fix propagation of lowlevel board init return code

2016-09-06 Thread Russell King
<robert.jarz...@free.fr> Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/sa_badge4.c | 22 -- drivers/pcmcia/sa_generic.c| 22 +- drivers/pcmcia/sa_jornada720.c | 25 ++--- dr

[PATCH 8/8] ARM: pxa/lubbock: add pcmcia clock

2016-09-06 Thread Russell King
this must not be copied into DT. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- arch/arm/mach-pxa/lubbock.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index 7245f3359564..d6159f8ef0c2 100644 --- a/a

[PATCH 7/8] ARM: sa1111: fix missing clk_disable()

2016-09-06 Thread Russell King
SA forgets to call clk_disable() in the probe error cleanup path. Add the necessary call. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- arch/arm/common/sa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/common/sa.c b/arch/arm/

[PATCH 4/8] ARM: sa1111: fix error code propagation in sa1111_probe()

2016-09-06 Thread Russell King
Ensure that we propagate the platform_get_irq() error code out of the probe function. This allows probe deferrals to work correctly should platform_get_irq() not be able to resolve the interrupt in a DT environment at probe time. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> ---

[PATCH 5/8] ARM: sa1111: fix pcmcia interrupt mask polarity

2016-09-06 Thread Russell King
The polarity of the high IRQs was being calculated using SA_IRQMASK_HI(), but this assumes a Linux interrupt number, not a hardware interrupt number. Hence, the resulting mask was incorrect. Fix this. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- arch/arm/common/sa

[PATCH] pcmcia: sa1111: fix propagation of lowlevel board init return code

2016-09-02 Thread Russell King
When testing Lubbock, it was noticed that the sa pcmcia driver bound but was not functional due to no sockets being registered. This is because the return code from the lowlevel board initialisation was not being propagated out of the probe function. Fix this. Signed-off-by: Russell King

[PATCH 09/12] pcmcia: soc_common: switch to a per-socket cpufreq notifier

2016-09-28 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 <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/soc_common.c | 77 ++--- drivers/pcmcia/soc_common.h | 3

[PATCH 10/12] pcmcia: soc_common: constify pcmcia_low_level ops pointer

2016-09-28 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 <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/soc_common.c | 2 +- drivers/pcmcia/soc_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)

[PATCH 12/12] pcmcia: soc_common: add driver-data pointer

2016-09-28 Thread Russell King
Add a driver-data pointer so that low level drivers can add additional data to the soc_common pcmcia socket structure. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/soc_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pcmcia/soc_comm

[PATCH 04/12] pcmcia: soc_common: request legacy detect GPIO with active low

2016-09-28 Thread Russell King
Request the legacy card detect signal with the active low property and remove our own negation of the detection value. This allows us to use the firmware-defined polarities rather than hard-coding it into the driver. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- drivers/

[PATCH 07/12] pcmcia: soc_common: add CF socket state helper

2016-09-28 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 <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/sa1100_assabet.c | 9 + drivers/pcmcia/sa1100_cerf.c

[PATCH 03/12] pcmcia: soc_common: ignore invalid interrupts

2016-09-28 Thread Russell King
If gpiod_to_irq() returns an invalid interrupt, we should not try to use it as an interrupt number. Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/soc_common.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/pcmcia/soc_co

[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 <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/Kconfig | 1 + drivers/pcmcia/sa_neponset.c | 79 ++-- 2 files changed, 20 insertions(+), 60 deletions(-) diff

[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 <rmk+ker...@armlinux.org.uk> --- arch/arm/mach-sa1100/jornada720.c | 12 ++ drivers/pcmcia/sa_jornada720.c | 81 +- 2 files chang

[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 <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/sa1100_generic.c

[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 <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/soc_common.c | 77 ++--- drivers/pcmcia/soc_common.h | 3

[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 <rmk+ker...@armlinux.org.uk> --- arch/arm/common/sa.c | 59 -- arch/arm/include/asm/ha

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

2016-08-29 Thread Russell King
) common : 300 (316) Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/sa11xx_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pcmcia/sa11xx_base.c b/drivers/pcmcia/sa11xx_base.c index 9f6ec87b9f9e..af37b7ec1c73 100644 --- a/drivers/

[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 <rmk+

[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 <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/soc_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pcmcia/soc_common.c b/drivers/

[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 <rmk+ker...@armlinux.org.uk> --- drivers/gpio/Kconfig

[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 <rmk+ker...@armlinux.org

[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 <rmk+ker...@armlinux.org.uk> --- arch/arm/mach-pxa/Kconfig | 1 + ar

[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 <rmk+ker...@armlinux.org.uk> --- drivers/pcmcia/soc_common.c | 57 + drivers/pcmcia/soc_common.h | 3 +++ 2 files changed, 45 insertions(+), 15 del

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

2016-08-29 Thread Russell King
Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- 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..bad016

[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 <rmk+ker...@armlinux.org.uk> --- drivers/gpio/gpio-sa1100.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-sa11

  1   2   >