public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] usb: gadget: storage: Make CD-ROM emulation work with Mac OS-X
@ 2011-03-21 10:59 Roger Quadros
  2011-03-21 10:59 ` [PATCH v2 1/3] usb: gadget: storage: Add fsg_get_toc helper Roger Quadros
  0 siblings, 1 reply; 13+ messages in thread
From: Roger Quadros @ 2011-03-21 10:59 UTC (permalink / raw)
  To: gregkh; +Cc: stern, sshtylyov, linux-usb, linux-kernel

Hi,

Mac OS-X expects CD-ROM TOC in raw format (i.e. format:2). It also
sends the READ_TOC CDB in old style SFF8020i format. i.e. 2 format bits
are encoded in MSBs of CDB byte 9.

The first patch introduces a fsg_get_toc() helper which builds the
Table of Contents (TOC) that can be used for the READ_TOC command.
The remaining two patches simply make file_storage gadget and mass_storage
gadget use the new helper function.

Changes in v2:
- Review comments incorporated.

---
Roger Quadros (3):
  usb: gadget: storage: Add fsg_get_toc helper
  usb: gadget: file_storage: Make CD-ROM emulation work with Mac OS-X
  usb: gadget: f_mass_storage: Make CD-ROM emulation work with Mac OS-X

 drivers/usb/gadget/f_mass_storage.c |   31 +++++++++-------
 drivers/usb/gadget/file_storage.c   |   31 +++++++++-------
 drivers/usb/gadget/storage_common.c |   68 +++++++++++++++++++++++++++++++++++
 3 files changed, 104 insertions(+), 26 deletions(-)


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-03-23 16:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 10:59 [PATCH v2 0/3] usb: gadget: storage: Make CD-ROM emulation work with Mac OS-X Roger Quadros
2011-03-21 10:59 ` [PATCH v2 1/3] usb: gadget: storage: Add fsg_get_toc helper Roger Quadros
2011-03-21 10:59   ` [PATCH v2 2/3] usb: gadget: file_storage: Make CD-ROM emulation work with Mac OS-X Roger Quadros
2011-03-21 10:59     ` [PATCH v2 3/3] usb: gadget: f_mass_storage: " Roger Quadros
2011-03-22 14:17     ` [PATCH v2 2/3] usb: gadget: file_storage: " Roger Quadros
2011-03-22 14:26       ` Alan Stern
2011-03-22 14:39         ` Roger Quadros
2011-03-22 15:13           ` Alan Stern
2011-03-23  8:20             ` Roger Quadros
2011-03-23 15:17               ` Alan Stern
2011-03-23 16:14                 ` Michal Nazarewicz
2011-03-21 14:20   ` [PATCH v2 1/3] usb: gadget: storage: Add fsg_get_toc helper Alan Stern
2011-03-21 15:29     ` Roger Quadros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox