[PATCH 8/8] ax88796: use interrupt status callback for XSurf100 driver

2015-11-16 Thread Michael Schmitz
Make use of the ax88796 platform data interupt status hook in the m68k Amiga XSurf100 driver. The XSurf100 interrupt is shared with other Amiga hardware interrupts so ei_interrupt would otherwise get called a lot without need. Signed-off-by: Michael Karcher Signed-off-by: Michael Schmitz --- dr

[PATCH 6/8] ax88796: add interrupt status callback to platform data

2015-11-16 Thread Michael Schmitz
To be able to tell the ax88796 driver whether it is sensible to enter the 8390 interrupt handler, an "is this interrupt caused by the 88796" callback has been added to the ax_plat_data structure (with NULL being compatible to the previous behaviour). Signed-off-by: Michael Karcher Signed-off-by:

[PATCH 5/8] ax88796: Add block_input/output hooks to ax_plat_data

2015-11-16 Thread Michael Schmitz
Add platform specific hooks for block transfer reads/writes of packet buffer data, superseding the default provided ax_block_input/output. Currently used for m68k Amiga XSurf100. Signed-off-by: Michael Karcher Signed-off-by: Michael Schmitz --- drivers/net/ethernet/8390/ax88796.c | 10 +++

[PATCH 7/8] ax88796: Add X-Surf 100 zorro driver providing an ax88796 platform device

2015-11-16 Thread Michael Schmitz
Add platform device driver to populate the ax88796 platform data from information provided by the XSurf100 zorro device driver. This driver will have to be loaded before loading the ax88796 module, or compiled as built-in. Signed-off-by: Michael Karcher Signed-off-by: Michael Schmitz --- driver

[PATCH 1/8] aX88796: Fix MAC address reading

2015-11-16 Thread Michael Schmitz
From: Michael Karcher To read the MAC address from the (virtual) SAprom. the remote DMA unit needs to be set up like for every other process access to card-local memory. Signed-off-by: Michael Karcher Signed-off-by: Michael Schmitz --- drivers/net/ethernet/8390/ax88796.c |6 ++ 1 file

[PATCH 2/8] ax88796: Attach MII bus only when open

2015-11-16 Thread Michael Schmitz
From: Michael Karcher This is needed to be able to unload the module, as the module is busy while the MII bus is attached. Signed-off-by: Michael Karcher Signed-off-by: Michael Schmitz --- drivers/net/ethernet/8390/ax88796.c | 14 ++ 1 files changed, 10 insertions(+), 4 deletion

[PATCH 3/8] ax88796: Move mii support functions upwards to prevent need of forward declaration

2015-11-16 Thread Michael Schmitz
From: Michael Karcher This commit contains nothing but moving of code lines inside ax88796.c Signed-off-by: Michael Karcher Signed-off-by: Michael Schmitz --- drivers/net/ethernet/8390/ax88796.c | 192 +-- 1 files changed, 95 insertions(+), 97 deletions(-) di

[PATCH 0/8] Amiga XSurf100 patch series, to be submitted to linux-net

2015-11-16 Thread Michael Schmitz
Geert, just as a heads-up, I've been working on getting this series ready for submission to -net. The first six patches will need to be taken through -net, the last two are m68k specific and might be equally well placed in arch/m68k/amiga for preference. Patch 6 and 8 are optional - the interrupt

[PATCH 4/8] ax88796: Do not free IRQ that did not get requested

2015-11-16 Thread Michael Schmitz
From: Michael Karcher The irq is request on netdev open time, so do not free it in probe if something fails. Also do not free the irq in remove, as it got already freed in close Signed-off-by: Michael Karcher Signed-off-by: Michael Schmitz --- drivers/net/ethernet/8390/ax88796.c |6 +-

Re: Using sbuild with qemu-user-static - was: Re: TODO list for Debian/Linux m68k

2015-11-16 Thread Laurent Vivier
Le 16/11/2015 14:43, John Paul Adrian Glaubitz a écrit : > On 11/15/2015 07:49 PM, Laurent Vivier wrote: >> In GitHub repo (https://github.com/vivier/qemu-m68k), on branch >> 680x0-v2.4.0, you can find a LXC script to create debian container: >> (...) > > Looks interesting. I have never dealt wi

Re: Using sbuild with qemu-user-static - was: Re: TODO list for Debian/Linux m68k

2015-11-16 Thread John Paul Adrian Glaubitz
On 11/15/2015 07:49 PM, Laurent Vivier wrote: > In GitHub repo (https://github.com/vivier/qemu-m68k), on branch > 680x0-v2.4.0, you can find a LXC script to create debian container: > (...) Looks interesting. I have never dealt with LXC, but I'll have a look. >>> [1] https://wiki.debian.org/QEMU