mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
* Fix SDRAM timings for LITE5200 / IceCube board
* Handle Auti-MDIX / connection status for INCA-IP * Fix USB problems when attempting to read 0 bytes
This commit is contained in:
@@ -899,8 +899,12 @@ unsigned long usb_stor_read(int device, unsigned long blknr, unsigned long blkcn
|
||||
unsigned short smallblks;
|
||||
struct usb_device *dev;
|
||||
int retry,i;
|
||||
ccb *srb=&usb_ccb;
|
||||
device&=0xff;
|
||||
ccb *srb = &usb_ccb;
|
||||
|
||||
if (blkcnt == 0)
|
||||
return 0;
|
||||
|
||||
device &= 0xff;
|
||||
/* Setup device
|
||||
*/
|
||||
USB_STOR_PRINTF("\nusb_read: dev %d \n",device);
|
||||
|
Reference in New Issue
Block a user