From: Johan Hovold <jhovold@gmail.com>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: "Johan Hovold" <jhovold@gmail.com>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"Bjørn Mork" <bjorn@mork.no>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Dan Carpenter" <dan.carpenter@oracle.com>,
linux-serial@vger.kernel.org,
"Matthias Urlichs" <smurf@smurf.noris.de>,
stable <stable@vger.kernel.org>
Subject: Re: [PATCH] USB: usb_wwan: fix handling of missing bulk endpoints
Date: Thu, 3 Apr 2014 16:21:42 +0200 [thread overview]
Message-ID: <20140403142142.GA5038@localhost> (raw)
In-Reply-To: <CACna6rxGKz9=qGGanC9T6KTAnMPCYuTLJxxY+KG6NzdZKYmrzQ@mail.gmail.com>
On Thu, Apr 03, 2014 at 01:32:19PM +0200, Rafał Miłecki wrote:
> 2014-04-03 13:06 GMT+02:00 Johan Hovold <jhovold@gmail.com>:
> > Fix regression introduced by commit 8e493ca1767d ("USB: usb_wwan: fix
> > bulk-urb allocation") by making sure to require both bulk-in and out
> > endpoints during port probe.
>
> Ohh, that was quick! :)
:)
> This patch works for me:
> [33050.103575] option 1-1.2:1.0: GSM modem (1-port) converter detected
> [33050.103617] [usb_wwan_port_probe] bulk_in_size:0 bulk_out_size:0
> [33050.103653] option 1-1.2:1.1: GSM modem (1-port) converter detected
> [33050.103676] [usb_wwan_port_probe] bulk_in_size:0 bulk_out_size:0
> [33050.103712] option 1-1.2:1.3: GSM modem (1-port) converter detected
> [33050.103737] [usb_wwan_port_probe] bulk_in_size:512 bulk_out_size:512
> [33050.103799] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
> (out of curiosity I added one pr_info to print sizes).
>
> Thank you!
Thanks for testing. (You can respond to the patch-submission mail with a
Tested-by tag to get some credit for that too.)
As you might have noticed the third interface still shows up as ttyUSB2
as the first two minors will still be allocated for the unusable
interfaces.
Perhaps I should add a usb_wwan_probe (that would have to be called from
every driver relying on usb_wwan) to determine whether the required
endpoints are present before binding to the interface.
But I think the current fix is the right one for stable to fix the
regression.
Johan
next prev parent reply other threads:[~2014-04-03 14:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-03 6:49 usb_wwan regression in 3.6 kernel (bisected to bulk-urb allocation) Rafał Miłecki
[not found] ` <CACna6ry7WCou6kacACpQK6qhWffCGNGFyLQU8H9WbrVDLoB7Qg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-04-03 7:18 ` Johan Hovold
2014-04-03 7:23 ` Rafał Miłecki
[not found] ` <CACna6rzgnU_=2Gg4v1xk3-KX+zx6G85NksoJiZvbzGyzf+GQ_g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-04-03 8:03 ` Bjørn Mork
[not found] ` <87wqf696wx.fsf-lbf33ChDnrE/G1V5fR+Y7Q@public.gmane.org>
2014-04-03 10:17 ` Johan Hovold
2014-04-03 11:06 ` [PATCH] USB: usb_wwan: fix handling of missing bulk endpoints Johan Hovold
2014-04-03 11:32 ` Rafał Miłecki
2014-04-03 14:21 ` Johan Hovold [this message]
2014-04-03 15:20 ` Rafał Miłecki
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=20140403142142.GA5038@localhost \
--to=jhovold@gmail.com \
--cc=bjorn@mork.no \
--cc=dan.carpenter@oracle.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=smurf@smurf.noris.de \
--cc=stable@vger.kernel.org \
--cc=zajec5@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).