octeontx2-af: cn10k: Do not enable RPM loopback for LPC interfaces
authorGeetha sowjanya <gakula@marvell.com>
Fri, 21 Jan 2022 06:34:45 +0000 (12:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Feb 2022 16:27:11 +0000 (17:27 +0100)
commit689620df208088281e627c0d9f64fc532265dff8
tree64a8e80d384c541a0f0e807a7f8406eb5c98151a
parent35dd0b7e5a13dec6a7623c8db7c57c59f9110ffb
octeontx2-af: cn10k: Do not enable RPM loopback for LPC interfaces

[ Upstream commit df66b6ebc5dcf7253e35a640b9ec4add54195c25 ]

Internal looback is not supported to low rate LPCS interface like
SGMII/QSGMII. Hence don't allow to enable for such interfaces.

Fixes: 3ad3f8f93c81 ("octeontx2-af: cn10k: MAC internal loopback support")
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rpm.c