]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: microchip: ksz9477: cleanup the ksz9477_switch_detect
authorArun Ramadoss <arun.ramadoss@microchip.com>
Fri, 17 Jun 2022 08:42:45 +0000 (14:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 15:18:04 +0000 (17:18 +0200)
commit422e808ba8a58b76e16dc7083e002d3cd7ffc9db
treef445e31c1c6fa32f4a83d3f67b53b0f42af1bada
parenteaa08e3c5abd1701c888438ae07d8edbce077642
net: dsa: microchip: ksz9477: cleanup the ksz9477_switch_detect

[ Upstream commit 27faa0aa85f6696d411bbbebaed9f0f723c2a175 ]

The ksz9477_switch_detect performs the detecting the chip id from the
location 0x00 and also check gigabit compatibility check & number of
ports based on the register global_options0. To prepare the common ksz
switch detect function, routine other than chip id read is moved to
ksz9477_switch_init.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/microchip/ksz9477.c