diff options
author | Wolfgang Denk <wd@denx.de> | 2010-06-30 01:02:11 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-06-30 01:02:11 +0200 |
commit | 0a9463e93537a68e7246714f43fb69eca0b7b214 (patch) | |
tree | cec01ecc6502a65cbbbda406dfac23b93c093899 /drivers | |
parent | 955ea6fc2749a4305395758fc797cf8c11dcbed7 (diff) | |
parent | bde3892edac99bf974e5b9809a112a6ce530be03 (diff) | |
download | u-boot-imx-0a9463e93537a68e7246714f43fb69eca0b7b214.zip u-boot-imx-0a9463e93537a68e7246714f43fb69eca0b7b214.tar.gz u-boot-imx-0a9463e93537a68e7246714f43fb69eca0b7b214.tar.bz2 |
Merge branch 'master' into next
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/tsec.c | 6 | ||||
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 3e4c3bd..5fa6f61 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -281,12 +281,16 @@ static uint tsec_local_mdio_read(volatile tsec_mdio_t *phyregs, | TBIANA_FULL_DUPLEX \ ) -/* Force the TBI PHY into 1000Mbps full duplex when in SGMII mode */ +/* By default force the TBI PHY into 1000Mbps full duplex when in SGMII mode */ +#ifndef CONFIG_TSEC_TBICR_SETTINGS #define TBICR_SETTINGS ( \ TBICR_PHY_RESET \ | TBICR_FULL_DUPLEX \ | TBICR_SPEED1_SET \ ) +#else +#define TBICR_SETTINGS CONFIG_TSEC_TBICR_SETTINGS +#endif /* CONFIG_TSEC_TBICR_SETTINGS */ /* Configure the TBI for SGMII operation */ static void tsec_configure_serdes(struct tsec_private *priv) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 7784d92..37d056e 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -275,7 +275,7 @@ static void *ehci_alloc(size_t sz, size_t align) return NULL; } - memset(p, sz, 0); + memset(p, 0, sz); return p; } @@ -350,7 +350,6 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer, (dev->parent->devnum << 16) | (0 << 8) | (0 << 0); qh->qh_endpt2 = cpu_to_hc32(endpt); qh->qh_overlay.qt_next = cpu_to_hc32(QT_NEXT_TERMINATE); - qh->qh_overlay.qt_altnext = cpu_to_hc32(QT_NEXT_TERMINATE); td = NULL; tdp = &qh->qh_overlay.qt_next; |