Re: [PATCH 3/4 v2] net: mvmdio: enhance driver to support SMI error/done interrupts

2013-03-15 Thread Russell King - ARM Linux
On Thu, Mar 14, 2013 at 07:08:34PM +0100, Florian Fainelli wrote: > + if (dev->err_interrupt == NO_IRQ) { ... > + init_waitqueue_head(>smi_busy_wait); > + > + dev->err_interrupt = platform_get_irq(pdev, 0); > + if (dev->err_interrupt != -ENXIO) { ... > + } else > +

Re: [PATCH 3/4 v2] net: mvmdio: enhance driver to support SMI error/done interrupts

2013-03-15 Thread Russell King - ARM Linux
On Thu, Mar 14, 2013 at 07:08:34PM +0100, Florian Fainelli wrote: + if (dev-err_interrupt == NO_IRQ) { ... + init_waitqueue_head(dev-smi_busy_wait); + + dev-err_interrupt = platform_get_irq(pdev, 0); + if (dev-err_interrupt != -ENXIO) { ... + } else +

[PATCH 3/4 v2] net: mvmdio: enhance driver to support SMI error/done interrupts

2013-03-14 Thread Florian Fainelli
This patch enhances the "mvmdio" to support a SMI error/done interrupt line which can be used along with a wait queue instead of doing busy-waiting on the registers. This is a feature which is available in the mv643xx_eth SMI code and thus reduces again the gap between the two. Signed-off-by:

[PATCH 3/4 v2] net: mvmdio: enhance driver to support SMI error/done interrupts

2013-03-14 Thread Florian Fainelli
This patch enhances the mvmdio to support a SMI error/done interrupt line which can be used along with a wait queue instead of doing busy-waiting on the registers. This is a feature which is available in the mv643xx_eth SMI code and thus reduces again the gap between the two. Signed-off-by: