From: Denis Joseph Barrow <D.Barow@option.com>
To: Linux USB kernel mailing list <linux-usb@vger.kernel.org>,
Linux netdev Mailing list <netdev@vger.kernel.org>
Subject: [PATCH 3/3] hso modem port detection fix patch
Date: Mon, 08 Dec 2008 11:44:57 +0100 [thread overview]
Message-ID: <493CFAA9.6080401@option.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
This patch will clash with the previously posted.
[PATCH 1/3] hso modem signals patch fix & should only
be applied if the hso modem signals patch fix patch
is not applied.
Fixed incorrect check for the modem port,
Signed-off-by: Denis Joseph Barrow <D.Barow@option.com>
---
Index: netdev-2.6/drivers/net/usb/hso.c
===================================================================
--- netdev-2.6.orig/drivers/net/usb/hso.c 2008-12-08 11:29:03.000000000 +0100
+++ netdev-2.6/drivers/net/usb/hso.c 2008-12-08 11:30:00.000000000 +0100
@@ -2343,7 +2343,7 @@
serial->parent = hso_dev;
hso_dev->port_data.dev_serial = serial;
- if (port & HSO_PORT_MODEM)
+ if ((port & HSO_PORT_MASK) == HSO_PORT_MODEM)
num_urbs = 2;
else
num_urbs = 1;
--
best regards,
D.J. Barrow
[-- Attachment #2: hso_modem_port_fix.patch --]
[-- Type: text/x-diff, Size: 573 bytes --]
Fixed incorrect check for the modem port,
Signed-off-by: Denis Joseph Barrow <D.Barow@option.com>
---
Index: netdev-2.6/drivers/net/usb/hso.c
===================================================================
--- netdev-2.6.orig/drivers/net/usb/hso.c 2008-12-08 11:29:03.000000000 +0100
+++ netdev-2.6/drivers/net/usb/hso.c 2008-12-08 11:30:00.000000000 +0100
@@ -2343,7 +2343,7 @@
serial->parent = hso_dev;
hso_dev->port_data.dev_serial = serial;
- if (port & HSO_PORT_MODEM)
+ if ((port & HSO_PORT_MASK) == HSO_PORT_MODEM)
num_urbs = 2;
else
num_urbs = 1;
next reply other threads:[~2008-12-08 10:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 10:44 Denis Joseph Barrow [this message]
[not found] ` <493CFAA9.6080401-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org>
2008-12-08 10:54 ` [PATCH 3/3] hso modem port detection fix patch David Miller
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=493CFAA9.6080401@option.com \
--to=d.barow@option.com \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@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 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).