Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1476009imw; Tue, 5 Jul 2022 10:07:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v6C6laJpaHQlhBmPDd3NFHoslULRyIa7RkJXfvV94DcCVYyvWTGDJjnyb7A2n9Cf5IJogJ X-Received: by 2002:a17:907:6d0c:b0:726:32e5:1736 with SMTP id sa12-20020a1709076d0c00b0072632e51736mr34287839ejc.596.1657040836597; Tue, 05 Jul 2022 10:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657040836; cv=none; d=google.com; s=arc-20160816; b=BN92w+kEBwQ0wFNh3PR9heH0CPKu0uy6v75QlwUwvF7LZRue9MeyrEFR5bnebVdPtc 3PKN1sPKI7qp8y1MVpSrYeB+UA7GOpTgD1RmMBqEyVyRIli/k4mk7OZGLqMSuXnj3LIP HOrT/T6lwgGxBymBygn94xPFC9XLvffaOlRrcdp43jUPAN1IhZzsJCXjWg+wM8GuSuKb xvHxbSNlxsPiOdrPAnsj6kOULkCY9v1czesLyeJkr0wEkXO9XWUtjMHkzzjI3PwLXc+9 OTM3zC3fzzDBDW0yRcMKCF6cT1HMJQ2wdk8QY+S5V/wh/8A3QHOLIS/ja287isiZME8t zF4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QXTB59IGsyV3LDLti80N3e3Dx9HJ7ZNknQKypXn5bbc=; b=RXjqo1HFs1S8eY1uH8S3dbP0AgUemqQ4IwTtp7oyiTA6XpRdJ5bABbqT1eTrgctX2s 2wG8NKqEs84dbZrN2NCnK7oVo37cUs+GEDYrtOi0osxz82pCypTrfzQs794GJT8sFOAp dDilmdpo32hdPyIpm3WVKK6Vi1u4D3oBg9yfow0r68PCVsaHztBvR8umHXfsHgA1q0r2 tOeU1ncFvs9hZbrapPD+uNnKRhkITg6A55mfp4jNfbhX735mYEmcmj9lstVGbb1ND87F 6Z0jOc8Yx54JuNDS56ebPW8lAOiY6wLuK2buih50VlMWQQIEkKpTrNSE3lbp+tsrWkre j7bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Qa5XruYE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hu9-20020a170907a08900b0072a92973741si17583102ejc.978.2022.07.05.10.06.50; Tue, 05 Jul 2022 10:07:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Qa5XruYE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231756AbiGERD4 (ORCPT + 99 others); Tue, 5 Jul 2022 13:03:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbiGERDr (ORCPT ); Tue, 5 Jul 2022 13:03:47 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B72D18E05; Tue, 5 Jul 2022 10:03:47 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 265H3fTf065045; Tue, 5 Jul 2022 12:03:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1657040621; bh=QXTB59IGsyV3LDLti80N3e3Dx9HJ7ZNknQKypXn5bbc=; h=From:To:CC:Subject:Date; b=Qa5XruYE9T7kcIQsMtEXFIdeH1d1SVZIA9y++FKkW3iVtcgRCgSMh62f0IVB7HqiD 1fqYgdBIXpoaznXv/cJoVy9sbxOZUl3J7FfBbq2gZ5aI89kDy+L4r8AKJvT2Vn9om4 lYXGEJ8L9NFZ+5FVe+94ZETIRYQFEgNMmlO/KgWw= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 265H3fAj083617 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 Jul 2022 12:03:41 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 5 Jul 2022 12:03:41 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE102.ent.ti.com (157.170.170.32) 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; Tue, 5 Jul 2022 12:03:41 -0500 Received: from ula0226330.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 265H3e06118192; Tue, 5 Jul 2022 12:03:40 -0500 From: Andrew Davis To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , , CC: Andrew Davis Subject: [PATCH 1/6] crypto: sa2ul - Set the supported_algos bits individually Date: Tue, 5 Jul 2022 12:03:35 -0500 Message-ID: <20220705170340.26719-1-afd@ti.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Setting these individually gives a better picture of supported functions at a glance. Plus if the list changes an unwanted one will not accidentally get set with GENMASK. Signed-off-by: Andrew Davis --- drivers/crypto/sa2ul.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c index 6957a125b4470..1d732113b81ec 100644 --- a/drivers/crypto/sa2ul.c +++ b/drivers/crypto/sa2ul.c @@ -2361,7 +2361,15 @@ static int sa_link_child(struct device *dev, void *data) static struct sa_match_data am654_match_data = { .priv = 1, .priv_id = 1, - .supported_algos = GENMASK(SA_ALG_AUTHENC_SHA256_AES, 0), + .supported_algos = BIT(SA_ALG_CBC_AES) | + BIT(SA_ALG_EBC_AES) | + BIT(SA_ALG_CBC_DES3) | + BIT(SA_ALG_ECB_DES3) | + BIT(SA_ALG_SHA1) | + BIT(SA_ALG_SHA256) | + BIT(SA_ALG_SHA512) | + BIT(SA_ALG_AUTHENC_SHA1_AES) | + BIT(SA_ALG_AUTHENC_SHA256_AES), }; static struct sa_match_data am64_match_data = { -- 2.36.1