[PATCH 1/2] net: dsa: ksz9477: fix confusing message detecting KSZ9893 compatible

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Jan 10 05:38:16 PST 2023


I have a KSZ8563RNXI-TR, which while it works, barebox reports as
"Found KSZ9893", which is a bit confusing. For non-KSZ9893, barebox
reports "Found KSZ9477 or compatible", so do likewise for KSZ9893.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/net/ksz9477.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ksz9477.c b/drivers/net/ksz9477.c
index b3859e13bf13..0629efbd7d02 100644
--- a/drivers/net/ksz9477.c
+++ b/drivers/net/ksz9477.c
@@ -82,7 +82,7 @@ static int ksz9477_switch_detect(struct ksz_switch *priv)
 	id_lo = (u8)(id32 >> 8);
 	if ((id_lo & 0xf) == 3) {
 		/* Chip is from KSZ9893 design. */
-		dev_info(priv->dev, "Found KSZ9893\n");
+		dev_info(priv->dev, "Found KSZ9893 or compatible\n");
 		priv->features |= IS_9893;
 		priv->features &= ~KSZ9477_PHY_ERRATA;
 
-- 
2.30.2




More information about the barebox mailing list