projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fsl/usb: Limit phy_type comparison to first four characters
[platform/kernel/u-boot.git]
/
drivers
/
usb
/
host
/
ehci-fsl.c
diff --git
a/drivers/usb/host/ehci-fsl.c
b/drivers/usb/host/ehci-fsl.c
index
45e5d6a
..
1ca7cf5
100644
(file)
--- a/
drivers/usb/host/ehci-fsl.c
+++ b/
drivers/usb/host/ehci-fsl.c
@@
-86,7
+86,7
@@
int ehci_hcd_init(int index, enum usb_init_type init,
#endif
}
- if (!str
cmp(phy_type, "utmi"
)) {
+ if (!str
ncmp(phy_type, "utmi", 4
)) {
#if defined(CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY)
setbits_be32(&ehci->control, PHY_CLK_SEL_UTMI);
setbits_be32(&ehci->control, UTMI_PHY_EN);