From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Subject: Re: Need help regarding the USB mass storage driver Date: Wed, 20 Jun 2012 12:12:11 +0200 Message-ID: <20120620121211.3eb93149@skate> References: Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: Vishal Nandanwar Cc: Linux Docs , Linux Embedded Group , Linux Kernel , Linux USB , Platform driver x86 Le Wed, 20 Jun 2012 15:09:20 +0530, Vishal Nandanwar a =C3=A9crit : > I am working on a USB mass storage driver for a pen drive. I have don= e > 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. Why do you need to write a new driver? Normally, all the USB storage devices conform to the USB Mass Storage specification, which means that the usb-storage driver of the Linux kernel can be used for them. There is no need for a separate driver for each USB storage device, unless of course it doesn't comply with the USB Mass Storage specification. Thomas --=20 Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Subject: Re: Need help regarding the USB mass storage driver Date: Wed, 20 Jun 2012 12:12:11 +0200 Message-ID: <20120620121211.3eb93149@skate> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Vishal Nandanwar Cc: Linux Docs , Linux Embedded Group , Linux Kernel , Linux USB , Platform driver x86 List-Id: platform-driver-x86.vger.kernel.org Le Wed, 20 Jun 2012 15:09:20 +0530, Vishal Nandanwar a =C3=A9crit : > I am working on a USB mass storage driver for a pen drive. I have don= e > 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. Why do you need to write a new driver? Normally, all the USB storage devices conform to the USB Mass Storage specification, which means that the usb-storage driver of the Linux kernel can be used for them. There is no need for a separate driver for each USB storage device, unless of course it doesn't comply with the USB Mass Storage specification. Thomas --=20 Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com