<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/common/usb_storage.c, branch v2012.04</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>usb: replace wait_ms() with mdelay()</title>
<updated>2012-03-18T23:08:16+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2012-03-05T13:47:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5b84dd67cfd8c07c4adff935310224a03d0c4d01'/>
<id>5b84dd67cfd8c07c4adff935310224a03d0c4d01</id>
<content type='text'>
Common code has a mdelay() func, so use that instead of the usb-specific
wait_ms() func.  This also fixes the build errors:

ohci-hcd.c: In function 'submit_common_msg':
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1519:9: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1816:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1827:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1844:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1563:11: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1583:9: sorry, unimplemented: called from here
make[1]: *** [ohci-hcd.o] Error 1

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Acked-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Common code has a mdelay() func, so use that instead of the usb-specific
wait_ms() func.  This also fixes the build errors:

ohci-hcd.c: In function 'submit_common_msg':
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1519:9: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1816:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1827:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1844:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1563:11: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1583:9: sorry, unimplemented: called from here
make[1]: *** [ohci-hcd.o] Error 1

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Acked-by: Marek Vasut &lt;marex@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb_storage: Fix EHCI "out of buffer pointers" with CD-ROM</title>
<updated>2012-01-05T19:10:38+00:00</updated>
<author>
<name>Kyle Moffett</name>
<email>Kyle.D.Moffett@boeing.com</email>
</author>
<published>2011-12-21T07:08:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5dd95cf93dfffa1d19a1928990852aac9f55b9d9'/>
<id>5dd95cf93dfffa1d19a1928990852aac9f55b9d9</id>
<content type='text'>
When performing large bulk reads from a CD or DVD using the U-Boot
usb_storage driver, it generates requests of up to 20 blocks at a time.

With a standard 512-byte block size, that is 10240 bytes and within the
limit of U-Boot's EHCI driver (maximum 5 pages at 4k per page).

Unfortunately CD-ROM media has a 2048-byte blocksize, resulting in a
maximum transfer size of 40960 bytes, which does not fit.

Since the EHCI specification is impossibly obtuse and far beyond my
comprehension, I chose to dynamically compute the limit based on the
blocksize.

Signed-off-by: Kyle Moffett &lt;Kyle.D.Moffett@boeing.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When performing large bulk reads from a CD or DVD using the U-Boot
usb_storage driver, it generates requests of up to 20 blocks at a time.

With a standard 512-byte block size, that is 10240 bytes and within the
limit of U-Boot's EHCI driver (maximum 5 pages at 4k per page).

Unfortunately CD-ROM media has a 2048-byte blocksize, resulting in a
maximum transfer size of 40960 bytes, which does not fit.

Since the EHCI specification is impossibly obtuse and far beyond my
comprehension, I chose to dynamically compute the limit based on the
blocksize.

Signed-off-by: Kyle Moffett &lt;Kyle.D.Moffett@boeing.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>GCC4.6: Squash subsequent warnings in usb_storage.c</title>
<updated>2011-10-27T21:54:03+00:00</updated>
<author>
<name>Marek Vasut</name>
<email>marek.vasut@gmail.com</email>
</author>
<published>2011-10-25T09:39:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4b210e8bcfd3c256edcb20ea850b58fe2b5921fe'/>
<id>4b210e8bcfd3c256edcb20ea850b58fe2b5921fe</id>
<content type='text'>
usb_storage.c: In function â€˜us_one_transferâ€™:
usb_storage.c:377:7: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 2 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:389:6: warning: format â€˜%dâ€™ expects argument of type â€˜intâ€™, but
argument 2 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:394:6: warning: format â€˜%dâ€™ expects argument of type â€˜intâ€™, but
argument 2 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c: In function â€˜usb_stor_BBB_resetâ€™:
usb_storage.c:442:2: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:448:2: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:454:2: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c: In function â€˜usb_stor_CB_resetâ€™:
usb_storage.c:482:2: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c: In function â€˜usb_stor_CB_comdatâ€™:
usb_storage.c:572:3: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:584:4: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c: In function â€˜usb_stor_BBB_transportâ€™:
usb_storage.c:782:3: warning: format â€˜%dâ€™ expects argument of type â€˜intâ€™, but
argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c: In function â€˜usb_stor_CB_transportâ€™:
usb_storage.c:807:2: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:830:3: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 2 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:857:3: warning: format â€˜%dâ€™ expects argument of type â€˜intâ€™, but
argument 2 has type â€˜long unsigned intâ€™ [-Wformat]

