linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alan Stern <stern@rowland.harvard.edu>
To: Vishal Nandanwar <operational.people@gmail.com>
Cc: Linux Docs <linux-doc@vger.kernel.org>,
	Linux Embedded Group <linux-embedded@vger.kernel.org>,
	Linux Kernel <linux-kernel@vger.kernel.org>,
	Linux USB <linux-usb@vger.kernel.org>,
	Platform driver x86 <platform-driver-x86@vger.kernel.org>
Subject: Re: Need help regarding the USB mass storage driver
Date: Wed, 20 Jun 2012 11:05:04 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.44L0.1206201100410.1804-100000@iolanthe.rowland.org> (raw)
In-Reply-To: <CAKB833nfHQwdHzCFV6ELrk1-XZT-SN8WxMs=kzO=C8+6foTrDQ@mail.gmail.com>

On Wed, 20 Jun 2012, Vishal Nandanwar wrote:

> Hi,
> 
> I am working on a USB mass storage driver for a pen drive. I have done
> coding as per the USB_skeleton.c file provided in Linux 3.2 source
> code. I could assign the driver to pen drive when pen driver is
> inserted in USB connector.

Do you understand that the usb_skeleton.c file is totally inappropriate 
as a model for a mass-storage driver?

> I am stuck in data transfer,  could not do the data transfer. During
> enumeration interface sub class is 06 i.e. SCSI transparent command
> set. Please find my questions below.
> 
> 1. Where are these SCSI transparent command set documented?

Google is your friend.  But see the answer to your next question...

> 2. Is there any sample code(apart from Linux source) which describes
> the SCSI transparent command set and mass storage driver?

There is no such thing as the SCSI transparent command set.  "SCSI 
transparent" means "use whatever command set the relevant SCSI standard 
specifies".

There is non-Linux source code for mass-storage drivers in other
open-source operating systems.

> 3. When I connect the pen drive and associate my driver, pop up
> doesn't appear on the screen for this device. but when default
> driver(usb_storage) is used this pop up does appear. What I need to do
> here?

Fix your driver.  It's not possible to give a more complete answer 
without further information.

Alan Stern

      parent reply	other threads:[~2012-06-20 15:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-20  9:39 Need help regarding the USB mass storage driver Vishal Nandanwar
2012-06-20 10:12 ` Thomas Petazzoni
2012-06-20 15:05 ` Alan Stern [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=Pine.LNX.4.44L0.1206201100410.1804-100000@iolanthe.rowland.org \
    --to=stern@rowland.harvard.edu \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-embedded@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=operational.people@gmail.com \
    --cc=platform-driver-x86@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).