From patchwork Tue Sep 24 08:08:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 174254 Delivered-To: patch@linaro.org Received: by 2002:ac9:19ad:0:0:0:0:0 with SMTP id d45csp3547267oce; Tue, 24 Sep 2019 01:08:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgxqu6lg4OiC6LXolqAkoausfuGlqWl0M9O7g13gKHT9HJ12v9uE9rxAW8CHsoNewVQXP9 X-Received: by 2002:a17:906:fc20:: with SMTP id ov32mr1321577ejb.22.1569312520052; Tue, 24 Sep 2019 01:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569312520; cv=none; d=google.com; s=arc-20160816; b=qyhrQTEizBF+YrjsrKRznsyJogaU191lZnwlnPWuihvYGo2KV3RYWO10o8G/1XmWU7 YeK/ujMmh9NmOjuJAD0XgefpkZKjDYouo72gCXLroZBHHQpkoTIIdujJlATUB7CbIljn ksIVxT9Gdw1ja1XaH2RmFfE5dmyGTfbxwSXV2+Hn91jMiF3ChmxEw6pdWVTLUek1J5uU 7+VL1eC6KiG/lwKChIiUI5D3fEQNUuhcfRBZulCBTvC+Fm6rIYxe/HbII29GiuigBUxi 6C+bFT5u23fCD0lYcjF9G9NOmtolMTMlCf3iCk6zflWCilR0SMc4WyNRsyUS+9E4Gso+ AIqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LvmWXRtGWT9R3WNFFzfM69HUUZTLJdLx3RX6w/RLwN8=; b=zLd4ufZkJqW5FMViIM5pq+RIDCLpGzFc4QteNs8oOlCZ+orLz+0l6EGrBOTNlQPWeM QPds0pfU8G87QVjUQJITVjnKzGvvGHGQsBPcJkH1mzS9QUQ+OPr/ZNvOnXDwiY09JD28 HiZK4ufYkQLiG/QFAqEfLI2/p0U3llu3YVl8hLK0QW2XVORiH25sIUYzyFEXPzDe+E7O IVNZMfYq1PSKz94oLmMiXxZbbThQugsPToLTSsVGIMcoWFLp66QUj4//hO4JZJXQJsRg GUcZktECIsnIsBd/MohZHxrsIBOslo5Ak0+IyLASm7EiMzfc5aS/mLgSPy7SjCW0fpnF OzTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qTUPUuia; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e23si535174edq.344.2019.09.24.01.08.39; Tue, 24 Sep 2019 01:08:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qTUPUuia; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438964AbfIXIIi (ORCPT + 26 others); Tue, 24 Sep 2019 04:08:38 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53670 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436523AbfIXIIh (ORCPT ); Tue, 24 Sep 2019 04:08:37 -0400 Received: by mail-wm1-f65.google.com with SMTP id i16so1034898wmd.3; Tue, 24 Sep 2019 01:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LvmWXRtGWT9R3WNFFzfM69HUUZTLJdLx3RX6w/RLwN8=; b=qTUPUuiaB1BbUrj1/J+eC4muw+BCr0E6ZHcwgfrV8I+uv7diyW8G8RVHouV/04bXSB 2y4pboyPEWtF5PGHbRRBDZMKUl2R4PowLAuv1CVw90DiALiuZT/9SWNpM0jtDEeOiQVO W5S1Mc0PJBQrV5/dpGE61cEcfWndDUamlixQYwH7lKoQeOfczOOh5SgXmdWXr9ypf5Wr x38S87iRhJBat9iEVEfuv3tOMGf+bsZ3j5DRS/00CPac229ZnqSReiFu3DBSzzpYcQtM 1+a5Mag4cbpMvU6iuHB76LP1jdiTQ1RooGE56ilT8W0ygz4b+OHsahXzk39PqNhQM4wi qAWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LvmWXRtGWT9R3WNFFzfM69HUUZTLJdLx3RX6w/RLwN8=; b=M8xDbWc53P8FI4k4jjKWjsKdJK/HGDIdIGwIDtmpxGaz/LNoYYACM5x7Jh6mKUDYLT TcxhE20BYkxKWEcg+DQG0Z+7B8Tj5CtTPKjZGbcyJhsRlYBSUyhmEIPkS8xqyko3BaV0 Cco+VNPKBQ+CaeTnRCXesRCUebah7bgJefHqEMOmr8bSt7KyeSGtm6UI4Kg30hINn1jo 8SCGfOIN+rEi4ndEe/JfQZkr9centa97gBQyv8JQO7KKm2Ee8SyW1UXUUasiZCCden08 RwQo5yI7s6LNZUxhDAiIKBRiljLCOT6M7jLU3GvBlqzRidV5mmlwin7IJU06j3+HVi81 QqVA== X-Gm-Message-State: APjAAAXY3Q0hXg3OylOYbQ+oCz0q2AaJbbmUQIdKvBF7s0lgnCGag1DT X1vvEVN5ID9TFWAhvpFOfyk= X-Received: by 2002:a1c:7f4f:: with SMTP id a76mr1575598wmd.117.1569312515832; Tue, 24 Sep 2019 01:08:35 -0700 (PDT) Received: from Red.local ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id u22sm1825256wru.72.2019.09.24.01.08.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Sep 2019 01:08:35 -0700 (PDT) From: Corentin Labbe To: davem@davemloft.net, herbert@gondor.apana.org.au, mripard@kernel.org, wens@csie.org Cc: linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe Subject: [PATCH v3 0/2] crypto: sun4i-ss: Enable power management Date: Tue, 24 Sep 2019 10:08:30 +0200 Message-Id: <20190924080832.18694-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello This serie enables power management in the sun4i-ss driver. Regards Changes since v2 ( https://lore.kernel.org/linux-arm-kernel/20190919051035.4111-2-clabbe.montjoie@gmail.com/T/ ): - depends on PM - fusioned suspend/resume functions with sun4i_ssenable/disable - fixed style problem Changes since v1: - Fixed style in patch #1 - Check more return code of PM functions - Add PM support in hash/prng - reworked the probe order of PM functions and the PM strategy Corentin Labbe (2): crypto: sun4i-ss: simplify enable/disable of the device crypto: sun4i-ss: enable pm_runtime drivers/crypto/Kconfig | 1 + drivers/crypto/sunxi-ss/sun4i-ss-cipher.c | 10 ++ drivers/crypto/sunxi-ss/sun4i-ss-core.c | 139 ++++++++++++++++------ drivers/crypto/sunxi-ss/sun4i-ss-hash.c | 12 ++ drivers/crypto/sunxi-ss/sun4i-ss-prng.c | 9 +- drivers/crypto/sunxi-ss/sun4i-ss.h | 2 + 6 files changed, 133 insertions(+), 40 deletions(-) -- 2.21.0