All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ronald Wahl <ronald.wahl@raritan.com>
To: linux-wireless@vger.kernel.org
Cc: Christian Lamparter <chunkeey@googlemail.com>
Subject: Re: [PATCH] carl9170: fix sending URBs with wrong type when using full-speed
Date: Thu, 07 Aug 2014 12:09:15 +0200	[thread overview]
Message-ID: <53E3504B.4070901@raritan.com> (raw)
In-Reply-To: <53E347D2.6050108@raritan.com>

On 07.08.2014 11:33, Ronald Wahl wrote:
> On 07.08.2014 11:24, Ronald Wahl wrote:
>> +    /* We need to remember the type of endpoint 4 because it differs
>> +     * between high- and full-speed configuration. The high-speed
>> +     * configuration specifies it as interrupt and the full-speed
>> +     * configuration as bulk endpoint. This information is required
>> +     * later when sending urbs to that endpoint.
>> +     */
>> +    for (i = 0; i < intf->cur_altsetting->desc.bNumEndpoints; ++i) {
>> +        ep = &intf->cur_altsetting->endpoint[i].desc;
>> +
>> +        if (usb_endpoint_dir_out(ep) && usb_endpoint_num(ep) == 4)
>> +            ar->usb_ep4_is_bulk = true;
>> +    }
>
> Hi,
>
> just after sending out that patch I have seen that I should better use
> AR9170_USB_EP_CMD instead of 4 when checking for the endpoint and maybe
> rename the flag into usb_ep_cmd_is_bulk. But before creating v2 of the
> patch I want to hear your comments...

A fellow just pointed out that a central part of my patch was wrong as I 
actually forgot to check the endpoint type and instead hardcoded the 
result. So I had to create v2 of the patch now.

Mea culpa,
ron

-- 
Ronald Wahl - ronald.wahl@raritan.com - Phone +49 375271349-0 Fax -99
Raritan Deutschland GmbH, Kornmarkt 7, 08056 Zwickau, Germany
USt-IdNr. DE813094160, Steuer-Nr. 227/117/01749
Amtsgericht Chemnitz HRB 23605
Geschäftsführung: Stuart Hopper, Ralf Ploenes

  reply	other threads:[~2014-08-07 10:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-07  9:24 [PATCH] carl9170: fix sending URBs with wrong type when using full-speed Ronald Wahl
2014-08-07  9:33 ` Ronald Wahl
2014-08-07 10:09   ` Ronald Wahl [this message]
2014-08-07 10:51   ` Christian Lamparter
2014-08-07 11:42     ` Ronald Wahl
2014-08-07 13:04       ` Christian Lamparter
2014-08-07 13:15         ` Ronald Wahl

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=53E3504B.4070901@raritan.com \
    --to=ronald.wahl@raritan.com \
    --cc=chunkeey@googlemail.com \
    --cc=linux-wireless@vger.kernel.org \
    /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.