mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 08:18:47 +00:00
HSI: omap_ssi_port: ensure clocks are kept enabled during transfer
ensure, that clocks remain enabled, when a transfer is started. Signed-off-by: Sebastian Reichel <sre@kernel.org> Tested-by: Pavel Machek <pavel@ucw.cz>
This commit is contained in:
parent
d2b8d695c6
commit
604fdfa458
@ -645,6 +645,7 @@ static void ssi_transfer(struct omap_ssi_port *omap_port,
|
|||||||
struct hsi_msg *msg;
|
struct hsi_msg *msg;
|
||||||
int err = -1;
|
int err = -1;
|
||||||
|
|
||||||
|
pm_runtime_get(omap_port->pdev);
|
||||||
spin_lock_bh(&omap_port->lock);
|
spin_lock_bh(&omap_port->lock);
|
||||||
while (err < 0) {
|
while (err < 0) {
|
||||||
err = ssi_start_transfer(queue);
|
err = ssi_start_transfer(queue);
|
||||||
@ -659,6 +660,7 @@ static void ssi_transfer(struct omap_ssi_port *omap_port,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
spin_unlock_bh(&omap_port->lock);
|
spin_unlock_bh(&omap_port->lock);
|
||||||
|
pm_runtime_put(omap_port->pdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ssi_cleanup_queues(struct hsi_client *cl)
|
static void ssi_cleanup_queues(struct hsi_client *cl)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user