From: victor <victor@keyasic.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] USB mass storage gadget patch
Date: Fri, 2 Nov 2012 19:07:28 +0800 [thread overview]
Message-ID: <033201cdb8ea$3fe03a10$bfa0ae30$@keyasic.com> (raw)
Lukasz,
I am looking at the usb mass storage gadget patch from you at:
http://patchwork.ozlabs.org/patch/104516/
I am trying to use this patch in the u-boot. Some questions:
1) Is this patch in U-boot git release?
2) Now I can use the patch and process till SCSI MODE_SELECT_6 command, and
then problem is encountered. Basically the SCSI MODE_SELECT_6 is sent to EP1
Out, then data is sent to EP1 out, and the fsg_main_thread only sees the
data. I change the code to force the CSW.
The changes are:
1) fix the buf pointer in scsi inquiry
2) fix the buf pointer in scsi read format capacities
3) fix the buf pointer in CSW sending
4) fix attention condition checking in scsi command check
5) fix the context pointer before queue a request to read bulk only CBW
6) change bulk out endpoint from endpoint 2 to endpoint 1 to accommodate
gen2 usb hardware limitation
7) in pad_with_zeros(), comment out the bh->inreq->length = nsend
8) in received_cbw(), force to send CSW if CBW is invalid. Otherwise, the
IRQ routine keeps on reading the same data.
I attach the file for your reference. Please kindly advise me. Thanks.
Thanks,
victor
================================================================================================
CONFIDENTIALITY NOTE:
This e-mail and any attachments may contain confidential information and may be protected by legal privilege. If you are not the intended addressee (or authorized to receive for the addressee). be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you for your cooperation.
KeyASIC Inc.
================================================================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file_storage.c
Type: application/octet-stream
Size: 106931 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121102/f6d8c100/attachment.obj>
next reply other threads:[~2012-11-02 11:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-02 11:07 victor [this message]
2012-11-02 13:19 ` [U-Boot] USB mass storage gadget patch Lukasz Majewski
2012-11-05 2:30 ` victor
2012-11-05 6:45 ` victor
2012-11-06 6:46 ` victor
2012-11-06 9:03 ` Lukasz Majewski
2012-11-06 9:58 ` victor
2012-11-06 11:08 ` victor
2012-11-22 2:24 ` victor
-- strict thread matches above, loose matches on Subject: below --
2012-11-02 11:43 victor
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='033201cdb8ea$3fe03a10$bfa0ae30$@keyasic.com' \
--to=victor@keyasic.com \
--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