From patchwork Thu Sep 19 05:10:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 174020 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp547758ill; Wed, 18 Sep 2019 22:10:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcRgoEF9qSvnzrAJ6+46DQaXeGodT0rgGUo2TPTKf8T7wSo4CFzkMquxqW2UP6xQJ2ddxM X-Received: by 2002:a50:be87:: with SMTP id b7mr14339927edk.37.1568869845246; Wed, 18 Sep 2019 22:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568869845; cv=none; d=google.com; s=arc-20160816; b=NON3z03FUQoRMexVpktPDmAR569mivnTiZFgyl+Ux76i/rtJJJ7kz3QyJC7wfNlf/e 8WM7U8U2VAafHOcYQdskK4//CQRF+z1DVhS4YrNi/KiuyUFlP4jWzEkzEy3lCI6Cq09K zl41ock4E89Jn98PAQxaEt7UloBDjU+tgsZ6TPo9OILONOyRJzwVbCLilFcVklbQucOs v2P55rnhRLIC2nv5h/Y2Ym+m40vgmLMEnRxwi0XqcQxKtvL781ez3SGCefOBrl9Lwy82 /QeEpVMMW/w1OTtgzM7M8K1Vgsm49iEkyuSB2WI1H6OCzhq9BqyB9cNq8bX1sOc9pUDg wRJg== 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=ttCTUHrEZ8RqxMqrfUks/MJVxPs2athVlNQVJH23ON0=; b=nn6BifoXRUcKFD2Hd1wDwBg/n8hB8tU9oxWMW+FYBSV6QrFRd0CPVfs5c7lYaHW2Pd h6ZN8R9d7XfVFYxhx6eD8xWdQWw5HMglSrPtIm9DSgucSVNzJ1FTscTNgf4YcsmvUt9k t8RFbG4yalM5whd/446NuGB/C5CwSRABn7TuPPgZAz3uE1EVpovo5+5t4RoXOuMD047s b5duGWK8Y1H7fl2fnZlmJG0aYr2faUlW/GNvHiV/DRJzxWBSxOShQG7iWr5lOc5CMVhF wxkc4yuRWVPsoc8vd3jVGJDCUZGGByuQzIDiRoyHzb1l3JwpidwvGU7QinOpm918na30 hpsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pdgjowYL; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 jz16si3814909ejb.116.2019.09.18.22.10.44; Wed, 18 Sep 2019 22:10:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=pdgjowYL; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 S1731757AbfISFKk (ORCPT + 3 others); Thu, 19 Sep 2019 01:10:40 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43157 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730949AbfISFKk (ORCPT ); Thu, 19 Sep 2019 01:10:40 -0400 Received: by mail-wr1-f68.google.com with SMTP id q17so1556049wrx.10; Wed, 18 Sep 2019 22:10:39 -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=ttCTUHrEZ8RqxMqrfUks/MJVxPs2athVlNQVJH23ON0=; b=pdgjowYLRCsuSv+iBZ5rHqIu+XC7Y9/cD2khPCOXEgPLOtByZUabXyd+pJgoS/hJjp 5Ang/uWeIaLhscF6XMOZNYeYPwVJZ6BVKxSZj6aQLbLJxrzjx7GMceAcyq6bi+JjOKah pnZZq33rabWGrHt4TwpO+ApAcTm2EbXb1pVqCRVjWE8wiI4zPoUNfnjv76JJeiVc6CcW towxbanDYZi+wCkEt0gUi8excCGijYHtQyPGRzGC/YFBiQ0k3GBlaQO8jQStkzutmkdv c+UMU7Dtd54b6Y5hndx9o3L9vusx8IPqMHjWjYDrcuPaYzQkv5zVKKngNE5988Ire5rz UK2A== 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=ttCTUHrEZ8RqxMqrfUks/MJVxPs2athVlNQVJH23ON0=; b=KnMs6F5eYUghZ02TkS6cnbJwKupU11CW421YmCI17Jxao1Q03lstBnO+g2kR3VAC68 OjtNziVcY3dK/Mgv7Yf1BUxD1C7s1ocfW4RDH3EWn/bqOFXzhzY7Qmz+GHccKf8HzK4U NWOfyiaKV9Kas8xUk1uGaVM57iQYgXPilj9YuE9uum7GEA7yNrs0jwkqs7vnrrpPtJtM K7Rxqa9h/z+ICMqWZsboXEW+LtGqF2xnzArDpkR2tGmGZZ71Y7xVZjZ4KOZ9oNaBV9Wt Imb0w+D+XpgfmGZgMXQmRJytaYmb+mdAUM3FuA6ct8MeJ4L/K9Zw/549fDkLI1eIOIK1 dkcw== X-Gm-Message-State: APjAAAVBDD1cCZno1RHYXBFqLMtQp08I+gFYPlvQzUaDAztyaKmrg2b0 Q+Cvareccy8nift3WZim3QA= X-Received: by 2002:adf:f401:: with SMTP id g1mr5140106wro.275.1568869839395; Wed, 18 Sep 2019 22:10:39 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id 94sm6575552wrk.92.2019.09.18.22.10.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Sep 2019 22:10:38 -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 v2 0/2] crypto: sun4i-ss: Enable power management Date: Thu, 19 Sep 2019 07:10:33 +0200 Message-Id: <20190919051035.4111-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello This serie enables power management in the sun4i-ss driver. Regards 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/sunxi-ss/sun4i-ss-cipher.c | 9 ++ drivers/crypto/sunxi-ss/sun4i-ss-core.c | 157 ++++++++++++++++------ 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 + 5 files changed, 149 insertions(+), 40 deletions(-) -- 2.21.0