[PATCH v7 2/2] ARM: davinci: da8xx: Fix sleeping function called from invalid context

Sekhar Nori nsekhar at ti.com
Mon Jan 2 03:01:08 PST 2017


On Friday 09 December 2016 10:29 PM, Alexandre Bailon wrote:
> Everytime the usb20 phy is enabled, there is a
> "sleeping function called from invalid context" BUG.
> In addition, there is a recursive locking happening
> because of the recurse call to clk_enable().
> 
> clk_enable() from arch/arm/mach-davinci/clock.c uses spin_lock_irqsave()
> before to invoke the callback usb20_phy_clk_enable().
> usb20_phy_clk_enable() uses clk_get() and clk_enable_prepapre()
> which may sleep.
> replace clk_prepare_enable() by davinci_clk_enable().
> 
> Signed-off-by: Alexandre Bailon <abailon at baylibre.com>
> Suggested-by: David Lechner <david at lechnology.com>

Applied to 'fixes' branch.

Thanks,
Sekhar



More information about the linux-arm-kernel mailing list