]> git.baikalelectronics.ru Git - kernel.git/commit
net: ks8851: Factor out bus lock handling
authorMarek Vasut <marex@denx.de>
Thu, 28 May 2020 22:21:37 +0000 (00:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:30:04 +0000 (16:30 -0700)
commita38219f101a1f7efc095d16995866a2425e1e4d2
tree655f589675051af741a3ea6661bf1ce61b1df1a3
parent2dd97c49bdea637b24a296ff01e6f6c93dea86e2
net: ks8851: Factor out bus lock handling

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: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Marek 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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851.c