Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp625316pxb; Tue, 5 Apr 2022 16:22:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdDZOLAio0wiU89bar39tuGlOR2zrkTTvjGAmgAsj+1jBVF+/fFb09HdLvOQ4B3wAc2UM2 X-Received: by 2002:a63:c14b:0:b0:398:f14d:8e49 with SMTP id p11-20020a63c14b000000b00398f14d8e49mr4812886pgi.604.1649200949966; Tue, 05 Apr 2022 16:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649200949; cv=none; d=google.com; s=arc-20160816; b=oz/GQSqti3ukxyHEvhJxr8uxK8sdilIcFYmwhH2iB8V3cfGWS6KuUpv+GVwAuNj+vr fv9PRczd5gPNDLXiFQ4TjMPRRnea8qo3kh7bSxSu5d7wXqWFrUbaScEBBvh1S8rOMDz4 SsGGcFkCOH3yCWJKsP8t6gFXLYWxxqjRrzv76vBDy4ZscyHTCLGCBbXMgd82LEWzg586 d3SBi6PAxiSz8SxOJNQcSpAYislO8V53CnPx+S9hKBOBfiJTWHj4SdF5Yk/wDiosOmTs 3M/1wqspPRiPPCWW39LtxasHdWI/a6sekRocWqiyJBVeu1CURb9GW/ls5/HumjhCxkJM 2OSw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sXqMq2b0MWL75gsCm1igBiXzOJlrbhm7VsQCnGVrQXg=; b=gcAjenblmFfbl79uSejPFZsF5Cu4kg6/vx3o7QSyaNh3Y/e9RKNrbBPzXwFQWYJRG2 LdITIMqjg31RShYK2okCnXnsQhTgxu70FAMFVVfPIF9WTQn0k4N6T1qosp4tUuJxnAjS EPZ9EjYosKDYZuLrASVqHHQ+9Jo5c7BlkqgmlKGJllxbI4+AU/Pm0RxO1D7O5HRkeTUM A0tdEvc/WaPuKiOoZY4pTz65XOL5SXh4oXH9TFRAcM4m7DkyzhbBpHqt8cRqr/Nivhw2 7NUeNX7OYeoJb0ytl1fMVldWtrnFY5is0cPxhpyQexWyvC1ZNZLe0VdLtQRoXYmfTuea nwrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aHtWUZ0a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o29-20020a635a1d000000b003816043ef86si14427366pgb.379.2022.04.05.16.22.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 16:22:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aHtWUZ0a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8CC7E1ACA5D; Tue, 5 Apr 2022 16:07:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240310AbiDEOux (ORCPT + 99 others); Tue, 5 Apr 2022 10:50:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244570AbiDEJl2 (ORCPT ); Tue, 5 Apr 2022 05:41:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54D35BBE18; Tue, 5 Apr 2022 02:27:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 06A49B81CAC; Tue, 5 Apr 2022 09:27:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39EC3C385A8; Tue, 5 Apr 2022 09:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150827; bh=4indgIxOVeCiK3xftlvX5TxwsieTy/0NnuibO7kTWwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aHtWUZ0aDG550FkBn9kfYOruwh68tPX+8Q00WlZ0aQrasKLnA82hqT+h/8dhaGNRX RYZBIh8MSFzxq2mQrsV98z+9ffHu9FdpNIVVim7Zzf2OGh4dvyNeh38fWm9yVLfQzQ IJi/QxGuM2Yh+5KNo72+OGM0yZodClYcDoD4f8xk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Corentin Labbe , Herbert Xu , Sasha Levin Subject: [PATCH 5.15 195/913] crypto: sun8i-ss - really disable hash on A80 Date: Tue, 5 Apr 2022 09:20:57 +0200 Message-Id: <20220405070345.703687177@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Corentin Labbe [ Upstream commit 881fc7fba6c3e7d77d608b9a50b01a89d5e0c61b ] When adding hashes support to sun8i-ss, I have added them only on A83T. But I forgot that 0 is a valid algorithm ID, so hashes are enabled on A80 but with an incorrect ID. Anyway, even with correct IDs, hashes do not work on A80 and I cannot find why. So let's disable all of them on A80. Fixes: d9b45418a917 ("crypto: sun8i-ss - support hash algorithms") Signed-off-by: Corentin Labbe Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c index 80e89066dbd1..319fe3279a71 100644 --- a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c +++ b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c @@ -30,6 +30,8 @@ static const struct ss_variant ss_a80_variant = { .alg_cipher = { SS_ALG_AES, SS_ALG_DES, SS_ALG_3DES, }, + .alg_hash = { SS_ID_NOTSUPP, SS_ID_NOTSUPP, SS_ID_NOTSUPP, SS_ID_NOTSUPP, + }, .op_mode = { SS_OP_ECB, SS_OP_CBC, }, .ss_clks = { -- 2.34.1