summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77d7668)
raw | patch | inline | side by side (parent: 77d7668)
author | Felipe Balbi <balbi@ti.com> | |
Mon, 7 Apr 2014 15:58:01 +0000 (10:58 -0500) | ||
committer | Dan Murphy <DMurphy@ti.com> | |
Sat, 7 Jun 2014 21:41:08 +0000 (16:41 -0500) |
[ Upstream commit 8b2bc2c9351b4c09bc3d9096e2a7af3988565dbf ]
on early initialization we could fall into
a situation where the mailbox is called before
MUSB's clocks are running, in order to avoid
that, make sure mailbox is always wrapped with
pm_runtime calls.
Reported-by: Stefan Roese <sr@denx.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Dan Murphy <DMurphy@ti.com>
on early initialization we could fall into
a situation where the mailbox is called before
MUSB's clocks are running, in order to avoid
that, make sure mailbox is always wrapped with
pm_runtime calls.
Reported-by: Stefan Roese <sr@denx.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Dan Murphy <DMurphy@ti.com>
drivers/usb/musb/omap2430.c | patch | blob | history |
index 819a7cdcb8664ef61cf8742ae3577e5a17dd79d0..d369bf1f3936cba910de97a4859c27174dbed8a5 100644 (file)
{
struct omap2430_glue *glue = container_of(mailbox_work,
struct omap2430_glue, omap_musb_mailbox_work);
+ struct musb *musb = glue_to_musb(glue);
+ struct device *dev = musb->controller;
+
+ pm_runtime_get_sync(dev);
omap_musb_set_mailbox(glue);
+ pm_runtime_mark_last_busy(dev);
+ pm_runtime_put_autosuspend(dev);
}
static irqreturn_t omap2430_musb_interrupt(int irq, void *__hci)