Hi Andrew, Andrew Lunn <and...@lunn.ch> writes:
>> + if (val & GLOBAL_VTU_VID_PAGE) >> + entry->vid |= 0x1000; > > I'm undecided myself, so i will just bring it up for discussion. > > Maybe it would be more readable to say: > > entry->vid += 4096; > > ??? VID values are usually 12-bit. Marvell uses 13-bit VID values for the 88E6390 family. Because Marvell is Marvell, the 13th bit of the VID is the 14th bit of the VID register. It feels natural to me to stay bitwise here when handling VID values. That's not a big deal though, one can make it clearer later if needed. Thanks, Vivien