On Fri, Dec 02, 2016 at 02:41:08PM -0500, Vivien Didelot wrote:
> Hi Andrew,
> 
> Andrew Lunn <and...@lunn.ch> writes:
> 
> > @@ -3749,6 +3756,7 @@ static const struct mv88e6xxx_info mv88e6xxx_table[] 
> > = {
> >             .global1_addr = 0x1b,
> >             .age_time_coeff = 15000,
> >             .g1_irqs = 9,
> > +           .tag_protocol = DSA_TAG_PROTO_EDSA,
> >             .flags = MV88E6XXX_FLAGS_FAMILY_6352,
> >             .ops = &mv88e6172_ops,
> >     },
> 
> Since some chips support several protocols, we will have to turn
> tag_protocol into a bitmask and introduce something like:

Why? We have made an implementation choice, this chip will be used in
this way. There is no strong reason to use it the other way. There is
a strong reason not to allow it to be configured, because it makes the
driver more complex and the DSA layer more complex, and no other
driver requires this complexity.

KISS.

        Andrew

Reply via email to