Re: [Patch net-next] net: dsa: ksz: added the generic port_stp_state_set function

From: Florian Fainelli
Date: Sun Apr 24 2022 - 19:01:45 EST




On 4/24/2022 4:28 AM, Arun Ramadoss wrote:
The ksz8795 and ksz9477 uses the same algorithm for the
port_stp_state_set function except the register address is different. So
moved the algorithm to the ksz_common.c and used the dev_ops for
register read and write. This function can also used for the lan937x
part. Hence making it generic for all the parts.

Signed-off-by: Arun Ramadoss <arun.ramadoss@xxxxxxxxxxxxx>

Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian