public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@suse.de>
To: Raju Rameshwar Uprade <rajsingh@ncra.tifr.res.in>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: Regarding USB-to-serial device driver
Date: Tue, 28 Sep 2010 04:30:36 -0700	[thread overview]
Message-ID: <20100928113036.GA15024@suse.de> (raw)
In-Reply-To: <20100928091520.M79654@admin-gateway.ncra.tifr.res.in>

On Tue, Sep 28, 2010 at 02:51:57PM +0530, Raju Rameshwar Uprade wrote:
> Hello Greg,
>  
>       I am using pl2303.c ( USB to serial device driver ) to communicate to various
> devices connected in parallel using RS-485 interface card.
> 
> I am now able to separate the Address byte and data bytes.Driver send the Address byte
> properly but when it tries to send the data bytes following error occurs,
> 
> pl2303_mcm ttyUSB0: pl2303_write - failed submitting write urb, error -22.

Is this with your patched pl2303 driver, or are you now doing this from
userspace?

> I have also attached the kernel log.
> 
> /home/teleset/Desktop/USB-Serial/pl2303_mcm.c: pl2303_write before any thing - port 0, 9
> bytes 
> /home/teleset/Desktop/USB-Serial/pl2303_mcm.c: set_control_lines - value = 3, retval = 0
>  
>  Data in The BUF 0 is -----> 02 
>  
>  Data in The BUF 1 is -----> 08 
>  
>  Data in The BUF 2 is -----> 00 
>  
>  Data in The BUF 3 is -----> 00 
>  
>  Data in The BUF 4 is -----> 00 
>  
>  Data in The BUF 5 is -----> 00 
>  
>  Data in The BUF 6 is -----> 00 
>  
>  Data in The BUF 7 is -----> 00 
>  
>  Data in The BUF 8 is -----> f8 
> pl2303_mcm ttyUSB0: pl2303_write - length = 1, data = 02 
> /home/teleset/Desktop/USB-Serial/pl2303_mcm.c: After the first urb submission count =  9
> and length = 8 
> pl2303_mcm ttyUSB0: pl2303_write - length = 8, data = 08 00 00 00 00 00 00 f8 
> pl2303_mcm ttyUSB0: pl2303_write - failed submitting write urb, error -22
> /home/teleset/Desktop/USB-Serial/pl2303_mcm.c: pl2303_write_bulk_callback - port 0
> /home/teleset/Desktop/USB-Serial/pl2303_mcm.c: set_control_lines - value = 0, retval = 0

This looks like your driver, not mine, sorry, you are on your own here.
See my previous emails as to why this should be done in userspace and
not in the kernel.

good luck,

greg k-h

  reply	other threads:[~2010-09-28 11:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-13  9:17 Regarding USB-to-Serial device driver Raju Rameshwar Uprade
2010-09-13 13:56 ` Alan Stern
2010-09-13 15:48 ` Greg KH
2010-09-14  6:11   ` Raju Rameshwar Uprade
2010-09-14 13:19     ` Greg KH
2010-09-22  5:32       ` Regarding USB-to-serial " Raju Rameshwar Uprade
2010-09-22 14:56         ` Greg KH
2010-09-23 10:15           ` Raju Rameshwar Uprade
2010-09-23 14:02             ` Greg KH
2010-09-28  9:21               ` Raju Rameshwar Uprade
2010-09-28 11:30                 ` Greg KH [this message]
2010-09-28 11:56                   ` Raju Rameshwar Uprade
2010-09-28 12:07                     ` Greg KH
2010-10-04  4:33                       ` Raju Rameshwar Uprade
2010-10-05 11:03                         ` pl2303_ttyUSB0 userspace application not able to control RTS line Raju Rameshwar Uprade
2010-10-05 13:33                           ` Greg KH
2010-10-06  4:14                             ` Raju Rameshwar Uprade
2010-10-06  4:30                               ` Greg Oliver
2010-10-06  5:01                                 ` Raju Rameshwar Uprade

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=20100928113036.GA15024@suse.de \
    --to=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=rajsingh@ncra.tifr.res.in \
    /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