Re: [PATCH net-next] net: dsa: mv88e6xxx: rework port state setter

From: David Miller
Date: Thu Mar 10 2016 - 16:11:40 EST


From: Vivien Didelot <vivien.didelot@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 7 Mar 2016 18:24:17 -0500

> Apply a few non-functional changes on the port state setter:
>
> * add a dynamic debug message with state names to track changes
> * explicit states checking instead of assuming their numeric values
> * lock mutex only once when changing several port states
> * use bitmap macros to declare and access port_state_update_mask
>
> Signed-off-by: Vivien Didelot <vivien.didelot@xxxxxxxxxxxxxxxxxxxx>

Applied.