Re: [PATCH] clk: fix reentrancy of clk_enable() on UP systems

2018-01-02 Thread Stephen Boyd
On 12/28, David Lechner wrote: > On 12/26/2017 08:21 PM, Stephen Boyd wrote: > >On 12/26, David Lechner wrote: > >>Reentrant calls to clk_enable() are not working on UP systems. This is > >>caused by the fact spin_trylock_irqsave() always returns true when > >>CONFIG_SMP=n (and

Re: [PATCH] clk: fix reentrancy of clk_enable() on UP systems

2018-01-02 Thread Stephen Boyd
On 12/28, David Lechner wrote: > On 12/26/2017 08:21 PM, Stephen Boyd wrote: > >On 12/26, David Lechner wrote: > >>Reentrant calls to clk_enable() are not working on UP systems. This is > >>caused by the fact spin_trylock_irqsave() always returns true when > >>CONFIG_SMP=n (and

Re: [PATCH] clk: fix reentrancy of clk_enable() on UP systems

2017-12-28 Thread David Lechner
On 12/26/2017 08:21 PM, Stephen Boyd wrote: On 12/26, David Lechner wrote: Reentrant calls to clk_enable() are not working on UP systems. This is caused by the fact spin_trylock_irqsave() always returns true when CONFIG_SMP=n (and CONFIG_DEBUG_SPINLOCK=n) which causes the reference counting to

Re: [PATCH] clk: fix reentrancy of clk_enable() on UP systems

2017-12-28 Thread David Lechner
On 12/26/2017 08:21 PM, Stephen Boyd wrote: On 12/26, David Lechner wrote: Reentrant calls to clk_enable() are not working on UP systems. This is caused by the fact spin_trylock_irqsave() always returns true when CONFIG_SMP=n (and CONFIG_DEBUG_SPINLOCK=n) which causes the reference counting to

Re: [PATCH] clk: fix reentrancy of clk_enable() on UP systems

2017-12-26 Thread Stephen Boyd
On 12/26, David Lechner wrote: > Reentrant calls to clk_enable() are not working on UP systems. This is > caused by the fact spin_trylock_irqsave() always returns true when > CONFIG_SMP=n (and CONFIG_DEBUG_SPINLOCK=n) which causes the reference > counting to not work correctly when

Re: [PATCH] clk: fix reentrancy of clk_enable() on UP systems

2017-12-26 Thread Stephen Boyd
On 12/26, David Lechner wrote: > Reentrant calls to clk_enable() are not working on UP systems. This is > caused by the fact spin_trylock_irqsave() always returns true when > CONFIG_SMP=n (and CONFIG_DEBUG_SPINLOCK=n) which causes the reference > counting to not work correctly when

[PATCH] clk: fix reentrancy of clk_enable() on UP systems

2017-12-26 Thread David Lechner
Reentrant calls to clk_enable() are not working on UP systems. This is caused by the fact spin_trylock_irqsave() always returns true when CONFIG_SMP=n (and CONFIG_DEBUG_SPINLOCK=n) which causes the reference counting to not work correctly when clk_enable_lock() is called twice before

[PATCH] clk: fix reentrancy of clk_enable() on UP systems

2017-12-26 Thread David Lechner
Reentrant calls to clk_enable() are not working on UP systems. This is caused by the fact spin_trylock_irqsave() always returns true when CONFIG_SMP=n (and CONFIG_DEBUG_SPINLOCK=n) which causes the reference counting to not work correctly when clk_enable_lock() is called twice before