From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 2 Jan 2009 06:50:34 -0500 Subject: [U-Boot] [PATCH] usb_storage: do not reset SanDisk Corporation U3 Cruzer Micro USB thumb drive In-Reply-To: <20090102112639.GA17175@game.jcrosoft.org> References: <3efb10970901010232n7b39a843rf806c02770338b70@mail.gmail.com> <1230857287-11597-1-git-send-email-vapier@gentoo.org> <20090102112639.GA17175@game.jcrosoft.org> Message-ID: <200901020650.34962.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 02 January 2009 06:26:39 Jean-Christophe PLAGNIOL-VILLARD wrote: > On 19:48 Thu 01 Jan , Mike Frysinger wrote: > > From: Bryan Wu > > > > The SanDisk Corporation U3 Cruzer Micro 1/4GB Flash Drive > > 000016244373FFB4 does not like to be reset, so check for it. > > > > Signed-off-by: Bryan Wu > > Signed-off-by: Mike Frysinger > > --- > > common/usb_storage.c | 7 +++++++ > > 1 files changed, 7 insertions(+), 0 deletions(-) > > > > diff --git a/common/usb_storage.c b/common/usb_storage.c > > index 94f659f..94124f8 100644 > > --- a/common/usb_storage.c > > +++ b/common/usb_storage.c > > @@ -1166,6 +1166,13 @@ int usb_stor_get_info(struct usb_device > > *dev,struct us_data *ss,block_dev_desc_t /* SanDisk Corporation Cruzer > > Micro 20044318410546613953 */ (dev->descriptor.idVendor == 0x0781 && > > dev->descriptor.idProduct == 0x5151) > > + || > > + /* > > + * SanDisk Corporation U3 Cruzer Micro 1/4GB > > + * Flash Drive 000016244373FFB4 > > + */ > > + (dev->descriptor.idVendor == 0x0781 && > > + dev->descriptor.idProduct == 0x5406) > > ) > > instead of add more and more if else case > why not add a fixup function? feel free to ask/take it up with the usb maintainer. we work with what's there rather than being creative. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20090102/ec2477b6/attachment-0001.pgp