All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kallol Biswas <kallol.biswas@efi.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: usb printer driver and zero length transfer
Date: Mon, 24 Mar 2003 11:51:50 -0800	[thread overview]
Message-ID: <3E7F61D6.D1017E70@efi.com> (raw)

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?


Kallol


             reply	other threads:[~2003-03-24 19:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-24 19:51 Kallol Biswas [this message]
2003-03-25  0:28 ` usb printer driver and zero length transfer 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=3E7F61D6.D1017E70@efi.com \
    --to=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 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.