]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: macb: Perform zynqmp dynamic configuration only for SGMII interface
authorRadhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Thu, 2 Feb 2023 12:26:19 +0000 (17:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2023 18:11:44 +0000 (19:11 +0100)
commit9c6a896b8d40da37ac22ee2ef821b241698977f6
tree12c94c51fa7f021b8426b8461d128b8e123559f8
parentd974330c1d9915ae0940828df779fa8b0cfbb80c
net: macb: Perform zynqmp dynamic configuration only for SGMII interface

[ Upstream commit c9011b028e956c3b6baa6f131d9eec43e4e52020 ]

In zynqmp platforms where firmware supports dynamic SGMII configuration
but has other non-SGMII ethernet devices, it fails them with no packets
received at the RX interface.

To fix this behaviour perform SGMII dynamic configuration only
for the SGMII phy interface.

Fixes: 32cee7818111 ("net: macb: Add zynqmp SGMII dynamic configuration support")
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reported-by: Michal Simek <michal.simek@amd.com>
Tested-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/1675340779-27499-1-git-send-email-radhey.shyam.pandey@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/cadence/macb_main.c