Old question Surely..

2009-04-20 Thread Jack Schneider

Hi, folks  Using Debian Lenny OS with 2.6.28.2-486 kernel.
I have a very old DEC VP575 laptop which I want to use as back-up
server.  I need two net connections.  When I use a single pccard,
wired, all is well.  If I insert my second card, WIFI-Intersil Prism2.5 
I get the following /var/log/messages error:
pcmcia: request for exclusive IRQ couuld not be fulfilled.
pcmcia: the driver needs updating to supported shared IRQ lines

Can someone point me to a link which addresses this and fixes it?
Or is more info needed?

TIA Jack

___
Linux PCMCIA reimplementation list
http://lists.infradead.org/mailman/listinfo/linux-pcmcia


[PATCH] pcmcia: pxa2xx-sharpsl: check if we do have Scoop config

2009-04-20 Thread Dmitry Eremin-Solenikov
Check if we really have Scoop config, otherwice we can get a nice Oops
during probe.
---
 drivers/pcmcia/pxa2xx_sharpsl.c |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/pcmcia/pxa2xx_sharpsl.c b/drivers/pcmcia/pxa2xx_sharpsl.c
index 1cd02f5..bc43f78 100644
--- a/drivers/pcmcia/pxa2xx_sharpsl.c
+++ b/drivers/pcmcia/pxa2xx_sharpsl.c
@@ -255,6 +255,9 @@ static int __init sharpsl_pcmcia_init(void)
 {
int ret;
 
+   if (!platform_scoop_config)
+   return -ENODEV;
+
sharpsl_pcmcia_ops.nr = platform_scoop_config-num_devs;
sharpsl_pcmcia_device = platform_device_alloc(pxa2xx-pcmcia, -1);
 
-- 
1.6.2.1


___
Linux PCMCIA reimplementation list
http://lists.infradead.org/mailman/listinfo/linux-pcmcia


Re: Old question Surely..

2009-04-20 Thread Larry Finger
Jack Schneider wrote:
 Hi, folks  Using Debian Lenny OS with 2.6.28.2-486 kernel.
 I have a very old DEC VP575 laptop which I want to use as back-up
 server.  I need two net connections.  When I use a single pccard,
 wired, all is well.  If I insert my second card, WIFI-Intersil Prism2.5 
 I get the following /var/log/messages error:
 pcmcia: request for exclusive IRQ couuld not be fulfilled.
 pcmcia: the driver needs updating to supported shared IRQ lines
 
 Can someone point me to a link which addresses this and fixes it?
 Or is more info needed?

The change may be simple. The patch that fixed the aha152x driver is as follows:

diff --git a/drivers/scsi/pcmcia/aha152x_stub.c 
b/drivers/scsi/pcmcia/aha152x_stub.c
index 165ff88..67cde01 100644
--- a/drivers/scsi/pcmcia/aha152x_stub.c
+++ b/drivers/scsi/pcmcia/aha152x_stub.c
@@ -114,7 +114,7 @@ static int aha152x_probe(struct pcmcia_device *link)
 link-io.NumPorts1 = 0x20;
 link-io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO;
 link-io.IOAddrLines = 10;
-link-irq.Attributes = IRQ_TYPE_EXCLUSIVE;
+link-irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
 link-irq.IRQInfo1 = IRQ_LEVEL_ID;
 link-conf.Attributes = CONF_ENABLE_IRQ;
 link-conf.IntType = INT_MEMORY_AND_IO;

What driver does that card use? I did a quick check of the kernel source, but
failed to find it. If the driver does not check that the interrupt was for
another driver on the shared line, then there will be an additional change.

Larry

___
Linux PCMCIA reimplementation list
http://lists.infradead.org/mailman/listinfo/linux-pcmcia


Re: [PATCH] pcmcia: pxa2xx-sharpsl: check if we do have Scoop config

2009-04-20 Thread Russell King - ARM Linux
On Mon, Apr 20, 2009 at 08:01:19PM +0400, Dmitry Eremin-Solenikov wrote:
 Check if we really have Scoop config, otherwice we can get a nice Oops
 during probe.

Looks to me like -rc material.  Please submit to the patch tracker with
your (missing) sign-off.  Thanks.

 ---
  drivers/pcmcia/pxa2xx_sharpsl.c |3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)
 
 diff --git a/drivers/pcmcia/pxa2xx_sharpsl.c b/drivers/pcmcia/pxa2xx_sharpsl.c
 index 1cd02f5..bc43f78 100644
 --- a/drivers/pcmcia/pxa2xx_sharpsl.c
 +++ b/drivers/pcmcia/pxa2xx_sharpsl.c
 @@ -255,6 +255,9 @@ static int __init sharpsl_pcmcia_init(void)
  {
   int ret;
  
 + if (!platform_scoop_config)
 + return -ENODEV;
 +
   sharpsl_pcmcia_ops.nr = platform_scoop_config-num_devs;
   sharpsl_pcmcia_device = platform_device_alloc(pxa2xx-pcmcia, -1);
  
 -- 
 1.6.2.1
 
 
 ---
 List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
 FAQ:http://www.arm.linux.org.uk/mailinglists/faq.php
 Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

___
Linux PCMCIA reimplementation list
http://lists.infradead.org/mailman/listinfo/linux-pcmcia


Re: [PATCH] pcmcia: pxa2xx-sharpsl: check if we do have Scoop config

2009-04-20 Thread Dmitry Eremin-Solenikov
2009/4/20 Russell King - ARM Linux li...@arm.linux.org.uk:
 On Mon, Apr 20, 2009 at 08:01:19PM +0400, Dmitry Eremin-Solenikov wrote:
 Check if we really have Scoop config, otherwice we can get a nice Oops
 during probe.

 Looks to me like -rc material.  Please submit to the patch tracker with
 your (missing) sign-off.  Thanks.

Done, thanks.


 ---
  drivers/pcmcia/pxa2xx_sharpsl.c |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

 diff --git a/drivers/pcmcia/pxa2xx_sharpsl.c 
 b/drivers/pcmcia/pxa2xx_sharpsl.c
 index 1cd02f5..bc43f78 100644
 --- a/drivers/pcmcia/pxa2xx_sharpsl.c
 +++ b/drivers/pcmcia/pxa2xx_sharpsl.c
 @@ -255,6 +255,9 @@ static int __init sharpsl_pcmcia_init(void)
  {
       int ret;

 +     if (!platform_scoop_config)
 +             return -ENODEV;
 +
       sharpsl_pcmcia_ops.nr = platform_scoop_config-num_devs;
       sharpsl_pcmcia_device = platform_device_alloc(pxa2xx-pcmcia, -1);

 --
 1.6.2.1


 ---
 List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
 FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
 Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php




-- 
With best wishes
Dmitry

___
Linux PCMCIA reimplementation list
http://lists.infradead.org/mailman/listinfo/linux-pcmcia


Problem with exclusive interrupt in hostap_cs

2009-04-20 Thread Larry Finger
Jouni,

This was posted on the PCMCIA mailing list by Jack Schneider:

 Hi, folks  Using Debian Lenny OS with 2.6.28.2-486 kernel.
 I have a very old DEC VP575 laptop which I want to use as back-up
 server.  I need two net connections.  When I use a single pccard,
 wired, all is well.  If I insert my second card, WIFI-Intersil Prism2.5 
 I get the following /var/log/messages error:
 pcmcia: request for exclusive IRQ couuld not be fulfilled.
 pcmcia: the driver needs updating to supported shared IRQ lines

The two drivers being loaded are hostap_cs and xirc2ps_cs. The latter one is
coded to handle shared interrupts, but hostap_cs is not.

I would have no problem changing the driver interrupt registration in the
link-irq structure, but I was not quite sure how change prism2_interrupt() to
detect the shared case when the interrupt status register is 0x.

Could you please take a look at this?

Thanks,

Larry


___
Linux PCMCIA reimplementation list
http://lists.infradead.org/mailman/listinfo/linux-pcmcia


Re: Problem with exclusive interrupt in hostap_cs

2009-04-20 Thread Peter Stuge
Larry Finger wrote:
 I would have no problem changing the driver interrupt registration
 in the link-irq structure, but I was not quite sure how change
 prism2_interrupt() to detect the shared case when the interrupt
 status register is 0x.

Another option would be for Jack to try the orinoco_cs driver.


//Peter

___
Linux PCMCIA reimplementation list
http://lists.infradead.org/mailman/listinfo/linux-pcmcia