Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp599833pxb; Tue, 5 Apr 2022 15:30:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcaORTC9X1xlYrAwGwKhV1vl8gpUJJ2mPj7ke3PqD/23USWzRrDzPvvCvLcdutYj0YEN6a X-Received: by 2002:a17:902:db03:b0:155:cb6a:7c8e with SMTP id m3-20020a170902db0300b00155cb6a7c8emr5800423plx.125.1649197818465; Tue, 05 Apr 2022 15:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649197818; cv=none; d=google.com; s=arc-20160816; b=J5Vsq4pyCWm4uEpviQj3ARU66XYb/1pBE8l7yXJKnftHcujJu1vZ+64S6IdfneexlV mlSwbAvu4KCFjyoURtfzHJLw2B5HwkKHnK36wfuCOCeh2ArnW4y4q+iTVd77NLr5WEr0 l5ZYY6WOLjcbJbZHhrQU8u2h8elcadBBLuP9fEVHNzSJzIXpS7w/BlFQl5ERidzQ4JaD 1NhcWuj3n6WiAd6+3kkcD++eN6KASyuDj1jww9JQlP+p2WJIKEMcNdpcgKyHdEmm0CQK bbpSHPeJMnfzIoE1W/uNbhokLyLd+DJXpj/7oPvZo53WwUiib/GCU3QK88IHyhQEe+QT iLwA== 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=Roe0kvoA8H/GUIBrE3T/xCHWS4eZcBW1xHzGiqY99fgYWwqLfnN+iIxHcfi2aLwOdm xtjbv4CGOw7dvjf90D6+w5dHLx6zQWhqRyD2/3tT9zZheeI/otN9l5J/PlTYk2Zv81yV wZN6ShwMqWoNEW3oE9qkPnjLFI2xNA+mWF1+u47rFzHl3SyD0rvLedGaczpQKadREFFf O80n3TsvyC9s9ISMnURzV+nNAtBzu8z/Bp2DMkfhk0wYtvwA6RFlfm1Iy6IptnM0dIuf Jn/ZlAXULQuqP3OOTL2JbK1OCjz8/+lwDCxshQKmroNp/pEUyzaRcbTIepj7qjtUbLtZ d9dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bqy9O7F9; 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 h14-20020a170902f70e00b0015632bfb19esi13195312plo.466.2022.04.05.15.30.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 15:30:18 -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=bqy9O7F9; 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A69B515B049; Tue, 5 Apr 2022 15:12:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382293AbiDEMEK (ORCPT + 99 others); Tue, 5 Apr 2022 08:04:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244084AbiDEIvi (ORCPT ); Tue, 5 Apr 2022 04:51:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E29FD3714; Tue, 5 Apr 2022 01:40:22 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B17DB614F9; Tue, 5 Apr 2022 08:40:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C093DC385A0; Tue, 5 Apr 2022 08:40:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148022; bh=4indgIxOVeCiK3xftlvX5TxwsieTy/0NnuibO7kTWwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bqy9O7F93/8gMCa4ESIptYeLlauw671wqwOR2CuIbZv+/ztHeALKKacMKQE17SO5h ceDFzZqXpHmjJEZ2FghjamdF20+5J1kQURyoDszhovhRpxpzj9F+i8a6SOty9mPD47 9H9463TXWIy0FzJ7xqqSvY6Rr0mB/XkI/64cZ/RA= 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.16 0206/1017] crypto: sun8i-ss - really disable hash on A80 Date: Tue, 5 Apr 2022 09:18:39 +0200 Message-Id: <20220405070400.365649141@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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