Re: [PATCH 3/4] net: ti: am65-cpsw-nuss: Add switchdev support

2020-12-03 Thread Vignesh Raghavendra
On 11/30/20 10:50 PM, Andrew Lunn wrote: >> +static int am65_cpsw_port_stp_state_set(struct am65_cpsw_port *port, >> +struct switchdev_trans *trans, u8 state) >> +{ >> +struct am65_cpsw_common *cpsw = port->common; >> +u8 cpsw_state; >> +int ret =

Re: [PATCH 3/4] net: ti: am65-cpsw-nuss: Add switchdev support

2020-11-30 Thread Andrew Lunn
> +static int am65_cpsw_port_stp_state_set(struct am65_cpsw_port *port, > + struct switchdev_trans *trans, u8 state) > +{ > + struct am65_cpsw_common *cpsw = port->common; > + u8 cpsw_state; > + int ret = 0; > + > + if (switchdev_trans_ph_prepare(

[PATCH 3/4] net: ti: am65-cpsw-nuss: Add switchdev support

2020-11-30 Thread Vignesh Raghavendra
J721e, J7200 and AM64 have multi port switches which can work in multi mac mode and in switch mode. Add support for configuring this HW in switch mode using devlink and switchdev notifiers. Support is similar to existing CPSW switchdev implementation of TI's 32 bit platform like DRA7xx. To enable