From: Greg KH <greg@kroah.com>
To: Kallol Biswas <kallol.biswas@efi.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: usb printer driver and zero length transfer
Date: Mon, 24 Mar 2003 16:28:01 -0800 [thread overview]
Message-ID: <20030325002801.GB10505@kroah.com> (raw)
In-Reply-To: <3E7F61D6.D1017E70@efi.com>
On Mon, Mar 24, 2003 at 11:51:50AM -0800, Kallol Biswas wrote:
> Hi,
> I am new to USB world and looking for clarification on usb
> printer's
> behavior when transferring data with size multiple of wMaxPacketSize.
>
> I have been running redhat 7.1 (linux kernel 2.4.2-2) on x86 PC with a
> USB 1.1 controller. There is a target mode printer driver running on the
>
> other side.
>
> On the host the device file is /dev/usb/lp0.
> If a data packet of 64 bytes is sent with
>
> "cat data8 > /dev/usb/lp0" , the size of data8 is 64, a zero length
> packet
> at the end of the transfer is not sent.
>
> Is this a correct behavior? How do we force the printer driver send
> a zero length packet at the end of a transfer if the packet size is
> a multiple of wMAxPacketSize?
If your device requires that a zero length packet be send for this
situation, then modify the transfer flags of the urb with
URB_ZERO_PACKET to cause this to happen.
Hope this helps,
greg k-h
prev parent reply other threads:[~2003-03-25 0:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-24 19:51 Kallol Biswas
2003-03-25 0:28 ` 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=20030325002801.GB10505@kroah.com \
--to=greg@kroah.com \
--cc=kallol.biswas@efi.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®