Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1652832
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Derek Robson <robsonde@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH V2 04/27] Drivers: ccree: ssi_request_mgr.c - align block comments |
| Date | Tue, 30 May 2017 08:20:02 +0200 |
| Message-ID | <tMIFA-3sh-21@gated-at.bofh.it> (permalink) |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=1k1W9UmFKVApHOcxoudew3M+hxNIbdpwXpwB652DElc=; b=F8sGm32WIEiR1PT+13wcuCaDba4rT9W/z++9155OTWcM5s12u307SZNOgA4e72eSRq D5FbW7Nlz9beUjdD2c/4iAnDRT4gA9oFq9WdNrQ8kA6AQwyKbo3VdtezGXIMnhZf0iyN sWFpoQmMdUhTyUck8NRKXqEbaXg62U344ZBSW9b+GqtCkfV+x/8Eey74PgZyW4NtSDRE 84K3dVwo3JOEIchA78vJr77h8QTj7YcSuq662lJM4wDBb9g+fLLryyuwEWxTwYTo3E5s GwUI9F2YBEgfNbmddd7P77oYR9SVckDVX9IM7x4CnvLoiD/LugggG8Mh1++kfDBBoWcX eASA== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1k1W9UmFKVApHOcxoudew3M+hxNIbdpwXpwB652DElc=; b=nPemyYARlaYktjKYIDnsQnyuoYCj1aE0etnbjLX39Rt/XrghT302vC2re9Cu756MbY CwUC/Js8OHfF3L6BixRlDOfX0uHt0X4F056LF2CMCJ6yEp95YoD4v6zn2ZYJt5axIszD r2NU1DJp2V3HcRl9r5W8J40PUdiC0lgCglq7GkYTtTKV1uggMnLphmzF6NCNsMsHkxPc YRz0aNvCv+oNb9P5r/HtZC7uifrBB33FzeRyXSC0MBaiL332Z1Yi8jZi3Jq90eoulFK8 JeK4SYtNJwP+4bMD9X/d/e86jWoWmAomGCz5S00Gxfss4C5wNBU1oMfqXBW0zDzLrwYb n/9g== |
| X-Gm-Message-State | AODbwcD5JXuugowR20rWZlIYBBeVX5ZVUlAItr3CMIzfU8uanq64uGEh QVjpwxAOEAm0yA== |
| X-Received | by 10.99.161.25 with SMTP id b25mr23114484pgf.26.1496124657068; Mon, 29 May 2017 23:10:57 -0700 (PDT) |
| X-Mailer | git-send-email 2.13.0 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 114 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Derek Robson <robsonde@gmail.com> |
| X-Original-Date | Tue, 30 May 2017 18:10:47 +1200 |
| X-Original-Message-ID | <20170530061047.13165-1-robsonde@gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1652832 |
Show key headers only | View raw
Fixed block comment alignment, Style fix only
Found using checkpatch
Signed-off-by: Derek Robson <robsonde@gmail.com>
---
drivers/staging/ccree/ssi_request_mgr.c | 37 ++++++++++++++++++++-------------
1 file changed, 22 insertions(+), 15 deletions(-)
diff --git a/drivers/staging/ccree/ssi_request_mgr.c b/drivers/staging/ccree/ssi_request_mgr.c
index 48c2450d65c6..1bc6811d63c5 100644
--- a/drivers/staging/ccree/ssi_request_mgr.c
+++ b/drivers/staging/ccree/ssi_request_mgr.c
@@ -300,8 +300,9 @@ static inline int request_mgr_queues_status_check(
unsigned long poll_queue;
/* SW queue is checked only once as it will not
- be chaned during the poll becasue the spinlock_bh
- is held by the thread */
+ * be chaned during the poll becasue the spinlock_bh
+ * is held by the thread
+ */
if (unlikely(((req_mgr_h->req_queue_head + 1) &
(MAX_REQUEST_QUEUE_SIZE - 1)) ==
req_mgr_h->req_queue_tail)) {
@@ -384,8 +385,9 @@ int send_request(
spin_lock_bh(&req_mgr_h->hw_lock);
/* 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
- for the internal completion descriptor */
+ * in case iv gen add the max size and in case of no dout add 1
+ * for the internal completion descriptor
+ */
rc = request_mgr_queues_status_check(req_mgr_h,
cc_base,
max_required_seq_len);
@@ -397,7 +399,8 @@ int send_request(
if (rc != -EAGAIN) {
/* Any error other than HW queue full
- (SW queue is full) */
+ * (SW queue is full)
+ */
#if defined (CONFIG_PM_RUNTIME) || defined (CONFIG_PM_SLEEP)
ssi_power_mgr_runtime_put_suspend(&drvdata->plat_dev->dev);
#endif
@@ -409,7 +412,8 @@ int send_request(
} while (1);
/* 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) {
init_completion(&ssi_req->seq_compl);
ssi_req->user_cb = request_mgr_complete;
@@ -481,7 +485,8 @@ int send_request(
if (!is_dout) {
/* Wait upon sequence completion.
- * Return "0" -Operation done successfully. */
+ * Return "0" -Operation done successfully.
+ */
return wait_for_completion_interruptible(&ssi_req->seq_compl);
} else {
/* Operation still in process */
@@ -633,7 +638,8 @@ static void comp_handler(unsigned long devarg)
/* ISR-to-Tasklet latency */
if (request_mgr_handle->axi_completed) {
/* 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);
}
@@ -641,7 +647,8 @@ static void comp_handler(unsigned long devarg)
do {
proc_completions(drvdata);
/* 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,
CC_HAL_READ_REGISTER(AXIM_MON_BASE_OFFSET));
} while (request_mgr_handle->axi_completed > 0);
@@ -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
-the spin lock protection
-*/
+ * resume the queue configuration - no need to take the lock as this happens inside
+ * the spin lock protection
+ */
#if defined (CONFIG_PM_RUNTIME) || defined (CONFIG_PM_SLEEP)
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
-only verify that the queue can be suspended.
-*/
+ * suspend the queue configuration. Since it is used for the runtime suspend
+ * only verify that the queue can be suspended.
+ */
int ssi_request_mgr_runtime_suspend_queue(struct ssi_drvdata *drvdata)
{
struct ssi_request_mgr_handle * request_mgr_handle =
--
2.13.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH V2 04/27] Drivers: ccree: ssi_request_mgr.c - align block comments Derek Robson <robsonde@gmail.com> - 2017-05-30 08:20 +0200
csiph-web