aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/ti/cpsw.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
index 660c716e7eb6..c3cba46fac9d 100644
--- a/drivers/net/ethernet/ti/cpsw.c
+++ b/drivers/net/ethernet/ti/cpsw.c
@@ -2004,6 +2004,18 @@ static int cpsw_ndo_setup_tc(struct net_device *ndev, enum tc_setup_type type,
2004 } 2004 }
2005} 2005}
2006 2006
2007#ifdef CONFIG_NET_POLL_CONTROLLER
2008static void cpsw_ndo_poll_controller(struct net_device *ndev)
2009{
2010 struct cpsw_common *cpsw = ndev_to_cpsw(ndev);
2011
2012 cpsw_intr_disable(cpsw);
2013 cpsw_rx_interrupt(cpsw->irqs_table[0], cpsw);
2014 cpsw_tx_interrupt(cpsw->irqs_table[1], cpsw);
2015 cpsw_intr_enable(cpsw);
2016}
2017#endif
2018
2007static const struct net_device_ops cpsw_netdev_ops = { 2019static const struct net_device_ops cpsw_netdev_ops = {
2008 .ndo_open = cpsw_ndo_open, 2020 .ndo_open = cpsw_ndo_open,
2009 .ndo_stop = cpsw_ndo_stop, 2021 .ndo_stop = cpsw_ndo_stop,