Skip to contentSkip to conversation

net: add Xilinx ll_temac device driver

PATCH Grant Likely 1 participant 1 message Apr 23, 2009 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

On Wed, Apr 22, 2009 at 9:37 PM, Grant Likely <[email protected]> w= rote:

Quoted 11 lines
Quoted 5 lines · Graeme Smecher

Hi Grant,

I'm not sure if you've caught this yet, but there's a typo in drivers/net/xilinx_temac.c. The TX and RX ISRs (ll_temac_tx_irq and ll_temac_rx_irq) take two arguments, but...

Thanks Graeme. =A0As you can tell, I haven't actually used CONFIG_NET_POLL_CONTROLLER since I refactored this driver. =A0I'll fix this in the next version.

And BTW, don't forget to CC the mailing list when replying.

g.

Quoted 29 lines
Quoted 20 lines
Quoted 7 lines
(quoted diff) +6 -0
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void
+temac_poll_controller(struct net_device *ndev)
+{
+ =A0 =A0 struct temac_local *lp =3D netdev_priv(ndev);
+

Review

Quoted 10 lines
(quoted diff) +10 -0
+ =A0 =A0 disable_irq(lp->tx_irq);
+ =A0 =A0 disable_irq(lp->rx_irq);
+
+ =A0 =A0 ll_temac_rx_irq(lp->tx_irq, lp, 0);
+ =A0 =A0 ll_temac_tx_irq(lp->rx_irq, lp, 0);
+
+ =A0 =A0 enable_irq(lp->tx_irq);
+ =A0 =A0 enable_irq(lp->rx_irq);
+}
+#endif

they're called here with three for some reason.

Quoted 6 lines

Thanks for the driver! I'm developing for the Virtex-4 FX16, and I'll let you know if I run into any problems there.

best,
Graeme

Quoted 4 lines

--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.