From patchwork Mon Aug 8 19:12:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Parks X-Patchwork-Id: 12939031 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E6BE6C00140 for ; Mon, 8 Aug 2022 19:14:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OmYiK5UMmMigshMXs7Zpo+YKMoMFRzD5vZDsicf/MXA=; b=3lUpS97530Nmwj Fv9cvNhmNV1Ne9s3U98VFF+UB0ii0aOuVThEsB34XCg9iuNjcyIotRDD4NCtflQHTWwkDof3RE2Pr lw4XMMd2mlhHjKBoqZv13eUA8/JuE5B7ykPJEex0bt8F2fWerJFQn3LevDxLRRZjtqnpFIAHdjRRb jhUhyuzxuEcZikbdU4nXiaMD77PQqaOFpFiN9tbm4g1d2eVJarp6Ns4fd2sSrXJC4CS+U+WCLV7U1 FYV5YgMDZJPZ9U5eCjsifrWywzZ1f31hH+RVpf7UN/wFm88xTRvU5ARnByJsutZZi6KHuGnvyMe2d 1akm+1AalnsS8c87w94g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oL8CG-00FaWy-Se; Mon, 08 Aug 2022 19:13:53 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oL8CD-00FaUQ-4V for linux-arm-kernel@lists.infradead.org; Mon, 08 Aug 2022 19:13:50 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 278JDbh7053370; Mon, 8 Aug 2022 14:13:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1659986017; bh=X3u8l1aLdabCBhjFE9C1lW0DJg6QIkwSobh1afr7YbM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qciihBVn3V076SplEFrD0gg1DqCFE8PMSlmcJoo6aEDhV9QHHZbiG9Dw0m3iZQfPw phkCuJ3xNYXPTq04t5mHU1EvGlvJHmwhWiYayVVaUCnTpXYqZbOLfFFyLdVQ1e+OLT zxXikVeS53xGmY/GH5AlmPP8uwvrOgbK5klnNrS8= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 278JDbi8016521 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 8 Aug 2022 14:13:37 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 8 Aug 2022 14:13:37 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Mon, 8 Aug 2022 14:13:37 -0500 Received: from uda0500628.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 278JDaYS054740; Mon, 8 Aug 2022 14:13:37 -0500 From: Daniel Parks To: Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Nishanth Menon , Vignesh Raghavendra , Tero Kristo CC: , , , Subject: [RFC PATCH 5/6] crypto: sa2ul: turn on PKA engine Date: Mon, 8 Aug 2022 14:12:54 -0500 Message-ID: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220808_121349_234531_80A0F8B0 X-CRM114-Status: GOOD ( 12.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The SA2UL driver is responsible for enabling power to its subdevices before enumerating them. In order to enable the PKA driver, we need to turn on the power to it here. Signed-off-by: Daniel Parks --- drivers/crypto/sa2ul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c index 6957a125b447..f3dfb3e7eea7 100644 --- a/drivers/crypto/sa2ul.c +++ b/drivers/crypto/sa2ul.c @@ -2428,9 +2428,9 @@ static int sa_ul_probe(struct platform_device *pdev) if (!dev_data->match_data->skip_engine_control) { u32 val = SA_EEC_ENCSS_EN | SA_EEC_AUTHSS_EN | SA_EEC_CTXCACH_EN | SA_EEC_CPPI_PORT_IN_EN | SA_EEC_CPPI_PORT_OUT_EN | - SA_EEC_TRNG_EN; + SA_EEC_TRNG_EN | SA_EEC_PKA_EN; writel_relaxed(val, saul_base + SA_ENGINE_ENABLE_CONTROL); }