Re: [PATCH net-next 05/12] net: dsa: b53: Use a macro to define I/O operations
From: Vivien Didelot <hidden> Date: 2017-09-18 22:16:33
Hi Florian,
Florian Fainelli [off-list ref] writes:
Instead of repeating the same pattern: acquire mutex, read/write, release
mutex, define a macro: b53_build_op() which takes the type (read|write), I/O
size, and value (scalar or pointer). This helps with fixing bugs that could
exit (e.g: missing barrier, lock etc.).
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>