Skip to content

Commit 68f7289

Browse files
committed
Merge branch 'master' of git://git.denx.de/u-boot-usb
2 parents 2f6b470 + 57de41e commit 68f7289

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

drivers/usb/host/ehci-fsl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ int ehci_hcd_init(int index, enum usb_init_type init,
6565
mdelay(5);
6666
}
6767
memset(current_usb_controller, '\0', 5);
68-
snprintf(current_usb_controller, 4, "usb%d", index+1);
68+
snprintf(current_usb_controller, sizeof(current_usb_controller),
69+
"usb%d", index+1);
6970

7071
switch (index) {
7172
case 0:

drivers/usb/host/ehci-mx6.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,9 @@ struct usbnc_regs {
194194
u32 reserve1[10];
195195
u32 phy_cfg1;
196196
u32 phy_cfg2;
197+
u32 reserve2;
197198
u32 phy_status;
198-
u32 reserve2[4];
199+
u32 reserve3[4];
199200
u32 adp_cfg1;
200201
u32 adp_cfg2;
201202
u32 adp_status;
@@ -207,8 +208,11 @@ static void usb_power_config(int index)
207208
(0x10000 * index) + USBNC_OFFSET);
208209
void __iomem *phy_cfg2 = (void __iomem *)(&usbnc->phy_cfg2);
209210

210-
/* Enable usb_otg_id detection */
211-
setbits_le32(phy_cfg2, USBNC_PHYCFG2_ACAENB);
211+
/*
212+
* Clear the ACAENB to enable usb_otg_id detection,
213+
* otherwise it is the ACA detection enabled.
214+
*/
215+
clrbits_le32(phy_cfg2, USBNC_PHYCFG2_ACAENB);
212216
}
213217

214218
int usb_phy_mode(int port)

0 commit comments

Comments
 (0)