]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio: aspeed: Introduce read write function for c22 and c45
authorPotin Lai <potin.lai@quantatw.com>
Thu, 7 Apr 2022 01:17:37 +0000 (09:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2022 11:20:52 +0000 (12:20 +0100)
commite687cf68e827eb7c156a56936e24bf2d09c1e371
tree881c8c1a1d7f29299499e78ffd5cf0a8f105caa3
parentce535841f7dacbc67fac40a3312657d0be7a99df
net: mdio: aspeed: Introduce read write function for c22 and c45

Add following additional functions to move out the implementation from
aspeed_mdio_read() and aspeed_mdio_write().

c22:
 - aspeed_mdio_read_c22()
 - aspeed_mdio_write_c22()

c45:
 - aspeed_mdio_read_c45()
 - aspeed_mdio_write_c45()

Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mdio/mdio-aspeed.c