mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Andy Shevchenko <andy@smile.org.ua>, sgosne@sequans.com
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH] Possible bug fix in the ehci-hcd
Date: Fri, 8 Feb 2008 14:18:13 -0800	[thread overview]
Message-ID: <20080208221813.GB6827@kroah.com> (raw)
In-Reply-To: <20080207164832.GL20508@serv.smile.org.ua>

On Thu, Feb 07, 2008 at 06:48:32PM +0200, Andy Shevchenko wrote:
> Hi!
> 
> The Sequans company who produce WiMAX chips provides the USB driver and kthp
> addon driver. However the USB device doesn't work correctly.
> 
> Here is more true hack for Sequans SQN11x0 based modem.
> 
> P.S. For more details, please, ask Sequans staff (see Signed-off-by lines).
> 
> Signed-off-by: Andy Shevchenko <andy@smile.org.ua>
> Signed-off-by: Gosne Stephane <sgosne@sequans.com>
> 
> --- a/drivers/usb/host/ehci-q.c.orig	2008-02-07 16:53:18.000000000 +0200
> +++ b/drivers/usb/host/ehci-q.c	2008-02-07 16:53:18.000000000 +0200
> @@ -750,8 +750,14 @@
>  			info1 |= 1 << 14;	/* toggle from qtd */
>  			info2 |= (EHCI_TUNE_MULT_HS << 30);
>  		} else if (type == PIPE_BULK) {
> +			struct usb_device_descriptor *desc = &urb->dev->descriptor;
>  			info1 |= (EHCI_TUNE_RL_HS << 28);
> -			info1 |= 512 << 16;	/* usb2 fixed maxpacket */
> +			/* Special hook for SQN11x0 */
> +			if (desc->idVendor == 0x148e && desc->idProduct == 0x0900) {
> +				info1 |= max_packet (maxp) << 16;
> +			} else {
> +				info1 |= 512 << 16;	/* usb2 fixed maxpacket */
> +			}

We should not be adding hacks for a specific USB device to the host
driver, that's just wrong.

The driver for the device itself should be fixed.

Do you, or anyone else have a pointer to the driver that is causing this
problem?

Andrew, please drop this from your queue.

thanks,

greg k-h

      reply	other threads:[~2008-02-08 22:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-07 16:48 Andy Shevchenko
2008-02-08 22:18 ` Greg KH [this message]

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=20080208221813.GB6827@kroah.com \
    --to=greg@kroah.com \
    --cc=andy@smile.org.ua \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sgosne@sequans.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

all inboxes | Powered by JetHome®