Signed-off-by: Marek Vasut &lt;marek.vasut@gmail.com&gt;
Cc: Wolfgang Denk &lt;wd@denx.de&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Mike Frysinger &lt;vapier@gentoo.org&gt;
Cc: Remy Bohmer &lt;linux@bohmer.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
usb_storage.c: In function â€˜us_one_transferâ€™:
usb_storage.c:377:7: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 2 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:389:6: warning: format â€˜%dâ€™ expects argument of type â€˜intâ€™, but
argument 2 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:394:6: warning: format â€˜%dâ€™ expects argument of type â€˜intâ€™, but
argument 2 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c: In function â€˜usb_stor_BBB_resetâ€™:
usb_storage.c:442:2: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:448:2: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:454:2: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c: In function â€˜usb_stor_CB_resetâ€™:
usb_storage.c:482:2: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c: In function â€˜usb_stor_CB_comdatâ€™:
usb_storage.c:572:3: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:584:4: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c: In function â€˜usb_stor_BBB_transportâ€™:
usb_storage.c:782:3: warning: format â€˜%dâ€™ expects argument of type â€˜intâ€™, but
argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c: In function â€˜usb_stor_CB_transportâ€™:
usb_storage.c:807:2: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 3 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:830:3: warning: format â€˜%Xâ€™ expects argument of type â€˜unsigned
intâ€™, but argument 2 has type â€˜long unsigned intâ€™ [-Wformat]
usb_storage.c:857:3: warning: format â€˜%dâ€™ expects argument of type â€˜intâ€™, but
argument 2 has type â€˜long unsigned intâ€™ [-Wformat]

Signed-off-by: Marek Vasut &lt;marek.vasut@gmail.com&gt;
Cc: Wolfgang Denk &lt;wd@denx.de&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Mike Frysinger &lt;vapier@gentoo.org&gt;
Cc: Remy Bohmer &lt;linux@bohmer.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>GCC4.6: Squash warning in usb_storage.c</title>
<updated>2011-10-27T21:54:03+00:00</updated>
<author>
<name>Marek Vasut</name>
<email>marek.vasut@gmail.com</email>
</author>
<published>2011-10-25T09:39:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=86bd3ff8fd31fc1b4ef6334ea3f0c10ae2ee6c90'/>
<id>86bd3ff8fd31fc1b4ef6334ea3f0c10ae2ee6c90</id>
<content type='text'>
usb_storage.c: In function â€˜usb_stor_CB_resetâ€™:
usb_storage.c:466:6: warning: variable â€˜resultâ€™ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut &lt;marek.vasut@gmail.com&gt;
Cc: Wolfgang Denk &lt;wd@denx.de&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
usb_storage.c: In function â€˜usb_stor_CB_resetâ€™:
usb_storage.c:466:6: warning: variable â€˜resultâ€™ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut &lt;marek.vasut@gmail.com&gt;
Cc: Wolfgang Denk &lt;wd@denx.de&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Mike Frysinger &lt;vapier@gentoo.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "GCC4.6: Convert various empty macros to inline functions"</title>
<updated>2011-10-04T19:19:19+00:00</updated>
<author>
<name>Wolfgang Denk</name>
<email>wd@denx.de</email>
</author>
<published>2011-10-04T19:19:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f092f15d39d1a223b240eb83dc3f4c64a02a8ea6'/>
<id>f092f15d39d1a223b240eb83dc3f4c64a02a8ea6</id>
<content type='text'>
This reverts commit 60ce53cf9f408d9ad721f8e7a87d6a564e6d5bac.

The commit causes build breakage for a number of boards. This results
from the fact that now the arguments of debug() actually get
referenced (even if there is hope that the compiler will optimize
away the debug() call).  The obvious fix to that probem (change the
code to always declare the referenced variables and data structures)
increases the code size, and was this rejected.  So it was decided to
revert this commit until a better solution is found.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 60ce53cf9f408d9ad721f8e7a87d6a564e6d5bac.

The commit causes build breakage for a number of boards. This results
from the fact that now the arguments of debug() actually get
referenced (even if there is hope that the compiler will optimize
away the debug() call).  The obvious fix to that probem (change the
code to always declare the referenced variables and data structures)
increases the code size, and was this rejected.  So it was decided to
revert this commit until a better solution is found.
</pre>
</div>
</content>
</entry>
<entry>
<title>GCC4.6: Convert various empty macros to inline functions</title>
<updated>2011-10-01T21:25:18+00:00</updated>
<author>
<name>Marek Vasut</name>
<email>marek.vasut@gmail.com</email>
</author>
<published>2011-09-26T17:36:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=60ce53cf9f408d9ad721f8e7a87d6a564e6d5bac'/>
<id>60ce53cf9f408d9ad721f8e7a87d6a564e6d5bac</id>
<content type='text'>
Fix the following gcc4.6 problems:

