diff options
author | Alexandre Bailon <abailon@baylibre.com> | 2016-12-09 17:59:33 +0100 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2017-01-02 16:15:07 +0530 |
commit | d1df1e01af1d7c91e48204b9eb8b9f20cdb90700 (patch) | |
tree | e23eac4faf8313329646723c3081214b095d2f73 /include/net/phonet | |
parent | 48cd30b49527f04078ef7de217cc188157f76ba6 (diff) |
ARM: davinci: da8xx: Fix sleeping function called from invalid context
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@baylibre.com>
Suggested-by: David Lechner <david@lechnology.com>
[nsekhar@ti.com: minor commit description adjustment]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'include/net/phonet')
0 files changed, 0 insertions, 0 deletions