summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/usb/usbmsc.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-04-30 16:46:12 +0000
committerStefan Reinauer <stepan@openbios.org>2009-04-30 16:46:12 +0000
commitd233f363c129dae2ba5fd7ac536cf92fb4c2dd6e (patch)
tree60d3123a957d313d583783a42cfda4b0621dce85 /payloads/libpayload/drivers/usb/usbmsc.c
parentb5fb0c5c4eda2329d848aedcf4f7e8b6dc8012b2 (diff)
downloadcoreboot-d233f363c129dae2ba5fd7ac536cf92fb4c2dd6e.tar.xz
Some driver fixes for libpayload:
- fix minor bug in serial driver. - latest USB stack fixes - fix dead store in options.c Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4239 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/drivers/usb/usbmsc.c')
-rw-r--r--payloads/libpayload/drivers/usb/usbmsc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/payloads/libpayload/drivers/usb/usbmsc.c b/payloads/libpayload/drivers/usb/usbmsc.c
index d9ffbd151e..ad4a10c146 100644
--- a/payloads/libpayload/drivers/usb/usbmsc.c
+++ b/payloads/libpayload/drivers/usb/usbmsc.c
@@ -299,6 +299,8 @@ read_capacity (usbdev_t *dev)
memset (&cb, 0, sizeof (cb));
cb.command = 0x25; // read capacity
u8 buf[8];
+
+ printf ("Reading capacity of mass storage device.\n");
int count = 0;
while ((count++ < 20)
&&
@@ -306,8 +308,8 @@ read_capacity (usbdev_t *dev)
(dev, cbw_direction_data_in, (u8 *) &cb, sizeof (cb), buf,
8) == 1));
if (count >= 20) {
- // still not successful, assume 2tb in 512byte sectors, which is just the same garbage as any other number, but probably reasonable.
- printf ("assuming 2TB in 512byte sectors as READ CAPACITY didn't answer.\n");
+ // still not successful, assume 2tb in 512byte sectors, which is just the same garbage as any other number, but probably more usable.
+ printf ("Assuming 2TB in 512byte sectors as READ CAPACITY didn't answer.\n");
MSC_INST (dev)->numblocks = 0xffffffff;
MSC_INST (dev)->blocksize = 512;
} else {