Re: [PATCH] net: stmmac: Use mutex instead of spinlock
From: David Miller
Date: Mon May 28 2018 - 22:54:57 EST
From: Thierry Reding <thierry.reding@xxxxxxxxx>
Date: Thu, 24 May 2018 16:09:07 +0200
> 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>
> ---
> This applies on top of net-next.
Applied to net-next.