All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Valette <eric.valette@free.fr>
To: eric.valette@free.fr
Cc: Greg KH <greg@kroah.com>, Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org, petkan@nucleusys.com
Subject: Re: rtl8150.c ethernet driver : usb_unlink_urb ->usb_kill_urb
Date: Sat, 11 Sep 2004 19:33:17 +0200	[thread overview]
Message-ID: <414336DD.9030003@free.fr> (raw)
In-Reply-To: <414335FB.8050203@free.fr>

[-- Attachment #1: Type: text/plain, Size: 566 bytes --]

Eric Valette wrote:
> 
>> I'll defer to Petkan as to what to do about this, as he sent me that
>> patch for a good reason I imagine :)
> 
> 
> While we are looking at this driver, here is a way to avoid one full 
> page of annoying messages at shutdown/module unload.
> 
> Signed-off-by: Eric Valette <Eric.Valette@free.fr>

Wrong patch, sorry...

-- 
    __
   /  `                   	Eric Valette
  /--   __  o _.          	6 rue Paul Le Flem
(___, / (_(_(__         	35740 Pace

Tel: +33 (0)2 99 85 26 76	Fax: +33 (0)2 99 85 26 76
E-mail: eric.valette@free.fr




[-- Attachment #2: patch_rtl8150.c.patch --]
[-- Type: text/x-patch, Size: 944 bytes --]

--- linux/drivers/usb/net/rtl8150.c-2.6.9-rc1-mm4.orig	2004-09-09 11:15:11.000000000 +0200
+++ linux/drivers/usb/net/rtl8150.c	2004-09-11 14:06:44.000000000 +0200
@@ -341,7 +341,7 @@
 
 static int rtl8150_reset(rtl8150_t * dev)
 {
-	u8 data = 0x11;
+	u8 data = 0x10;
 	int i = HZ;
 
 	set_registers(dev, CR, 1, &data);
@@ -389,10 +389,10 @@
 
 static void unlink_all_urbs(rtl8150_t * dev)
 {
-	usb_unlink_urb(dev->rx_urb);
-	usb_unlink_urb(dev->tx_urb);
-	usb_unlink_urb(dev->intr_urb);
-	usb_unlink_urb(dev->ctrl_urb);
+	usb_kill_urb(dev->rx_urb);
+	usb_kill_urb(dev->tx_urb);
+	usb_kill_urb(dev->intr_urb);
+	usb_kill_urb(dev->ctrl_urb);
 }
 
 static inline struct sk_buff *pull_skb(rtl8150_t *dev)
@@ -656,7 +656,7 @@
 	rtl8150_t *dev = netdev_priv(netdev);
 	warn("%s: Tx timeout.", netdev->name);
 	dev->tx_urb->transfer_flags |= URB_ASYNC_UNLINK;
-	usb_unlink_urb(dev->tx_urb);
+	usb_kill_urb(dev->tx_urb);
 	dev->stats.tx_errors++;
 }
 

  reply	other threads:[~2004-09-11 17:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-07 13:24 2.6.9-rc1-mm4 badness in rtl8150.c ethernet driver Eric Valette
2004-09-07 13:30 ` Eric Valette
2004-09-09  9:42 ` 2.6.9-rc1-mm4 badness in rtl8150.c ethernet driver : fixed Eric Valette
2004-09-09 22:24   ` Andrew Morton
2004-09-09 22:36     ` Greg KH
2004-09-10  6:45       ` Eric Valette
2004-09-10  9:34       ` Petko Manolov
2004-09-10 11:05         ` Eric Valette
2004-09-10 11:54           ` Petko Manolov
2004-09-11 17:29       ` rtl8150.c ethernet driver : usb_unlink_urb ->usb_kill_urb Eric Valette
2004-09-11 17:33         ` Eric Valette [this message]
2004-09-14 18:55           ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=414336DD.9030003@free.fr \
    --to=eric.valette@free.fr \
    --cc=akpm@osdl.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=petkan@nucleusys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.