From patchwork Wed Nov 27 08:49:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 180275 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp5815021ilf; Wed, 27 Nov 2019 00:49:27 -0800 (PST) X-Google-Smtp-Source: APXvYqztvCGwgRuNeEzsWM+TWg7ap2dS+RsZq2hPHpolbfi3a+eL3qu23oybkCR+4nrqGH39emNw X-Received: by 2002:a17:906:2db2:: with SMTP id g18mr29008678eji.163.1574844567490; Wed, 27 Nov 2019 00:49:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574844567; cv=none; d=google.com; s=arc-20160816; b=c1L17rlMiPhZ891pfaCfiUfmOeW8XPQKwTp2BVOmg90+NBUKgXXqs6CjdLJjRPtPpn dT02TwGzsFaWZasdyxRe+8fGIMgAlL8au5pGi1nBoHq/Vf8kvG7UZdNa6SJRhZAqW0/D HtTU/xdX3OywFJCYWsXyu3s5ag6gLG44dy+La3yb7uWV549yMarQezCaXcwm2aGUOxLc Xc5WAww3602/v3FvNf3MuStB3yjIsCPJ2gtjsqOWnb1GSUodJhyzi/+yO184X2GsQl75 b18pYPu8F+iuAls44wCRnvCBY949n88hJIv+XZXVdN1McKzG7isS4yRuRPFOsgLlDCBd Nl1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UpEaTGD23eeBsNCGBJ2ndpRJ5eR2jjkGbNYVml/L/4w=; b=0iUmkowPsEZHW41nKB0lfY7viJvlNQ+5ekZpH0jfOoTxSZ/MTXMn4cZIiH9jaok2ZX fwgrB/KaAKP/pE5lLeeNCh80Jj5tlp9Ze9EC9oKR/TBSrUlwvrMNT0KhBGy+GA2cDAUv 2z5g1agZVC8+nS2iWXOBohHE39kHklRyoOgfFBy5+yqzkkI2rycxkg5FAaFGWlsD1uxS bFGbQQPzxqGAWNrzBMIS/e0nUBt2ZvrtJFJtPEmC3Hv3l0oy2dMHgvcPW3sDi6Z2XnsL w8P+4g5CZbVBkWdx5uFk3ZydPpAtIL/tUNGYOrUlkkeMd0AcmoyJIAkDNJF5vMfHPIdO YlFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l16si1469516eds.161.2019.11.27.00.49.27; Wed, 27 Nov 2019 00:49:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726092AbfK0ItZ (ORCPT + 3 others); Wed, 27 Nov 2019 03:49:25 -0500 Received: from foss.arm.com ([217.140.110.172]:44554 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbfK0ItY (ORCPT ); Wed, 27 Nov 2019 03:49:24 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5776631B; Wed, 27 Nov 2019 00:49:23 -0800 (PST) Received: from e110176-lin.kfn.arm.com (unknown [10.50.4.153]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EC69E3F52E; Wed, 27 Nov 2019 00:49:21 -0800 (PST) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , Hadar Gat , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] crypto: ccree: fix typos in comments Date: Wed, 27 Nov 2019 10:49:06 +0200 Message-Id: <20191127084909.14472-3-gilad@benyossef.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191127084909.14472-1-gilad@benyossef.com> References: <20191127084909.14472-1-gilad@benyossef.com> MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Hadar Gat Fix some typos in code comments. Signed-off-by: Hadar Gat Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/cc_driver.c | 2 +- drivers/crypto/ccree/cc_fips.c | 2 +- drivers/crypto/ccree/cc_pm.c | 2 +- drivers/crypto/ccree/cc_request_mgr.c | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) -- 2.23.0 diff --git a/drivers/crypto/ccree/cc_driver.c b/drivers/crypto/ccree/cc_driver.c index 8b8eee513c27..929ae5b468d8 100644 --- a/drivers/crypto/ccree/cc_driver.c +++ b/drivers/crypto/ccree/cc_driver.c @@ -133,7 +133,7 @@ static irqreturn_t cc_isr(int irq, void *dev_id) u32 imr; /* STAT_OP_TYPE_GENERIC STAT_PHASE_0: Interrupt */ - /* if driver suspended return, probebly shared interrupt */ + /* if driver suspended return, probably shared interrupt */ if (cc_pm_is_dev_suspended(dev)) return IRQ_NONE; diff --git a/drivers/crypto/ccree/cc_fips.c b/drivers/crypto/ccree/cc_fips.c index 4c8bce33abcf..702aefc21447 100644 --- a/drivers/crypto/ccree/cc_fips.c +++ b/drivers/crypto/ccree/cc_fips.c @@ -120,7 +120,7 @@ static void fips_dsr(unsigned long devarg) cc_tee_handle_fips_error(drvdata); } - /* after verifing that there is nothing to do, + /* after verifying that there is nothing to do, * unmask AXI completion interrupt. */ val = (CC_REG(HOST_IMR) & ~irq); diff --git a/drivers/crypto/ccree/cc_pm.c b/drivers/crypto/ccree/cc_pm.c index dbc508fb719b..c1066f433a28 100644 --- a/drivers/crypto/ccree/cc_pm.c +++ b/drivers/crypto/ccree/cc_pm.c @@ -114,7 +114,7 @@ int cc_pm_init(struct cc_drvdata *drvdata) { struct device *dev = drvdata_to_dev(drvdata); - /* must be before the enabling to avoid resdundent suspending */ + /* must be before the enabling to avoid redundant suspending */ pm_runtime_set_autosuspend_delay(dev, CC_SUSPEND_TIMEOUT); pm_runtime_use_autosuspend(dev); /* activate the PM module */ diff --git a/drivers/crypto/ccree/cc_request_mgr.c b/drivers/crypto/ccree/cc_request_mgr.c index a947d5a2cf35..3ed3164820eb 100644 --- a/drivers/crypto/ccree/cc_request_mgr.c +++ b/drivers/crypto/ccree/cc_request_mgr.c @@ -230,7 +230,7 @@ static int cc_queues_status(struct cc_drvdata *drvdata, struct device *dev = drvdata_to_dev(drvdata); /* SW queue is checked only once as it will not - * be chaned during the poll because the spinlock_bh + * be changed during the poll because the spinlock_bh * is held by the thread */ if (((req_mgr_h->req_queue_head + 1) & (MAX_REQUEST_QUEUE_SIZE - 1)) == @@ -303,8 +303,8 @@ static int cc_do_send_request(struct cc_drvdata *drvdata, /* * We are about to push command to the HW via the command registers - * that may refernece hsot memory. We need to issue a memory barrier - * to make sure there are no outstnading memory writes + * that may reference host memory. We need to issue a memory barrier + * to make sure there are no outstanding memory writes */ wmb(); @@ -532,8 +532,8 @@ int send_request_init(struct cc_drvdata *drvdata, struct cc_hw_desc *desc, /* * We are about to push command to the HW via the command registers - * that may refernece hsot memory. We need to issue a memory barrier - * to make sure there are no outstnading memory writes + * that may reference host memory. We need to issue a memory barrier + * to make sure there are no outstanding memory writes */ wmb(); enqueue_seq(drvdata, desc, len); @@ -668,7 +668,7 @@ static void comp_handler(unsigned long devarg) request_mgr_handle->axi_completed += cc_axi_comp_count(drvdata); } - /* after verifing that there is nothing to do, + /* after verifying that there is nothing to do, * unmask AXI completion interrupt */ cc_iowrite(drvdata, CC_REG(HOST_IMR), From patchwork Wed Nov 27 08:49:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 180276 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp5815042ilf; Wed, 27 Nov 2019 00:49:28 -0800 (PST) X-Google-Smtp-Source: APXvYqwB5/uNWQMk1qKgEsmAyIFrrc3X64F9ioQ4tZnLLtB/dRkl7cMPPMPC6X6+YtP+Yi8sYN/F X-Received: by 2002:a17:906:3ec8:: with SMTP id d8mr48380320ejj.55.1574844568265; Wed, 27 Nov 2019 00:49:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574844568; cv=none; d=google.com; s=arc-20160816; b=WZYEZxb7KaoT3MgXyTy3OhueNvm9z9G2ZigsOV6yZFnl4KFW41R7HejKlHv29efQfi OMu4Hon8OjnELl54RheqtbMyuxCzGqaP3j81abJPs3WZCtl7Zj/s7ltIEXuFI6+HX2RE uFOmxhP4yyhRW5LClX96B13INsX/3sMMsa7eNs7Fz5x3Us1SMNZBR5vvbPkps4x8aVTM vJI643n/t8RmYAFFs7rVblv0gjeKWNKRtJBPjO4uQJ1Mind6d27AzbePcp2bEfRUrFvr ZjzY3vd4aJxxDwN3U8TBePhE9217by1a0NNUIzppZR7AS0zjwmiZGe1kQw0J8Pk/fxGg 2RmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xn8lvoODmMkMpLvikHGVQRk85GMi651xDZ3tcdERZ3w=; b=QGsq8VfLpL8XSXbE31Juo+knol3UoobxWHO/kOhfH09Xp4XPoYX1vXjJlOEhy6Nqn0 qHTmm9RpJozC8XesXAaIVDP5BclzDfegqgpV5SQH/NU9LcRmHt2XG0ugoiJp6KnGHsqZ n3d2xsVHfqN1L3cSimghUekLQTlzl7igQO4EaNinH7AAzqfx5bsyx7MpUOrdE7D3opGt vNBG/GJFLixPCF7bX7Td6aAulkRUJ76mXnSeAHcPOFX4dZJWTaET3rPExn7rXNXQTzRZ mnhZrNUj8WX5fw1jFwkRR+DHfDpZrG+UteMDcT0Af/oILi9rXj3xN07lAhROSx4j6I1M pvfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l16si1469516eds.161.2019.11.27.00.49.28; Wed, 27 Nov 2019 00:49:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726852AbfK0It1 (ORCPT + 3 others); Wed, 27 Nov 2019 03:49:27 -0500 Received: from foss.arm.com ([217.140.110.172]:44562 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726722AbfK0It0 (ORCPT ); Wed, 27 Nov 2019 03:49:26 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C5CE131B; Wed, 27 Nov 2019 00:49:25 -0800 (PST) Received: from e110176-lin.kfn.arm.com (unknown [10.50.4.153]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 664E03F52E; Wed, 27 Nov 2019 00:49:24 -0800 (PST) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , Hadar Gat , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] crypto: ccree: fix typos in error msgs Date: Wed, 27 Nov 2019 10:49:07 +0200 Message-Id: <20191127084909.14472-4-gilad@benyossef.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191127084909.14472-1-gilad@benyossef.com> References: <20191127084909.14472-1-gilad@benyossef.com> MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Hadar Gat Fix some typos in error message text. Signed-off-by: Hadar Gat Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/cc_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.23.0 diff --git a/drivers/crypto/ccree/cc_driver.c b/drivers/crypto/ccree/cc_driver.c index 929ae5b468d8..1bbe82fce4a5 100644 --- a/drivers/crypto/ccree/cc_driver.c +++ b/drivers/crypto/ccree/cc_driver.c @@ -465,7 +465,7 @@ static int init_cc_resources(struct platform_device *plat_dev) rc = cc_fips_init(new_drvdata); if (rc) { - dev_err(dev, "CC_FIPS_INIT failed 0x%x\n", rc); + dev_err(dev, "cc_fips_init failed 0x%x\n", rc); goto post_debugfs_err; } rc = cc_sram_mgr_init(new_drvdata); @@ -490,13 +490,13 @@ static int init_cc_resources(struct platform_device *plat_dev) rc = cc_buffer_mgr_init(new_drvdata); if (rc) { - dev_err(dev, "buffer_mgr_init failed\n"); + dev_err(dev, "cc_buffer_mgr_init failed\n"); goto post_req_mgr_err; } rc = cc_pm_init(new_drvdata); if (rc) { - dev_err(dev, "ssi_power_mgr_init failed\n"); + dev_err(dev, "cc_pm_init failed\n"); goto post_buf_mgr_err; }