public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Kevin Lloyd <klloyd@sierrawireless.com>
Cc: gregkh@suse.de, linux-usb-devel@lists.sourceforge.net,
	linux-usb-users@lists.sourceforge.net,
	linux-kernel@vger.kernel.org, torvalds@osdl.org,
	Peter Kucmeroski <PKucmeroski@novell.com>,
	Jason Ganovsky <JGanovsky@novell.com>
Subject: Re: [PATCH 2.6.20-rc3 01/01] usb: Sierra Wireless auto set D0
Date: Wed, 17 Jan 2007 13:56:35 -0800	[thread overview]
Message-ID: <20070117215635.GA14495@kroah.com> (raw)
In-Reply-To: <45AC2B68.9060904@sierrawireless.com>

On Mon, Jan 15, 2007 at 05:33:28PM -0800, Kevin Lloyd wrote:
> from: Kevin Lloyd <linux@sierrawireless.com>
> 
> This patch ensures that the device is turned on when inserted into the 
> system (which mostly affects the EM5725 and MC5720. It also adds more 
> VID/PIDs and matches the N_OUT_URB with the airprime driver.
> 
> Signed-off-by: Kevin Lloyd <linux@sierrawireless.com>
> 
> ---
> 
> --- linux-2.6.20-rc5/drivers/usb/serial/sierra.c.orig	2007-01-15 
> 15:17:15.000000000 -0800
> +++ linux-2.6.20-rc5/drivers/usb/serial/sierra.c	2007-01-15 
> 15:41:56.000000000 -0800
> @@ -14,9 +14,31 @@
>   Whom based his on the Keyspan driver by Hugh Blemings <hugh@blemings.org>
> 
>   History:
> +v.1.0.6:
> + klloyd
> + Added more devices and added Vendor Specific USB message to make sure
> + that devices are in D0 state when they start. This is very important for
> + MC5720 and EM5625 modules that go between Windows and Non-Windows 
> + machines.
> +v.1.0.5:
> + Greg KH
> + This saves over 30 lines and fixes a warning from sparse and allows
> + debugging to work dynamically like all other usb-serial drivers.
> + klloyd
> + Changed versioning to v.x.y.z
> +v.1.04:
> + klloyd
> + Adds significant throughput increase to the Sierra driver (uses multiple
> + urgs for download link). This patch also updates the current sierra.c 
> + driver so that it supports both 3-port Sierra devices and 1-port legacy
> + devices and removes Sierra's references in other related files (Kconfig
> + and airprime.c).
> +v.1.03
> + klloyd
> + Adds DTR line control support and impliments urb control.

This is not needed, nor recommended.  The changelog information in the
kernel provides this information.

> 
> -#define DRIVER_VERSION "v.1.0.5"
> +#define DRIVER_VERSION "v.1.0.6"
> #define DRIVER_AUTHOR "Kevin Lloyd <linux@sierrawireless.com>"
> #define DRIVER_DESC "USB Driver for Sierra Wireless USB modems"
> 
> @@ -31,14 +53,14 @@
> 
> 
> static struct usb_device_id id_table [] = {
> +	{ USB_DEVICE(0x1199, 0x0017) },	/* Sierra Wireless EM5625 */
> 	{ USB_DEVICE(0x1199, 0x0018) },	/* Sierra Wireless MC5720 */
> 	{ USB_DEVICE(0x1199, 0x0020) },	/* Sierra Wireless MC5725 */
> -	{ USB_DEVICE(0x1199, 0x0017) },	/* Sierra Wireless EM5625 */
> 	{ USB_DEVICE(0x1199, 0x0019) },	/* Sierra Wireless AirCard 595 */
> -	{ USB_DEVICE(0x1199, 0x0218) },	/* Sierra Wireless MC5720 */

You are dropping support for this device id.  Is that correct?  Are you
sure?

It was reported to me by Peter Kucmeroski and Jason Ganovsky, and you
were CCed when the patch went into the kernel that added this id.

> @@ -123,6 +145,7 @@ static int sierra_send_setup(struct usb_
> 		return usb_control_msg(serial->dev,
> 				usb_rcvctrlpipe(serial->dev, 0),
> 				0x22,0x21,val,0,NULL,0,USB_CTRL_SET_TIMEOUT);
> +
> 	}
> 
> 	return 0;

Is this change really needed?  :)


> @@ -396,6 +419,8 @@ static int sierra_open(struct usb_serial
> 	struct usb_serial *serial = port->serial;
> 	int i, err;
> 	struct urb *urb;
> +	int result;
> +	__u16 set_mode_dzero = 0x0000; //Set mode to D0

// comments are not recommended in the kernel, especially for something
as trivial as a variable name.

> 	portdata = usb_get_serial_port_data(port);
> 
> @@ -442,6 +467,11 @@ static int sierra_open(struct usb_serial
> 
> 	port->tty->low_latency = 1;
> 
> +	//set mode to D0

Use /* */ please.

Care to resubmit this?

thanks,

greg k-h

  reply	other threads:[~2007-01-17 21:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-16  1:33 [PATCH 2.6.20-rc3 01/01] usb: Sierra Wireless auto set D0 Kevin Lloyd
2007-01-17 21:56 ` Greg KH [this message]
2007-01-18  0:04   ` [PATCH 2.6.20-rc5 " Kevin Lloyd

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=20070117215635.GA14495@kroah.com \
    --to=greg@kroah.com \
    --cc=JGanovsky@novell.com \
    --cc=PKucmeroski@novell.com \
    --cc=gregkh@suse.de \
    --cc=klloyd@sierrawireless.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=linux-usb-users@lists.sourceforge.net \
    --cc=torvalds@osdl.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