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: Thu, 23 Sep 2010 07:02:36 -0700 [thread overview]
Message-ID: <20100923140236.GB31394@suse.de> (raw)
In-Reply-To: <20100923100127.M64470@admin-gateway.ncra.tifr.res.in>
On Thu, Sep 23, 2010 at 03:45:52PM +0530, Raju Rameshwar Uprade wrote:
> > For what driver?
>
> I am using pl2303.c ( USB to serial device driver ) to communicate to
> various devices connected in parallel using RS-485 interface card.
So your program is going to fail if you use a different hardware device?
That doesn't sound like a good idea.
> > > Kindly help me.I am facing the problem in separating the data bytes so
> > > that I can send the data bytes separately using usb_submit_urb.
> >
> > It all depends on the driver you are using. Why not do all of this from
> > userspace? That way it works on any device you are talking to.
>
> I want to write data twice :
>
> 1. Only address byte and then
> 2. Data bytes.
Again, do this in userspace.
> I am properly allocating memory for write_urb using kzalloc.When I write complete user
> buffer to the port, it send the data properly.
>
> But when I try to write only address byte machine get hang.
>
> I have attached the source file.
Sorry, I really don't know, you are on your own here.
good luck,
greg k-h
next prev parent reply other threads:[~2010-09-23 14:03 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 [this message]
2010-09-28 9:21 ` Raju Rameshwar Uprade
2010-09-28 11:30 ` Greg KH
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=20100923140236.GB31394@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.