diff options
author | David S. Miller <davem@davemloft.net> | 2013-05-24 19:48:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-24 19:48:28 -0400 |
commit | e6ff4c75f9095f61b3a66c2a78e47b62864022dd (patch) | |
tree | 425ea9463cbec0b1975b8a33d9a56817143055d0 /drivers/net/ethernet/freescale | |
parent | ee9c799c231324de681eb21e06d8bf4842768b75 (diff) | |
parent | 0e255f1c0c9add2f0c920240ac4cadc28ae274c3 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Merge net into net-next because some upcoming net-next changes
build on top of bug fixes that went into net.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/fec_main.c | 14 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar_ptp.c | 1 |
2 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 6b5dc58c56d8..0936b26b5e1e 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c | |||
@@ -108,7 +108,7 @@ static struct platform_device_id fec_devtype[] = { | |||
108 | .driver_data = FEC_QUIRK_ENET_MAC | FEC_QUIRK_HAS_GBIT | | 108 | .driver_data = FEC_QUIRK_ENET_MAC | FEC_QUIRK_HAS_GBIT | |
109 | FEC_QUIRK_HAS_BUFDESC_EX | FEC_QUIRK_HAS_CSUM, | 109 | FEC_QUIRK_HAS_BUFDESC_EX | FEC_QUIRK_HAS_CSUM, |
110 | }, { | 110 | }, { |
111 | .name = "mvf-fec", | 111 | .name = "mvf600-fec", |
112 | .driver_data = FEC_QUIRK_ENET_MAC, | 112 | .driver_data = FEC_QUIRK_ENET_MAC, |
113 | }, { | 113 | }, { |
114 | /* sentinel */ | 114 | /* sentinel */ |
@@ -121,7 +121,7 @@ enum imx_fec_type { | |||
121 | IMX27_FEC, /* runs on i.mx27/35/51 */ | 121 | IMX27_FEC, /* runs on i.mx27/35/51 */ |
122 | IMX28_FEC, | 122 | IMX28_FEC, |
123 | IMX6Q_FEC, | 123 | IMX6Q_FEC, |
124 | MVF_FEC, | 124 | MVF600_FEC, |
125 | }; | 125 | }; |
126 | 126 | ||
127 | static const struct of_device_id fec_dt_ids[] = { | 127 | static const struct of_device_id fec_dt_ids[] = { |
@@ -129,7 +129,7 @@ static const struct of_device_id fec_dt_ids[] = { | |||
129 | { .compatible = "fsl,imx27-fec", .data = &fec_devtype[IMX27_FEC], }, | 129 | { .compatible = "fsl,imx27-fec", .data = &fec_devtype[IMX27_FEC], }, |
130 | { .compatible = "fsl,imx28-fec", .data = &fec_devtype[IMX28_FEC], }, | 130 | { .compatible = "fsl,imx28-fec", .data = &fec_devtype[IMX28_FEC], }, |
131 | { .compatible = "fsl,imx6q-fec", .data = &fec_devtype[IMX6Q_FEC], }, | 131 | { .compatible = "fsl,imx6q-fec", .data = &fec_devtype[IMX6Q_FEC], }, |
132 | { .compatible = "fsl,mvf-fec", .data = &fec_devtype[MVF_FEC], }, | 132 | { .compatible = "fsl,mvf600-fec", .data = &fec_devtype[MVF600_FEC], }, |
133 | { /* sentinel */ } | 133 | { /* sentinel */ } |
134 | }; | 134 | }; |
135 | MODULE_DEVICE_TABLE(of, fec_dt_ids); | 135 | MODULE_DEVICE_TABLE(of, fec_dt_ids); |
@@ -450,7 +450,7 @@ fec_restart(struct net_device *ndev, int duplex) | |||
450 | netif_device_detach(ndev); | 450 | netif_device_detach(ndev); |
451 | napi_disable(&fep->napi); | 451 | napi_disable(&fep->napi); |
452 | netif_stop_queue(ndev); | 452 | netif_stop_queue(ndev); |
453 | netif_tx_lock(ndev); | 453 | netif_tx_lock_bh(ndev); |
454 | } | 454 | } |
455 | 455 | ||
456 | /* Whack a reset. We should wait for this. */ | 456 | /* Whack a reset. We should wait for this. */ |
@@ -615,10 +615,10 @@ fec_restart(struct net_device *ndev, int duplex) | |||
615 | writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK); | 615 | writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK); |
616 | 616 | ||
617 | if (netif_running(ndev)) { | 617 | if (netif_running(ndev)) { |
618 | netif_device_attach(ndev); | 618 | netif_tx_unlock_bh(ndev); |
619 | napi_enable(&fep->napi); | ||
620 | netif_wake_queue(ndev); | 619 | netif_wake_queue(ndev); |
621 | netif_tx_unlock(ndev); | 620 | napi_enable(&fep->napi); |
621 | netif_device_attach(ndev); | ||
622 | } | 622 | } |
623 | } | 623 | } |
624 | 624 | ||
diff --git a/drivers/net/ethernet/freescale/gianfar_ptp.c b/drivers/net/ethernet/freescale/gianfar_ptp.c index 576e4b858fce..083ea2b4d20a 100644 --- a/drivers/net/ethernet/freescale/gianfar_ptp.c +++ b/drivers/net/ethernet/freescale/gianfar_ptp.c | |||
@@ -524,6 +524,7 @@ static int gianfar_ptp_probe(struct platform_device *dev) | |||
524 | return 0; | 524 | return 0; |
525 | 525 | ||
526 | no_clock: | 526 | no_clock: |
527 | iounmap(etsects->regs); | ||
527 | no_ioremap: | 528 | no_ioremap: |
528 | release_resource(etsects->rsrc); | 529 | release_resource(etsects->rsrc); |
529 | no_resource: | 530 | no_resource: |