public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: wangyanqing <udknight@gmail.com>
To: Greg KH <gregkh@suse.de>
Cc: wd@denx.de, stable@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH]usb: serial: pl2303: rm id
Date: Tue, 15 Nov 2011 13:04:26 +0800	[thread overview]
Message-ID: <20111115050426.GA3738@udknight.homenetwork> (raw)
In-Reply-To: <20111114035815.GA17996@suse.de>

On Sun, Nov 13, 2011 at 07:58:15PM -0800, Greg KH wrote:
> On Mon, Nov 14, 2011 at 09:11:30AM +0800, wangyanqing wrote:
> > On Thu, Nov 10, 2011 at 02:04:08PM +0800, wangyanqing wrote:
> > > I get report from customer that his usb-serial
> > > converter doesn't work well,it sometimes work,
> > > but sometimes it doesn't.
> > > 
> > > The usb-serial converter's id:
> > > vendor_id product_id
> > > 0x4348    0x5523
> > > 
> > > Then I search the usb-serial codes, and there are
> > > two drivers announce support this device, pl2303
> > > and ch341, commit 026dfaf1 cause it. Through many
> > > times to test, ch341 works well with this device,
> > > and pl2303 doesn't work quite often(it just work quite little).
> > > 
> > > ch341 works well with this device, so we doesn't
> > > need pl2303 to support.I try to revert 026dfaf1 first,
> > > but it failed. So I prepare this patch by hand to revert it.
> > > 
> > > Signed-off-by: Wang YanQing <Udknight@gmail.com>
> > > ---
> > >  drivers/usb/serial/pl2303.c |    1 -
> > >  drivers/usb/serial/pl2303.h |    4 ----
> > >  2 files changed, 0 insertions(+), 5 deletions(-)
> > > 
> > > diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
> > > index 9083d1e..fc2d66f 100644
> > > --- a/drivers/usb/serial/pl2303.c
> > > +++ b/drivers/usb/serial/pl2303.c
> > > @@ -91,7 +91,6 @@ static const struct usb_device_id id_table[] = {
> > >  	{ USB_DEVICE(SONY_VENDOR_ID, SONY_QN3USB_PRODUCT_ID) },
> > >  	{ USB_DEVICE(SANWA_VENDOR_ID, SANWA_PRODUCT_ID) },
> > >  	{ USB_DEVICE(ADLINK_VENDOR_ID, ADLINK_ND6530_PRODUCT_ID) },
> > > -	{ USB_DEVICE(WINCHIPHEAD_VENDOR_ID, WINCHIPHEAD_USBSER_PRODUCT_ID) },
> > >  	{ USB_DEVICE(SMART_VENDOR_ID, SMART_PRODUCT_ID) },
> > >  	{ }					/* Terminating entry */
> > >  };
> > > diff --git a/drivers/usb/serial/pl2303.h b/drivers/usb/serial/pl2303.h
> > > index 3d10d7f..c38b8c0 100644
> > > --- a/drivers/usb/serial/pl2303.h
> > > +++ b/drivers/usb/serial/pl2303.h
> > > @@ -145,10 +145,6 @@
> > >  #define ADLINK_VENDOR_ID		0x0b63
> > >  #define ADLINK_ND6530_PRODUCT_ID	0x6530
> > >  
> > > -/* WinChipHead USB->RS 232 adapter */
> > > -#define WINCHIPHEAD_VENDOR_ID		0x4348
> > > -#define WINCHIPHEAD_USBSER_PRODUCT_ID	0x5523
> > > -
> > >  /* SMART USB Serial Adapter */
> > >  #define SMART_VENDOR_ID	0x0b8c
> > >  #define SMART_PRODUCT_ID	0x2303
> > > -- 
> > > 1.7.3.4
> > > 
> > Hi all.
> > Maybe it should be noticed that not only one usb-serial converter base 
> > this chip have this issue, but there are about 50(even more) usb-serial 
> > coverter lines have the same issue, so we can't ignore it.
> > Of course we can make all the drivers work well, but we should make it
> > useful at the first.
> 
> Why not add the device id to the other driver at the same time, that
> would ensure that the device continues to work, right?
> 
> thanks,
> 
> greg k-h

Ok greg, thanks for your reply!
But I means maybe I make a very very "bad" subject in the email at all!
There are ch341 and pl2303 , two drivers announce to support this device,
ch341 works well and pl2303 does't work always.

Maybe I should make the email "shorter" next time.
This is the origin email.
https://lkml.org/lkml/2011/11/10/66

We don't need to add the device id to the other driver, ch341 have done it!!
Please looks at ch341.c:76 line
"
       { USB_DEVICE(0x4348, 0x5523) }, "

Thanks again.
 

  reply	other threads:[~2011-11-15  5:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-10  6:04 [PATCH]usb: serial: pl2303: rm id wangyanqing
2011-11-14  1:11 ` wangyanqing
2011-11-14  3:58   ` Greg KH
2011-11-15  5:04     ` wangyanqing [this message]
2011-11-15 17:54       ` Greg KH

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=20111115050426.GA3738@udknight.homenetwork \
    --to=udknight@gmail.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@kernel.org \
    --cc=wd@denx.de \
    /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