Re: [RFC PATCH 2/3] net: sparx5: Add Sparx5 switchdev driver

From: Steen Hegelund
Date: Mon Nov 30 2020 - 08:32:33 EST


On 29.11.2020 18:26, Andrew Lunn wrote:
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

+static void sparx5_hw_lock(struct sparx5 *sparx5)
+{
+ mutex_lock(&sparx5->lock);
+}
+
+static void sparx5_hw_unlock(struct sparx5 *sparx5)
+{
+ mutex_unlock(&sparx5->lock);
+}

Why is this mutex special and gets a wrapper where as the other two
don't? If there is no reason for the wrapper, please remove it.

Andrew


Hi Andrew,

There is no need for any special treatment, so I will remove the
wrapper.

BR
Steen


---------------------------------------
Steen Hegelund
steen.hegelund@xxxxxxxxxxxxx