Re: [PATCH v5 2/7] clk: tegra: Fix refcounting of gate clocks

2021-03-18 Thread Dmitry Osipenko
18.03.2021 12:12, Michał Mirosław пишет: > On Wed, Mar 17, 2021 at 10:30:01PM +0300, Dmitry Osipenko wrote: >> The refcounting of the gate clocks has a bug causing the enable_refcnt >> to underflow when unused clocks are disabled. This happens because clk >> provider erroneously bumps the refcount

Re: [PATCH v5 2/7] clk: tegra: Fix refcounting of gate clocks

2021-03-18 Thread Michał Mirosław
On Wed, Mar 17, 2021 at 10:30:01PM +0300, Dmitry Osipenko wrote: > The refcounting of the gate clocks has a bug causing the enable_refcnt > to underflow when unused clocks are disabled. This happens because clk > provider erroneously bumps the refcount if clock is enabled at a boot > time, which

[PATCH v5 2/7] clk: tegra: Fix refcounting of gate clocks

2021-03-17 Thread Dmitry Osipenko
The refcounting of the gate clocks has a bug causing the enable_refcnt to underflow when unused clocks are disabled. This happens because clk provider erroneously bumps the refcount if clock is enabled at a boot time, which it shouldn't be doing, and it does this only for the gate clocks, while