net: dsa: microchip: move tag_protocol to ksz_common

[ Upstream commit 534a0431e9 ]

This patch move the dsa hook get_tag_protocol to ksz_common file. And
the tag_protocol is returned based on the dev->chip_id.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Arun Ramadoss 2022-06-17 14:12:47 +05:30 • committed by Greg Kroah-Hartman
commit 23fcd52165
4 changed files with 28 additions and 25 deletions