Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 94565 Details for
Bug 142085
kernel bug in 2.6.17-gentoo-r4: xirc2ps_cs do_reset uses msleep
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch against 2.6.17-gentoo-r4
xirc2ps_cs_watchdog_take4.diff (text/plain), 1.81 KB, created by
Jörg Ahrens
on 2006-08-18 16:33:33 UTC
(
hide
)
Description:
patch against 2.6.17-gentoo-r4
Filename:
MIME Type:
Creator:
Jörg Ahrens
Created:
2006-08-18 16:33:33 UTC
Size:
1.81 KB
patch
obsolete
>--- linux-2.6.17-gentoo-r4_orig/drivers/net/pcmcia/xirc2ps_cs.c 2006-07-28 18:47:14.000000000 +0200 >+++ linux-2.6.17-gentoo-r4/drivers/net/pcmcia/xirc2ps_cs.c 2006-08-19 01:00:52.000000000 +0200 >@@ -345,6 +345,7 @@ > void __iomem *dingo_ccr; /* only used for CEM56 cards */ > unsigned last_ptr_value; /* last packets transmitted value */ > const char *manf_str; >+ struct work_struct tx_timeout_task; > } local_info_t; > > /**************** >@@ -352,6 +353,7 @@ > */ > static int do_start_xmit(struct sk_buff *skb, struct net_device *dev); > static void do_tx_timeout(struct net_device *dev); >+static void xirc2ps_tx_timeout_task(void *data); > static struct net_device_stats *do_get_stats(struct net_device *dev); > static void set_addresses(struct net_device *dev); > static void set_multicast_list(struct net_device *dev); >@@ -589,6 +591,7 @@ > #ifdef HAVE_TX_TIMEOUT > dev->tx_timeout = do_tx_timeout; > dev->watchdog_timeo = TX_TIMEOUT; >+ INIT_WORK(&local->tx_timeout_task, xirc2ps_tx_timeout_task, dev); > #endif > > return xirc2ps_config(link); >@@ -1341,17 +1344,24 @@ > /*====================================================================*/ > > static void >-do_tx_timeout(struct net_device *dev) >+xirc2ps_tx_timeout_task(void *data) > { >- local_info_t *lp = netdev_priv(dev); >- printk(KERN_NOTICE "%s: transmit timed out\n", dev->name); >- lp->stats.tx_errors++; >+ struct net_device *dev = data; > /* reset the card */ > do_reset(dev,1); > dev->trans_start = jiffies; > netif_wake_queue(dev); > } > >+static void >+do_tx_timeout(struct net_device *dev) >+{ >+ local_info_t *lp = netdev_priv(dev); >+ lp->stats.tx_errors++; >+ printk(KERN_NOTICE "%s: transmit timed out\n", dev->name); >+ schedule_work(&lp->tx_timeout_task); >+} >+ > static int > do_start_xmit(struct sk_buff *skb, struct net_device *dev) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 142085
:
93003
|
94275
| 94565