cmd_date.c: In function â€˜do_dateâ€™:
cmd_date.c:50:6: warning: variable â€˜old_busâ€™ set but not used
[-Wunused-but-set-variable]
asix.c: In function â€˜asix_initâ€™:
asix.c:317:6: warning: variable â€˜rx_ctlâ€™ set but not used
[-Wunused-but-set-variable]
usb.c: In function â€˜usb_parse_configâ€™:
usb.c:331:17: warning: variable â€˜châ€™ set but not used
[-Wunused-but-set-variable]
usb.c: In function â€˜usb_hub_port_connect_changeâ€™:
usb.c:1123:29: warning: variable â€˜portchangeâ€™ set but not used
[-Wunused-but-set-variable]
usb.c: In function â€˜usb_hub_configureâ€™:
usb.c:1183:25: warning: variable â€˜hubstsâ€™ set but not used
[-Wunused-but-set-variable]
usb_storage.c: In function â€˜usb_stor_CB_resetâ€™:
usb_storage.c:466:6: warning: variable â€˜resultâ€™ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut &lt;marek.vasut@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the following gcc4.6 problems:

cmd_date.c: In function â€˜do_dateâ€™:
cmd_date.c:50:6: warning: variable â€˜old_busâ€™ set but not used
[-Wunused-but-set-variable]
asix.c: In function â€˜asix_initâ€™:
asix.c:317:6: warning: variable â€˜rx_ctlâ€™ set but not used
[-Wunused-but-set-variable]
usb.c: In function â€˜usb_parse_configâ€™:
usb.c:331:17: warning: variable â€˜châ€™ set but not used
[-Wunused-but-set-variable]
usb.c: In function â€˜usb_hub_port_connect_changeâ€™:
usb.c:1123:29: warning: variable â€˜portchangeâ€™ set but not used
[-Wunused-but-set-variable]
usb.c: In function â€˜usb_hub_configureâ€™:
usb.c:1183:25: warning: variable â€˜hubstsâ€™ set but not used
[-Wunused-but-set-variable]
usb_storage.c: In function â€˜usb_stor_CB_resetâ€™:
usb_storage.c:466:6: warning: variable â€˜resultâ€™ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut &lt;marek.vasut@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>disk/part.c: Make features optional</title>
<updated>2011-07-26T12:10:14+00:00</updated>
<author>
<name>Matthew McClintock</name>
<email>msm@freescale.com</email>
</author>
<published>2011-05-24T05:31:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=df3fc52608daa1e10332f59cd2f226ba400d1c98'/>
<id>df3fc52608daa1e10332f59cd2f226ba400d1c98</id>
<content type='text'>
If we don't want to build support for any partition types we can now
add #undef CONFIG_PARTITIONS in a board config file to keep this from
being compiled in. Otherwise boards assume this is compiled in by
default

Signed-off-by: Matthew McClintock &lt;msm@freescale.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we don't want to build support for any partition types we can now
add #undef CONFIG_PARTITIONS in a board config file to keep this from
being compiled in. Otherwise boards assume this is compiled in by
default

Signed-off-by: Matthew McClintock &lt;msm@freescale.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix misc spelling errors found by lintian</title>
<updated>2011-04-12T20:58:31+00:00</updated>
<author>
<name>LoÃ¯c Minier</name>
<email>loic.minier@linaro.org</email>
</author>
<published>2011-02-03T21:04:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6052cbab40e927f94bcb034f1b4c76a18d6729e1'/>
<id>6052cbab40e927f94bcb034f1b4c76a18d6729e1</id>
<content type='text'>
Signed-off-by: Loïc Minier &lt;loic.minier@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Loïc Minier &lt;loic.minier@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unnecessary reset in usb_stor_get_info</title>
<updated>2011-04-02T07:38:24+00:00</updated>
<author>
<name>Erik Hansen</name>
<email>erik@makarta.com</email>
</author>
<published>2011-03-24T14:06:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=56887e27aee57db866a877e60a9141caa32d4636'/>
<id>56887e27aee57db866a877e60a9141caa32d4636</id>
<content type='text'>
The reset request in usb_stor_get_info is causing issues with some usb
sticks. Some of these sticks vendor_id/product_id have been hardcoded to
not reset but better is to remove the reset altogether. It is not needed.

Signed-off-by: Erik Hansen &lt;erik@makarta.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The reset request in usb_stor_get_info is causing issues with some usb
sticks. Some of these sticks vendor_id/product_id have been hardcoded to
not reset but better is to remove the reset altogether. It is not needed.

Signed-off-by: Erik Hansen &lt;erik@makarta.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb_storage: constify us_direction lookup table</title>
<updated>2010-10-22T19:41:46+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2010-10-20T11:16:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2ff12285426b02dd7e13f2cb2fda53800dce741c'/>
<id>2ff12285426b02dd7e13f2cb2fda53800dce741c</id>
<content type='text'>
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
