On 5/30/2020 4:51 AM, Vladimir Oltean wrote: > From: Vladimir Oltean <vladimir.olt...@nxp.com> > > Currently Felix and Ocelot share the same bit layout in these per-port > registers, but Seville does not. So we need reg_fields for that. > > Actually since these are per-port registers, we need to also specify the > number of ports, and register size per port, and use the regmap API for > multiple ports. > > Signed-off-by: Vladimir Oltean <vladimir.olt...@nxp.com> > --- > Changes in v2: > None. [snip] > /* Core: Enable port for frame transfer */ > - ocelot_write_rix(ocelot, QSYS_SWITCH_PORT_MODE_INGRESS_DROP_MODE | > - QSYS_SWITCH_PORT_MODE_SCH_NEXT_CFG(1) | > - QSYS_SWITCH_PORT_MODE_PORT_ENA, > - QSYS_SWITCH_PORT_MODE, port); > + ocelot_fields_write(ocelot, port, > + QSYS_SWITCH_PORT_MODE_INGRESS_DROP_MODE, 1); > + ocelot_fields_write(ocelot, port, > + QSYS_SWITCH_PORT_MODE_PORT_ENA, 1); I am a bit confused throughout this patch sometimes SCH_NEXT_CFG is set to 1, sometimes not, this makes it a bit harder to review the conversion, assuming this is fine: Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
- [PATCH v2 net-next 01/13] regmap: add helper for per-port... Vladimir Oltean
- [PATCH v2 net-next 03/13] net: mscc: ocelot: convert port... Vladimir Oltean
- Re: [PATCH v2 net-next 03/13] net: mscc: ocelot: con... Florian Fainelli
- [PATCH v2 net-next 04/13] soc/mscc: ocelot: add MII regis... Vladimir Oltean
- Re: [PATCH v2 net-next 04/13] soc/mscc: ocelot: add ... Florian Fainelli
- [PATCH v2 net-next 10/13] net: mscc: ocelot: extend water... Vladimir Oltean
- Re: [PATCH v2 net-next 10/13] net: mscc: ocelot: ext... Florian Fainelli
- [PATCH v2 net-next 08/13] net: mscc: ocelot: disable flow... Vladimir Oltean
- Re: [PATCH v2 net-next 08/13] net: mscc: ocelot: dis... Florian Fainelli
- [PATCH v2 net-next 05/13] net: mscc: ocelot: convert QSYS... Vladimir Oltean
- Re: [PATCH v2 net-next 05/13] net: mscc: ocelot: con... Florian Fainelli
- Re: [PATCH v2 net-next 05/13] net: mscc: ocelot:... Vladimir Oltean
- Re: [PATCH v2 net-next 05/13] net: mscc: oce... Florian Fainelli
- [PATCH v2 net-next 02/13] net: dsa: felix: set proper lin... Vladimir Oltean
- Re: [PATCH v2 net-next 02/13] net: dsa: felix: set p... Florian Fainelli
- [PATCH v2 net-next 06/13] net: dsa: felix: create a templ... Vladimir Oltean
- Re: [PATCH v2 net-next 06/13] net: dsa: felix: creat... Florian Fainelli
- Re: [PATCH v2 net-next 06/13] net: dsa: felix: c... Vladimir Oltean
- [PATCH v2 net-next 11/13] net: dsa: felix: support half-d... Vladimir Oltean
- Re: [PATCH v2 net-next 11/13] net: dsa: felix: suppo... Florian Fainelli
- [PATCH v2 net-next 09/13] net: mscc: ocelot: convert SYS_... Vladimir Oltean