Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3670995rwb; Tue, 16 Aug 2022 07:04:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR7QHcl3fmw6NWZnTquZ/eKWirTnb5llwNqt9TDov87MC3lEEGZd57CRwEHtC2HVtuf6eGHN X-Received: by 2002:a17:907:9710:b0:731:67b1:dc3b with SMTP id jg16-20020a170907971000b0073167b1dc3bmr13786702ejc.709.1660658660812; Tue, 16 Aug 2022 07:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660658660; cv=none; d=google.com; s=arc-20160816; b=BAGxsJ0U39dwvPArYKDUTW+M6FIPxVTHPErKhjQXVTfeA7l4MA6sjNJ3S7cA0laLZM ccamvGx30dur/UIWakSSm8OnnNoDAJ2hdAoJo/ORfKUivoEmwVMcv8dtAaAzkDXhnfc/ 3HcQ4mby9ydoj3g7FQP32A4bbwuNXYu/3E2DzPJSyO0S+G32ACj/n1rfc2UlPL0p8bPw jPOSOqyxLTrcRYCaSKuM3uZ+O2L5785Rv6KJGFUEz3UcfBpKWw88Re41bIYxXovDRLC1 XJ+1EY9cLgHLtwHR6HFcw7JcMPoGY3B6q2tuavp5vvbQjKl2QRk2zsVwJjteF8Y0Cycw XBPQ== 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=psbLplD4dNjEprFTWJqYf9xWkagYDHJoXwCz4vDrUHs=; b=dQ71hkVD1dkrGRE8nB30Pvs+iy+j/gEDlwBMLeJaaR9dl+Zstml1/2/nIhlI8Y8Xw+ RlmFH09w+be+2z9hHgMijM2UPxj/wK0exwfSEB6pAuLku/uhGQhFKaIMMv2Obwu4x92L H4Oj34Mg2SLtKs2Fm0lE3XTe7iMmr7W2xdjWJIk+Ai2mIGHTdK/Qtk+tTcZM+WD1kNSH C4kFtDfiro4EQefpoY0YtrwPWmSR4A8TyvP27wruzzV9C/IF17tmNYLcgN8aeO5hTqWZ +7Xl66t/wtMNOSWpKRr7hGAJF4wXffCzYk2NwXJYt93a59InWH80Z1zoxad/zw06AEH0 3RVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dFXJN9lx; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du4-20020a17090772c400b007277dd43476si10713681ejc.347.2022.08.16.07.03.47; Tue, 16 Aug 2022 07:04:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@linaro.org header.s=google header.b=dFXJN9lx; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235735AbiHPODA (ORCPT + 99 others); Tue, 16 Aug 2022 10:03:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235689AbiHPOC7 (ORCPT ); Tue, 16 Aug 2022 10:02:59 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94FDF7F0B0 for ; Tue, 16 Aug 2022 07:02:57 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id f20so15049741lfc.10 for ; Tue, 16 Aug 2022 07:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=psbLplD4dNjEprFTWJqYf9xWkagYDHJoXwCz4vDrUHs=; b=dFXJN9lxoFQT21kIAH+3QnGSecPFLqrXqVQffWWxJwGfBbNUcZdOSvcAQ9dO5HXpzt 98gSL5XQ4W2GVRVyDcE4pd8HRcQJSNS+CbTliv7y9VjEft7IX8Z9Cyyz3NnAva/w5YUI 5sVxjlp0JvT6tINKXhf6KXCXF9eyWU1yX5Fs9yHdS+PZeotlIm2ZEGYckS2rCYyWXNq/ 35gwxkLnsxfvipc5H+OqjBT5wCc0bte03X8Pjh0onJC2+ke1XkWamze2F4GKdp6uGamZ 22352X45vda05IsXQencrp3Zl/pYr7+eNz379SYHAY0N8Mlb7ewZcMUtO751JmB1o45z jmww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=psbLplD4dNjEprFTWJqYf9xWkagYDHJoXwCz4vDrUHs=; b=F3/sLKak0C2WDwsaY5lYGtHMN2YZeTWko89WhVd2p1YYmCBV4kyNstTNCWE3wykrfo i3vgU4GkHG6KhZIC+qdy7gb+FBklm/C++AfDHRQynBl+gqbRzzI8+IID0+XiS2LG9+Ra sk3eRAaL1lSawpRpVrgfKvjyJC/T9VolVueGBcVNQT/y4+abCw2NcuHPPknZYR7bCmdj BxFm0tGTyug1Fd+4VWS6Gojb/PpHevSh2m/f1TXB5iCbVjIEx/Z7HqbNW89LygzXh4dd We9uFYI05nkCX5oON7X2onCiGODpNM4909+fOWC+tXOdDPl3fGGIZkUnFlu/dQv5GwZo XDnw== X-Gm-Message-State: ACgBeo3mWapwCvMNKWtUfsELEsAXjGNXzjsFNThog2sYCxBRlbhXSfiJ Dvv0IiRMILoro+LS6NCJ5I4p3SiHE7tVdA== X-Received: by 2002:a05:6512:12c4:b0:48f:aca0:f94e with SMTP id p4-20020a05651212c400b0048faca0f94emr7445636lfg.296.1660658575681; Tue, 16 Aug 2022 07:02:55 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id r27-20020a2eb61b000000b0025e739cd9a7sm1747902ljn.101.2022.08.16.07.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 07:02:55 -0700 (PDT) From: Linus Walleij To: linux-crypto@vger.kernel.org, Herbert Xu , "David S . Miller" Cc: phone-devel@vger.kernel.org, Stefan Hansson , Linus Walleij Subject: [PATCH v3 00/16] Ux500 hash cleanup Date: Tue, 16 Aug 2022 16:00:33 +0200 Message-Id: <20220816140049.102306-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-crypto@vger.kernel.org This has been very sparingly maintained the last few years, but as it happens an active user appeared and sent me a bug report, so here is a series cleaning up the driver so we can maintain it going forward. Most patches are modernizations, using new frameworks and helpers. The expensive self tests are passing fine after this series. I think it is a bit too big to backport to stable :/ But please put it in as non-urgent fix. If this goes well the plan is to do the same for the crypto driver which has all the same problems. ChangeLog v2->v3: - Rebase on v6.0-rc1 - Use accelerated noinc regmap MMIO ChangeLog v1->v2: - Iron out some minor runtime bugs. - Fix a regmap initialization error. - Fix up to use runtime PM and drop custom power states. Linus Walleij (16): crypto: ux500/hash: Pass ctx to hash_setconfiguration() crypto: ux500/hash: Get rid of custom device list crypto: ux500/hash: Pass context to zero message digest crypto: ux500/hash: Drop custom state save/restore crypto: ux500/hash: Drop bit index crypto: ux500/hash: Break while/do instead of if/else crypto: ux500/hash: Rename and switch type of member crypto: ux500/hash: Stop saving/restoring compulsively crypto: ux500/hash: Get rid of state from request context crypto: ux500/hash: Implement .export and .import crypto: ux500/hash: Drop custom uint64 type crypto: ux500/hash: Drop regulator handling crypto: ux500/hash: Convert to regmap MMIO crypto: ux500/hash: Use AMBA core primecell IDs crypto: ux500/hash: Implement runtime PM crypto: ux500/hash: Use accelerated noinc MMIO drivers/crypto/ux500/Kconfig | 1 + drivers/crypto/ux500/hash/hash_alg.h | 262 ++---- drivers/crypto/ux500/hash/hash_core.c | 1152 ++++++++++--------------- 3 files changed, 533 insertions(+), 882 deletions(-) -- 2.37.2