• Marek Vasut's avatar
    net: ks8851: Factor out TX work flush function · 144ad36c
    Marek Vasut authored
    While the SPI version of the KS8851 requires a TX worker thread to pump
    data via SPI, the parallel bus version can write data into the TX FIFO
    directly in .ndo_start_xmit, as the parallel bus access is much faster
    and does not sleep. Factor out this TX work flush part, so it can be
    overridden by the parallel bus driver.
    Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
    Signed-off-by: default avatarMarek Vasut <marex@denx.de>
    Cc: David S. Miller <davem@davemloft.net>
    Cc: Lukas Wunner <lukas@wunner.de>
    Cc: Petr Stetiar <ynezz@true.cz>
    Cc: YueHaibing <yuehaibing@huawei.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    144ad36c
ks8851.c 41 KB