SPEED_100 is not handled, leaving the MAC speed select unprogrammed
when a 100 Mbps link is used.

Add the required speed select (SS) encoding so the MAC is configured
according to the hardware specification for 100 Mbps operation.

Fixes: a5c7273771e8 ("net/axgbe: add phy programming APIs")
Cc: [email protected]

Signed-off-by: Ashok Kumar Natarajan <[email protected]>
---
 drivers/net/axgbe/axgbe_dev.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/axgbe/axgbe_dev.c b/drivers/net/axgbe/axgbe_dev.c
index 10a99aeac2..482d3d8062 100644
--- a/drivers/net/axgbe/axgbe_dev.c
+++ b/drivers/net/axgbe/axgbe_dev.c
@@ -303,6 +303,9 @@ static int axgbe_set_speed(struct axgbe_port *pdata, int 
speed)
        case SPEED_10:
                ss = 0x07;
                break;
+       case SPEED_100:
+               ss = 0x04;
+               break;
        case SPEED_1000:
                ss = 0x03;
                break;
-- 
2.34.1

Reply via email to