• Andrew Morton's avatar
    [PATCH] use datacs in smc91x driver · 52433c9b
    Andrew Morton authored
    From: Ian Campbell <icampbell@arcom.com>
    
    Below is a patch to support the second 32-bit DATACS chipselect in the
    smc91x driver to transfer data.  Support is enabled by adding a resource to
    the platform device named 'smc91x-data32'.
    
    My platform has a 16-bit chip select for the primary IO region and no DMA.
    I found that throughput went from roughly 50mbit/s to 80mbit/s.  I tested
    by throwing UDP packets at it using mgen (9000 packets/second with UDP
    payload of 1472 bytes is roughly 100mbit/s, I think) and counting the
    packets received in 60s, I then did the same for transmitting.  The
    measurements are very rough but the improvement seems fairly significant to
    me.
    
    Patch was compiled for lubbock and neponset and compiled and tested on my
    PXA platform.
    Signed-off-by: default avatarIan Campbell <icampbell@arcom.com>
    Signed-off-by: default avatarNicolas Pitre <nico@cam.org>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
    52433c9b
smc91x.c 58.9 KB