kernel: support for RTL8367C/S switch
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Wed, 14 Feb 2024 19:27:23 +0000 (20:27 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 24 Feb 2024 18:20:52 +0000 (19:20 +0100)
commit4b81eda3c1a9b9ef32640df9402e3650fb48d98b
treeed53e403e400c1b4ee9da0f93f9f49e65d74e351
parentdca146cc778cdab2858b46e4ef3a3073fd02ab50
kernel: support for RTL8367C/S switch

From driver point of view no differance between rtl8367b and rtl8367s
if it connected through EXT2 (rgmii only).
So this trivial patch add some identification and initialization only.
SGMII/HSGMII mode for EXT1 is not implemented for the sake of patch
clairity.

Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru>
[Fix code format]
Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
[add flags to separate chip_num/chip_id detection; drop error print in
rtl8367b_init_regs, drop unnecessary info prints, code style fixes]
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
[rebase; use MII macros]
Signed-off-by: Gaspare Bruno <gaspare@anlix.io>
[code optimization]
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
target/linux/generic/files/drivers/net/phy/rtl8367b.c