mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-15 09:27:35 +00:00
Merge branch 'master' of git://git.denx.de/u-boot-usb
This commit is contained in:
commit
367c6651a8
1 changed files with 5 additions and 4 deletions
|
@ -55,7 +55,10 @@
|
|||
#include <asm/4xx_pci.h>
|
||||
#endif
|
||||
|
||||
#undef USB_DEBUG
|
||||
#ifdef DEBUG
|
||||
#define USB_DEBUG
|
||||
#define USB_HUB_DEBUG
|
||||
#endif
|
||||
|
||||
#ifdef USB_DEBUG
|
||||
#define USB_PRINTF(fmt, args...) printf(fmt , ##args)
|
||||
|
@ -960,8 +963,6 @@ void usb_scan_devices(void)
|
|||
* Probes device for being a hub and configurate it
|
||||
*/
|
||||
|
||||
#undef USB_HUB_DEBUG
|
||||
|
||||
#ifdef USB_HUB_DEBUG
|
||||
#define USB_HUB_PRINTF(fmt, args...) printf(fmt , ##args)
|
||||
#else
|
||||
|
@ -1220,7 +1221,7 @@ int usb_hub_configure(struct usb_device *dev)
|
|||
hub->desc.DeviceRemovable[i] = descriptor->DeviceRemovable[i];
|
||||
|
||||
for (i = 0; i < ((hub->desc.bNbrPorts + 1 + 7)/8); i++)
|
||||
hub->desc.DeviceRemovable[i] = descriptor->PortPowerCtrlMask[i];
|
||||
hub->desc.PortPowerCtrlMask[i] = descriptor->PortPowerCtrlMask[i];
|
||||
|
||||
dev->maxchild = descriptor->bNbrPorts;
|
||||
USB_HUB_PRINTF("%d ports detected\n", dev->maxchild);
|
||||
|
|
Loading…
Reference in a new issue