Skip to content

Commit

Permalink
mfd: Convert db8500-prcmu panic() into pr_crit()
Browse files Browse the repository at this point in the history
panic() is too heavy for this, indeed the PRCMU is critical for
the system but not to the point that we should stop everything,
if we can still get a prompt or so.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Linus Walleij authored and Samuel Ortiz committed Oct 24, 2011
1 parent e62ccf3 commit 57265bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/mfd/db8500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,7 @@ void prcmu_ac_wake_req(void)

if (!wait_for_completion_timeout(&mb0_transfer.ac_wake_work,
msecs_to_jiffies(5000))) {
panic("prcmu: %s timed out (5 s) waiting for a reply.\n",
pr_crit("prcmu: %s timed out (5 s) waiting for a reply.\n",
__func__);
goto unlock_and_return;
}
Expand All @@ -1785,7 +1785,7 @@ void prcmu_ac_wake_req(void)
if (wait_for_completion_timeout(&mb0_transfer.ac_wake_work,
msecs_to_jiffies(5000)))
goto retry;
panic("prcmu: %s timed out (5 s) waiting for AC_SLEEP_ACK.\n",
pr_crit("prcmu: %s timed out (5 s) waiting for AC_SLEEP_ACK.\n",
__func__);
}

Expand All @@ -1811,7 +1811,7 @@ void prcmu_ac_sleep_req()

if (!wait_for_completion_timeout(&mb0_transfer.ac_wake_work,
msecs_to_jiffies(5000))) {
panic("prcmu: %s timed out (5 s) waiting for a reply.\n",
pr_crit("prcmu: %s timed out (5 s) waiting for a reply.\n",
__func__);
}

Expand Down

0 comments on commit 57265bc

Please sign in to comment.