| To: | Jeff Garzik <jgarzik@xxxxxxxxx> |
|---|---|
| Subject: | [PATCH] Make xircom cardbus handle shared irq |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Thu, 22 Jan 2004 16:49:20 -0800 |
| Cc: | tulip-users@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| Organization: | Open Source Development Lab |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Current driver doesn't do shared irq properly. When testing on
a laptop here irq 3 get shared between pcmcia slot and tty/IRDA
diff -Nru a/drivers/net/tulip/xircom_cb.c b/drivers/net/tulip/xircom_cb.c
--- a/drivers/net/tulip/xircom_cb.c Thu Jan 22 16:46:34 2004
+++ b/drivers/net/tulip/xircom_cb.c Thu Jan 22 16:46:34 2004
@@ -342,6 +342,11 @@
printk("tx status 0x%08x 0x%08x
\n",card->tx_buffer[0],card->tx_buffer[4]);
printk("rx status 0x%08x 0x%08x
\n",card->rx_buffer[0],card->rx_buffer[4]);
#endif
+ /* Handle shared irq and hotplug */
+ if (status == 0 || status == 0xffffffff) {
+ spin_unlock(&card->lock);
+ return IRQ_NONE;
+ }
if (link_status_changed(card)) {
int newlink;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH]snmp6 64-bit counter support in proc.c, David S. Miller |
|---|---|
| Next by Date: | [PATCH] IPV6: mis-spelling, YOSHIFUJI Hideaki / 吉藤英明 |
| Previous by Thread: | [PATCH 4/6][bonding][2.4] Add support for HW accel. slaves, Shmuel Hen |
| Next by Thread: | Re: [PATCH] Make xircom cardbus handle shared irq, Jeff Garzik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |