ramips: ethernet: ralink: rewrite esw_rt3050 to support link states
authorAlexander Couzens <lynxis@fe80.eu>
Wed, 9 Jun 2021 21:46:35 +0000 (23:46 +0200)
committerAlexander Couzens <lynxis@fe80.eu>
Fri, 25 Jun 2021 10:30:20 +0000 (12:30 +0200)
commit8569bc5e0d1bdc4b252bf3f4e7c893ea2e17c98f
treed5a3ad202bed5ede3c03bcf510f3229012041f77
parent74c58c9d5844d52e23a7fc52f4d45a5fedd06a2b
ramips: ethernet: ralink: rewrite esw_rt3050 to support link states

Ensure the esw is initialized before the ethernet device is sending
packets. Further implement carrier detection similar to mt7620.
If any port has a link, the ethernet device will detect a carrier.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.h
target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt3050.c