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)
commiteb0571932314e6f4f0cb4e05c590fe78c01acbd7
tree881c8c1a1d7f29299499e78ffd5cf0a8f105caa3
parent737ca352569e744bf753b4522a6f91b120a734f1
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