Skip to content

Commit

Permalink
HSI: omap_ssi_port: ensure clocks are kept enabled during transfer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastian Reichel committed Jun 27, 2016
1 parent d2b8d69 commit 604fdfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/hsi/controllers/omap_ssi_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ static void ssi_transfer(struct omap_ssi_port *omap_port,
struct hsi_msg *msg;
int err = -1;

pm_runtime_get(omap_port->pdev);
spin_lock_bh(&omap_port->lock);
while (err < 0) {
err = ssi_start_transfer(queue);
Expand All @@ -659,6 +660,7 @@ static void ssi_transfer(struct omap_ssi_port *omap_port,
}
}
spin_unlock_bh(&omap_port->lock);
pm_runtime_put(omap_port->pdev);
}

static void ssi_cleanup_queues(struct hsi_client *cl)
Expand Down

0 comments on commit 604fdfa

Please sign in to comment.