• Marek Vasut's avatar
    net: ks8851: Factor out bus lock handling · 22726020
    Marek Vasut authored
    Pull out bus access locking code into separate functions, this is done
    in preparation for unifying the driver with the parallel bus one. The
    parallel bus driver does not need heavy mutex locking of the bus and
    works better with spinlocks, hence prepare these locking functions to
    be overridden then.
    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>
    22726020
ks8851.c 39.7 KB