Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18de7ba9 authored by Sunil Goutham's avatar Sunil Goutham Committed by David S. Miller
Browse files

net: thunderx: Fix LMAC mode debug prints for QSGMII mode



When BGX/LMACs are in QSGMII mode, for some LMACs, mode info is
not being printed. This patch will fix that. With changes already
done to not do any sort of serdes 2 lane mapping config calculation
in kernel driver, we can get rid of this logic.

Signed-off-by: default avatarSunil Goutham <sgoutham@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 83abb7d7
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -1011,12 +1011,6 @@ static void bgx_print_qlm_mode(struct bgx *bgx, u8 lmacid)
			dev_info(dev, "%s: 40G_KR4\n", (char *)str);
			dev_info(dev, "%s: 40G_KR4\n", (char *)str);
		break;
		break;
	case BGX_MODE_QSGMII:
	case BGX_MODE_QSGMII:
		if ((lmacid == 0) &&
		    (bgx_get_lane2sds_cfg(bgx, lmac) != lmacid))
			return;
		if ((lmacid == 2) &&
		    (bgx_get_lane2sds_cfg(bgx, lmac) == lmacid))
			return;
		dev_info(dev, "%s: QSGMII\n", (char *)str);
		dev_info(dev, "%s: QSGMII\n", (char *)str);
		break;
		break;
	case BGX_MODE_RGMII:
	case BGX_MODE_RGMII: