[14/14] net: add Xilinx ll_temac device driver

Grant Likely grant.likely at secretlab.ca
Thu Apr 23 13:38:31 EST 2009


On Wed, Apr 22, 2009 at 9:37 PM, Grant Likely <grant.likely at secretlab.ca> wrote:
> On Wed, Apr 22, 2009 at 5:12 PM, Graeme Smecher
> <graeme.smecher at mail.mcgill.ca> wrote:
>> 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.  As you can tell, I haven't actually used
> CONFIG_NET_POLL_CONTROLLER since I refactored this driver.  I'll fix
> this in the next version.

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

g.

>>
>>> +#ifdef CONFIG_NET_POLL_CONTROLLER
>>> +static void
>>> +temac_poll_controller(struct net_device *ndev)
>>> +{
>>> +     struct temac_local *lp = netdev_priv(ndev);
>>> +
>>> +     disable_irq(lp->tx_irq);
>>> +     disable_irq(lp->rx_irq);
>>> +
>>> +     ll_temac_rx_irq(lp->tx_irq, lp, 0);
>>> +     ll_temac_tx_irq(lp->rx_irq, lp, 0);
>>> +
>>> +     enable_irq(lp->tx_irq);
>>> +     enable_irq(lp->rx_irq);
>>> +}
>>> +#endif
>>
>> they're called here with three for some reason.
>>
>> 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
>>
>
>
>
> --
> Grant Likely, B.Sc., P.Eng.
> Secret Lab Technologies Ltd.
>



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



More information about the Linuxppc-dev mailing list