From patchwork Wed May 24 04:41:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Robson X-Patchwork-Id: 9744945 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1162A6032B for ; Wed, 24 May 2017 04:42:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05A5C288C3 for ; Wed, 24 May 2017 04:42:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED6EA288C7; Wed, 24 May 2017 04:42:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8932A288C3 for ; Wed, 24 May 2017 04:42:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936240AbdEXEl7 (ORCPT ); Wed, 24 May 2017 00:41:59 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36483 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933157AbdEXEl6 (ORCPT ); Wed, 24 May 2017 00:41:58 -0400 Received: by mail-pg0-f67.google.com with SMTP id h64so15648813pge.3; Tue, 23 May 2017 21:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=j2I2cO++OzO8DKUeU3aTEA0myqqmDOP2AnbuMkrDG7c=; b=WGE51iD2pxqcIPcsRmURWMaMGhpFHFhV2Ql/fulEWTtc+eA5sy82KFH/TU5LQ33mXe iku3bggOm3EJWFQ3DoQnGTLs4KFajf0ZtaAjyzegzjuNiksvZJwrxmMLhg3JlwlJqfTR QhTlSxXY0fOiJyzB39w8Az9RhtpjMu16zHqr+St9Csl2Z7IYjrjsG1zj6zLXnaSycyrJ +zf8w8VUdmANHi73dBIZ4XDbsYnHfhWoCL28CJkQ1LhAnywYqqin+pZKdI1BviJ49dkW 0I56gyQXwiNwD4JWN+xGYfPQ+KtYk0wkli+KuGt1VUzBpgG3Z0G4w2hY/DLZXwFygu2e 5sXQ== 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=j2I2cO++OzO8DKUeU3aTEA0myqqmDOP2AnbuMkrDG7c=; b=r6+bbmVQUEXyaFnEY6E9xX28J9isjuMNNinXHLeH8dmkJVkm6Hvj4i16Y4LZywQIc2 GZ2SM49RsMwGG9wEtpWEtkW7dROLbEC6kzfA59Jg52Pc09VsPj7HRc0n+oB0vDxZxa01 R10UkqRtChuMnZZxQQYC5dTlHhYCiUAzSIK76mZEW0aHpg3VK19CZvRH2B6kThhbSYMv Fh6MhPq2Wl1EtNhGvDyDE3ug6LTQQ+LxOMlA05we0siQvwPLByH1/yWdUDAzKhxYtPEX 5wslbjFzNBAIvyvrPjFsMWFjD3oX6KZuuyxC1mQSHcoP6FFbGbWlIep9Z4V/iuruR1Bz G/5Q== X-Gm-Message-State: AODbwcDoy6W5Q284p8pSfB5UJ0aKXklS38CRPo9IqNW1K0UcVFsteAvl 78CslWZeOCPQJw== X-Received: by 10.98.59.2 with SMTP id i2mr35615673pfa.50.1495600917499; Tue, 23 May 2017 21:41:57 -0700 (PDT) Received: from localhost.localdomain (121-75-114-245.dyn.vf.net.nz. [121.75.114.245]) by smtp.gmail.com with ESMTPSA id q9sm3955345pfg.77.2017.05.23.21.41.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 21:41:57 -0700 (PDT) From: Derek Robson To: gilad@benyossef.com, gregkh@linuxfoundation.org Cc: linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Derek Robson Subject: [PATCH 04/27] Drivers: ccree: ssi_request_mgr.c - align block comments Date: Wed, 24 May 2017 16:41:49 +1200 Message-Id: <20170524044149.30051-1-robsonde@gmail.com> X-Mailer: git-send-email 2.12.2 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixed block comment alignment, Style fix only Found using checkpatch Signed-off-by: Derek Robson --- 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 =