From: Vishal Thanki <vishalthanki@gmail.com>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: helmut.schaa@googlemail.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] rt2x00usb: Use usb anchors to manage URB
Date: Thu, 17 Mar 2016 10:53:18 +0100 [thread overview]
Message-ID: <20160317095317.GA6518@c50.bag.software> (raw)
In-Reply-To: <20160317084331.GA19458@redhat.com>
Hi,
On Thu, Mar 17, 2016 at 09:43:32AM +0100, Stanislaw Gruszka wrote:
> Hi
>
> On Wed, Mar 16, 2016 at 06:28:51PM +0100, Vishal Thanki wrote:
> > +struct rt2x00usb_anchors {
> > + struct usb_anchor async_urb;
> > + struct usb_anchor tx_submitted;
> > + struct usb_anchor rx_submitted;
> > +};
>
> I don't think we need 3 different usb_anchor's, one should be
> enough.
>
Ok, I will change that.
> > +static struct rt2x00usb_anchors *anchors;
>
> usb_anchor structure should be embedded in rt2x00_dev structure,
> otherwise you can kill urb's from other rt2x00 devices, when
> disconnecting another one.
>
rt2x00_dev structure does not contain any bus specific data structures
(for example no structures present for USB/PCI). Should I add a void
*ptr in rt2x00_dev and cast it as usb_anchor in rt2x00usb.c?
Thanks,
Vishal
> Stanislaw
next prev parent reply other threads:[~2016-03-17 9:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-16 17:28 [PATCH] rt2x00usb: Use usb anchors to manage URB Vishal Thanki
2016-03-17 8:43 ` Stanislaw Gruszka
2016-03-17 9:53 ` Vishal Thanki [this message]
2016-03-17 11:28 ` Stanislaw Gruszka
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=20160317095317.GA6518@c50.bag.software \
--to=vishalthanki@gmail.com \
--cc=helmut.schaa@googlemail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=sgruszka@redhat.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).