Commit 1010faa4 authored by Derek Robson's avatar Derek Robson Committed by Greg Kroah-Hartman

Drivers: ccree: ssi_request_mgr.c - align block comments

Fixed block comment alignment, Style fix only
Found using checkpatch
Signed-off-by: default avatarDerek Robson <robsonde@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2f930981
...@@ -300,8 +300,9 @@ static inline int request_mgr_queues_status_check( ...@@ -300,8 +300,9 @@ static inline int request_mgr_queues_status_check(
unsigned long poll_queue; unsigned long poll_queue;
/* SW queue is checked only once as it will not /* SW queue is checked only once as it will not
be chaned during the poll becasue the spinlock_bh * be chaned during the poll becasue the spinlock_bh
is held by the thread */ * is held by the thread
*/
if (unlikely(((req_mgr_h->req_queue_head + 1) & if (unlikely(((req_mgr_h->req_queue_head + 1) &
(MAX_REQUEST_QUEUE_SIZE - 1)) == (MAX_REQUEST_QUEUE_SIZE - 1)) ==
req_mgr_h->req_queue_tail)) { req_mgr_h->req_queue_tail)) {
...@@ -384,8 +385,9 @@ int send_request( ...@@ -384,8 +385,9 @@ int send_request(
spin_lock_bh(&req_mgr_h->hw_lock); spin_lock_bh(&req_mgr_h->hw_lock);
/* Check if there is enough place in the SW/HW queues /* Check if there is enough place in the SW/HW queues
in case iv gen add the max size and in case of no dout add 1 * in case iv gen add the max size and in case of no dout add 1
for the internal completion descriptor */ * for the internal completion descriptor
*/
rc = request_mgr_queues_status_check(req_mgr_h, rc = request_mgr_queues_status_check(req_mgr_h,
cc_base, cc_base,
max_required_seq_len); max_required_seq_len);
...@@ -397,7 +399,8 @@ int send_request( ...@@ -397,7 +399,8 @@ int send_request(
if (rc != -EAGAIN) { if (rc != -EAGAIN) {
/* Any error other than HW queue full /* Any error other than HW queue full
(SW queue is full) */ * (SW queue is full)
*/
#if defined (CONFIG_PM_RUNTIME) || defined (CONFIG_PM_SLEEP) #if defined (CONFIG_PM_RUNTIME) || defined (CONFIG_PM_SLEEP)
ssi_power_mgr_runtime_put_suspend(&drvdata->plat_dev->dev); ssi_power_mgr_runtime_put_suspend(&drvdata->plat_dev->dev);
#endif #endif
...@@ -409,7 +412,8 @@ int send_request( ...@@ -409,7 +412,8 @@ int send_request(
} while (1); } while (1);
/* Additional completion descriptor is needed incase caller did not /* Additional completion descriptor is needed incase caller did not
enabled any DLLI/MLLI DOUT bit in the given sequence */ * enabled any DLLI/MLLI DOUT bit in the given sequence
*/
if (!is_dout) { if (!is_dout) {
init_completion(&ssi_req->seq_compl); init_completion(&ssi_req->seq_compl);
ssi_req->user_cb = request_mgr_complete; ssi_req->user_cb = request_mgr_complete;
...@@ -481,7 +485,8 @@ int send_request( ...@@ -481,7 +485,8 @@ int send_request(
if (!is_dout) { if (!is_dout) {
/* Wait upon sequence completion. /* Wait upon sequence completion.
* Return "0" -Operation done successfully. */ * Return "0" -Operation done successfully.
*/
return wait_for_completion_interruptible(&ssi_req->seq_compl); return wait_for_completion_interruptible(&ssi_req->seq_compl);
} else { } else {
/* Operation still in process */ /* Operation still in process */
...@@ -633,7 +638,8 @@ static void comp_handler(unsigned long devarg) ...@@ -633,7 +638,8 @@ static void comp_handler(unsigned long devarg)
/* ISR-to-Tasklet latency */ /* ISR-to-Tasklet latency */
if (request_mgr_handle->axi_completed) { if (request_mgr_handle->axi_completed) {
/* Only if actually reflects ISR-to-completion-handling latency, i.e., /* Only if actually reflects ISR-to-completion-handling latency, i.e.,
not duplicate as a result of interrupt after AXIM_MON_ERR clear, before end of loop */ * not duplicate as a result of interrupt after AXIM_MON_ERR clear, before end of loop
*/
END_CYCLE_COUNT_AT(drvdata->isr_exit_cycles, STAT_OP_TYPE_GENERIC, STAT_PHASE_1); END_CYCLE_COUNT_AT(drvdata->isr_exit_cycles, STAT_OP_TYPE_GENERIC, STAT_PHASE_1);
} }
...@@ -641,7 +647,8 @@ static void comp_handler(unsigned long devarg) ...@@ -641,7 +647,8 @@ static void comp_handler(unsigned long devarg)
do { do {
proc_completions(drvdata); proc_completions(drvdata);
/* At this point (after proc_completions()), request_mgr_handle->axi_completed is always 0. /* At this point (after proc_completions()), request_mgr_handle->axi_completed is always 0.
The following assignment was changed to = (previously was +=) to conform KW restrictions. */ * The following assignment was changed to = (previously was +=) to conform KW restrictions.
*/
request_mgr_handle->axi_completed = CC_REG_FLD_GET(CRY_KERNEL, AXIM_MON_COMP, VALUE, request_mgr_handle->axi_completed = CC_REG_FLD_GET(CRY_KERNEL, AXIM_MON_COMP, VALUE,
CC_HAL_READ_REGISTER(AXIM_MON_BASE_OFFSET)); CC_HAL_READ_REGISTER(AXIM_MON_BASE_OFFSET));
} while (request_mgr_handle->axi_completed > 0); } while (request_mgr_handle->axi_completed > 0);
...@@ -663,9 +670,9 @@ static void comp_handler(unsigned long devarg) ...@@ -663,9 +670,9 @@ static void comp_handler(unsigned long devarg)
} }
/* /*
resume the queue configuration - no need to take the lock as this happens inside * resume the queue configuration - no need to take the lock as this happens inside
the spin lock protection * the spin lock protection
*/ */
#if defined (CONFIG_PM_RUNTIME) || defined (CONFIG_PM_SLEEP) #if defined (CONFIG_PM_RUNTIME) || defined (CONFIG_PM_SLEEP)
int ssi_request_mgr_runtime_resume_queue(struct ssi_drvdata *drvdata) int ssi_request_mgr_runtime_resume_queue(struct ssi_drvdata *drvdata)
{ {
...@@ -679,9 +686,9 @@ int ssi_request_mgr_runtime_resume_queue(struct ssi_drvdata *drvdata) ...@@ -679,9 +686,9 @@ int ssi_request_mgr_runtime_resume_queue(struct ssi_drvdata *drvdata)
} }
/* /*
suspend the queue configuration. Since it is used for the runtime suspend * suspend the queue configuration. Since it is used for the runtime suspend
only verify that the queue can be suspended. * only verify that the queue can be suspended.
*/ */
int ssi_request_mgr_runtime_suspend_queue(struct ssi_drvdata *drvdata) int ssi_request_mgr_runtime_suspend_queue(struct ssi_drvdata *drvdata)
{ {
struct ssi_request_mgr_handle * request_mgr_handle = struct ssi_request_mgr_handle * request_mgr_handle =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment