All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vishal Thanki <vishalthanki@gmail.com>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Helmut Schaa <helmut.schaa@googlemail.com>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH v5] rt2x00usb: Use usb anchor to manage URB
Date: Sat, 19 Mar 2016 09:21:52 +0100	[thread overview]
Message-ID: <CAC3a_SAz0EdriULfGqnpVqQ+jfKDqsSgQEgy9KKovLBzMktg5Q@mail.gmail.com> (raw)
In-Reply-To: <20160319080627.GA29771@redhat.com>

On Sat, Mar 19, 2016 at 9:06 AM, Stanislaw Gruszka <sgruszka@redhat.com> wrote:
> On Fri, Mar 18, 2016 at 05:29:51PM +0100, Vishal Thanki wrote:
>>
>> @@ -1001,6 +1002,9 @@ struct rt2x00_dev {
>>
>>       /* Extra TX headroom required for alignment purposes. */
>>       unsigned int extra_tx_headroom;
>> +
>> +     struct usb_anchor *anchor;
>> +     void (*kill_anchored_urbs)(struct rt2x00_dev *);
> ...
>> @@ -1423,6 +1423,7 @@ void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev)
>>       cancel_delayed_work_sync(&rt2x00dev->autowakeup_work);
>>       cancel_work_sync(&rt2x00dev->sleep_work);
>>       if (rt2x00_is_usb(rt2x00dev)) {
>> +             rt2x00dev->kill_anchored_urbs(rt2x00dev);
> ...
>>
>> +static void rt2x00usb_kill_anchored_usb(struct rt2x00_dev *rt2x00dev)
>> +{
>> +     usb_kill_anchored_urbs(rt2x00dev->anchor);
>> +}
> ...
>> +     rt2x00dev->kill_anchored_urbs = rt2x00usb_kill_anchored_usb;
>
> Why do you complicate things, instead of call usb_kill_anchored_urbs()
> directly?
>

I tried to compile by disabling the CONFIG_USB from kernel, and was getting
error for missing symbol usb_kill_anchored_urbs.


> Stanislaw

  reply	other threads:[~2016-03-19  8:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-18 16:29 [PATCH v5] rt2x00usb: Use usb anchor to manage URB Vishal Thanki
2016-03-19  8:06 ` Stanislaw Gruszka
2016-03-19  8:21   ` Vishal Thanki [this message]
2016-03-19  8:58     ` 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=CAC3a_SAz0EdriULfGqnpVqQ+jfKDqsSgQEgy9KKovLBzMktg5Q@mail.gmail.com \
    --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 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.