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>
This commit is contained in:
@@ -108,7 +108,7 @@ static struct platform_device_id fec_devtype[] = {
|
||||
.driver_data = FEC_QUIRK_ENET_MAC | FEC_QUIRK_HAS_GBIT |
|
||||
FEC_QUIRK_HAS_BUFDESC_EX | FEC_QUIRK_HAS_CSUM,
|
||||
}, {
|
||||
.name = "mvf-fec",
|
||||
.name = "mvf600-fec",
|
||||
.driver_data = FEC_QUIRK_ENET_MAC,
|
||||
}, {
|
||||
/* sentinel */
|
||||
@@ -121,7 +121,7 @@ enum imx_fec_type {
|
||||
IMX27_FEC, /* runs on i.mx27/35/51 */
|
||||
IMX28_FEC,
|
||||
IMX6Q_FEC,
|
||||
MVF_FEC,
|
||||
MVF600_FEC,
|
||||
};
|
||||
|
||||
static const struct of_device_id fec_dt_ids[] = {
|
||||
@@ -129,7 +129,7 @@ static const struct of_device_id fec_dt_ids[] = {
|
||||
{ .compatible = "fsl,imx27-fec", .data = &fec_devtype[IMX27_FEC], },
|
||||
{ .compatible = "fsl,imx28-fec", .data = &fec_devtype[IMX28_FEC], },
|
||||
{ .compatible = "fsl,imx6q-fec", .data = &fec_devtype[IMX6Q_FEC], },
|
||||
{ .compatible = "fsl,mvf-fec", .data = &fec_devtype[MVF_FEC], },
|
||||
{ .compatible = "fsl,mvf600-fec", .data = &fec_devtype[MVF600_FEC], },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, fec_dt_ids);
|
||||
@@ -450,7 +450,7 @@ fec_restart(struct net_device *ndev, int duplex)
|
||||
netif_device_detach(ndev);
|
||||
napi_disable(&fep->napi);
|
||||
netif_stop_queue(ndev);
|
||||
netif_tx_lock(ndev);
|
||||
netif_tx_lock_bh(ndev);
|
||||
}
|
||||
|
||||
/* Whack a reset. We should wait for this. */
|
||||
@@ -615,10 +615,10 @@ fec_restart(struct net_device *ndev, int duplex)
|
||||
writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK);
|
||||
|
||||
if (netif_running(ndev)) {
|
||||
netif_device_attach(ndev);
|
||||
napi_enable(&fep->napi);
|
||||
netif_tx_unlock_bh(ndev);
|
||||
netif_wake_queue(ndev);
|
||||
netif_tx_unlock(ndev);
|
||||
napi_enable(&fep->napi);
|
||||
netif_device_attach(ndev);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user