]> git.baikalelectronics.ru Git - kernel.git/commit
net: ks8851: Implement register, FIFO, lock accessor callbacks
authorMarek Vasut <marex@denx.de>
Thu, 28 May 2020 22:21:43 +0000 (00:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:30:04 +0000 (16:30 -0700)
commit05c51cf7f91ec46d6aa51399b992392dceafb989
tree521340051dbf3eef3a4bd2eb04cebe5aed7bf391
parenta8f5f350766922e1115792c7779b8e653fc549f5
net: ks8851: Implement register, FIFO, lock accessor callbacks

The register and FIFO accessors are bus specific, so is locking.
Implement callbacks so that each variant of the KS8851 can implement
matching accessors and locking, and use the rest of the common code.

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