From patchwork Fri Aug 13 09:50:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weili Qian X-Patchwork-Id: 12435201 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C401C4338F for ; Fri, 13 Aug 2021 09:53:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1187B60F51 for ; Fri, 13 Aug 2021 09:53:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239913AbhHMJyV (ORCPT ); Fri, 13 Aug 2021 05:54:21 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:14202 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239318AbhHMJyV (ORCPT ); Fri, 13 Aug 2021 05:54:21 -0400 Received: from dggeme768-chm.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4GmJlz3bkwz1CW0m; Fri, 13 Aug 2021 17:53:35 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by dggeme768-chm.china.huawei.com (10.3.19.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 13 Aug 2021 17:53:52 +0800 From: Weili Qian To: , CC: , , , Subject: [PATCH v2 0/5] crypto: hisilicon - support runtime PM for accelerator devices Date: Fri, 13 Aug 2021 17:50:04 +0800 Message-ID: <1628848209-26398-1-git-send-email-qianweili@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggeme768-chm.china.huawei.com (10.3.19.114) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Kunpeng930 accelerator devices support runtime power management, this patchset enables runtime PM for accelerator devices. --- v1->v2: fix warning --- Weili Qian (5): crypto: hisilicon - using 'debugfs_create_file' instead of 'debugfs_create_regset32' crypto: hisilicon - add runtime PM ops crypto: hisilicon - support runtime PM for accelerator device crypto: hisilicon - change parameter passing of debugfs function crypto: hisilicon - check _PS0 and _PR0 method drivers/crypto/hisilicon/hpre/hpre_main.c | 60 ++++- drivers/crypto/hisilicon/qm.c | 430 +++++++++++++++++++++++++----- drivers/crypto/hisilicon/qm.h | 8 + drivers/crypto/hisilicon/sec2/sec_main.c | 58 +++- drivers/crypto/hisilicon/zip/zip_main.c | 57 +++- 5 files changed, 521 insertions(+), 92 deletions(-)