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

---
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   |   32 ++++++++------
 drivers/usb/gadget/storage_common.c |   79 +++++++++++++++++++++++++++++++++++
 3 files changed, 116 insertions(+), 26 deletions(-)


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

end of thread, other threads:[~2011-03-10 14:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09 12:21 [PATCH 0/3] usb: gadget: storage: Make CD-ROM emulation work with Mac OS-X Roger Quadros
2011-03-09 12:21 ` [PATCH 1/3] usb: gadget: storage: Add fsg_get_toc helper Roger Quadros
2011-03-09 12:21   ` [PATCH 2/3] usb: gadget: file_storage: Make CD-ROM emulation work with Mac OS-X Roger Quadros
2011-03-09 12:21     ` [PATCH 3/3] usb: gadget: f_mass_storage: " Roger Quadros
2011-03-09 13:41   ` [PATCH 1/3] usb: gadget: storage: Add fsg_get_toc helper Sergei Shtylyov
2011-03-09 14:08     ` Roger Quadros
2011-03-09 15:10   ` Alan Stern
2011-03-09 15:37     ` Roger Quadros
2011-03-09 16:07   ` Alan Stern
2011-03-10 14:54     ` Roger Quadros

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