Re: [PATCH] net: stmmac: Use mutex instead of spinlock

From: Bhadram Varka
Date: Fri May 25 2018 - 10:37:17 EST


Hi,

On 5/24/2018 7:39 PM, Thierry Reding wrote:
From: Thierry Reding <treding@xxxxxxxxxx>

Some drivers, such as DWC EQOS on Tegra, need to perform operations that
can sleep under this lock (clk_set_rate() in tegra_eqos_fix_speed()) for
proper operation. Since there is no need for this lock to be a spinlock,
convert it to a mutex instead.

Fixes: e6ea2d16fc61 ("net: stmmac: dwc-qos: Add Tegra186 support")
Reported-by: Jon Hunter <jonathanh@xxxxxxxxxx>
Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
---

Tested on P3310 Tegra186 platform.

Tested-by: Bhadram Varka <vbhadram@xxxxxxxxxx>

--
Bhadram