net: dsa: mt7530: move setting ssc_delta to PHY_INTERFACE_MODE_TRGMII case
authorArınç ÜNAL <arinc.unal@arinc9.com>
Mon, 20 Mar 2023 19:05:20 +0000 (22:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:47:49 +0000 (12:47 +0200)
commitb433fbf176036ef8e76be9faa0e0dfbe105f5715
tree096fbdc5d780534257987562e3474b86e2c4cfc4
parent01c727402ddc2473d95543d3ac335e46727de2c0
net: dsa: mt7530: move setting ssc_delta to PHY_INTERFACE_MODE_TRGMII case

[ Upstream commit 407b508bdd70b6848993843d96ed49ac4108fb52 ]

Move setting the ssc_delta variable to under the PHY_INTERFACE_MODE_TRGMII
case as it's only needed when trgmii is used.

Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 switch")
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Link: https://lore.kernel.org/r/20230320190520.124513-3-arinc.unal@arinc9.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/mt7530.c