public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] usb: Add support for multiple-LUN mass storage devices
Date: Tue, 05 Oct 2010 00:11:38 +0200	[thread overview]
Message-ID: <87sk0la9r9.fsf_-_@gnu.org> (raw)
In-Reply-To: <87aamwyys1.fsf@gnu.org> ("Ludovic Courtès"'s message of "Sun, 03 Oct 2010 01:12:46 +0200")

Hi,

ludo at gnu.org (Ludovic Court?s) writes:

> The request sense KCQ can be interpreted as ?Not Ready - Medium Not
> Present?, according to
> <https://secure.wikimedia.org/wikipedia/en/wiki/KCQ>, despite the fact
> that the SD card is actually in (and Linux can successfully read from
> it.)
>
> The card reader has USB IDs 05e3:0726 (Genesys Logic).

The problem was that this card reader exposes two SCSI logical units
(LUNs), whereas the code in ?usb_storage.c? assumed single-LUN devices
(which is typically the case with USB keys and disks.)

The patch below adds support for multiple-LUN devices like this one.
Tested on the GuruPlug.

The net effect for the GuruPlug is that it makes it possible to boot a
kernel stored on a microSD card, something long overdue [0, 1].

Can you please review and apply?

Thanks,
Ludo?.

[0] http://plugcomputer.org/plugforum/index.php?topic=1642

[1] It really feels like I?m doing GlobalScale?s or Marvell?s job here.
    It looks like GlobalScale is steadily strengthening its reputation
    of being incompetent.  Keep up the bad work!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-usb-Add-support-for-multiple-LUN-mass-storage-device.patch
Type: text/x-patch
Size: 4166 bytes
Desc: the patch
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101005/96e83f44/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101005/96e83f44/attachment.pgp 

  reply	other threads:[~2010-10-04 22:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01 16:17 [U-Boot] SD card on the GuruPlug Ludovic Courtès
2010-10-02 23:12 ` [U-Boot] Troubles accessing a USB mass storage device Ludovic Courtès
2010-10-04 22:11   ` Ludovic Courtès [this message]
     [not found]     ` <26012718.1256010.1286282818170.JavaMail.root@zmbs1.inria.fr>
2010-10-05 19:28       ` [U-Boot] [PATCH] usb: Add support for multiple-LUN mass storage devices Ludovic Courtès
2010-10-05 20:04     ` [U-Boot] [PATCH v2] " Ludovic Courtès
2010-10-13 14:18       ` [U-Boot] [PATCH v2, PING] " Ludovic Courtès
2010-10-13 16:02         ` Remy Bohmer
     [not found] ` <1235049614.358782.1286186899690.JavaMail.root@zmbs1.inria.fr>
2010-10-04 14:26   ` [U-Boot] SD card on the GuruPlug Ludovic Courtès

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=87sk0la9r9.fsf_-_@gnu.org \
    --to=ludo@gnu.org \
    --cc=u-boot@lists.denx.de \
    /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