From patchwork Tue Aug 16 14:00:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 597607 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3314C3F6B0 for ; Tue, 16 Aug 2022 14:03:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235735AbiHPODA (ORCPT ); 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-Google-Smtp-Source: AA6agR52edQXKU2V2hqiLrVcNRtREoArsQDVxE22/dliHLoPDw6TjRqjqIf49mFpU0ljyLlEg3yIeg== 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 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(-)