linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.org>
To: Kalle Valo <kalle.valo@iki.fi>
Cc: "John W. Linville" <linville@tuxdriver.com>,
	Jason Andryuk <jandryuk@gmail.com>,
	gregkh@suse.de, linux-wireless@vger.kernel.org,
	milan.plzik@gmail.com
Subject: Re: at76_usb development
Date: Thu, 5 Feb 2009 10:08:02 +0100	[thread overview]
Message-ID: <200902051008.04061.oliver@neukum.org> (raw)
In-Reply-To: <da94abde0902040748l6194cdd3i7044c839f3110e5a@mail.gmail.com>

Am Wednesday 04 February 2009 16:48:11 schrieb Kalle Valo:
> > AFAIK you should be sending patches to Greg against the version in
> > drivers/staging. =A0Kalle may want to be copied.
>=20
> Yes, please cc also me. I try to keep up-to-date what's happening wit=
h
> at76-usb so that the same fixes will be fixed in at76c50x-usb as well=
=2E

Here is what I found with at76-usb as it is in the current kernel:

 static int at76_wait_completion(struct at76_priv *priv, int cmd)
 {
        int status =3D 0;

        unsigned long timeout =3D jiffies + CMD_COMPLETION_TIMEOUT;

        do {

This can go wrong in a preemptible kernel. You have no guarantee the fu=
ll
timeout is granted.

@@ -1631,7 +1633,7 @@ static void at76_rx_tasklet(unsigned long param)
        buf =3D (struct at76_rx_buffer *)priv->rx_skb->data;

        if (urb->status !=3D 0) {
-               if (urb->status !=3D -ENOENT && urb->status !=3D -ECONN=
RESET)
+               if (urb->status !=3D -ENOENT && urb->status !=3D -ECONN=
RESET && urb->status !=3D -ESHUTDOWN)

Should also check for ESHUTDOWN, also in at76_mac80211_tx_callback()

	Regards
		Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-02-05  9:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-04  4:05 at76_usb development Jason Andryuk
2009-02-04  8:17 ` Oliver Neukum
2009-02-04 14:43   ` John W. Linville
2009-02-04 15:48     ` Kalle Valo
2009-02-04 16:01       ` Oliver Neukum
2009-02-05  3:57       ` Jason Andryuk
2009-02-05  9:08       ` Oliver Neukum [this message]
2009-02-18 18:11         ` Kalle Valo
2009-02-04 23:53 ` 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=200902051008.04061.oliver@neukum.org \
    --to=oliver@neukum.org \
    --cc=gregkh@suse.de \
    --cc=jandryuk@gmail.com \
    --cc=kalle.valo@iki.fi \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=milan.plzik@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).