From patchwork Sat Nov 5 09:53:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "yekai (A)" X-Patchwork-Id: 1214 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp905980wru; Sat, 5 Nov 2022 03:01:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5R/dGDIAvxsQN1Ys3ZdmPth68oolb+MPlKM21GyJx/AJe2+ZxM+7BAu4ltkJNUdd09bG/A X-Received: by 2002:a17:907:a05c:b0:7ad:f563:815d with SMTP id gz28-20020a170907a05c00b007adf563815dmr21049276ejc.371.1667642511968; Sat, 05 Nov 2022 03:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667642511; cv=none; d=google.com; s=arc-20160816; b=VJKR1kcrb8Jk5Jz8deo46J/mXstmD0hv/bqFjk+qPIn8owN0iLc+S6IFDcRAqCq9OX m/0yFWxhMEB+bzHPu+mhp9sJd64OM0aLPh63Kjnn2VSQ/e3VdJGqUQunASuINstn+8Vj uy16wEU6NL44xGmFGbH+5p/LLtqZD/GLI9MOFe/F6yz9W+WfQd9vO7caVsH++v1XM74H gKDAaJe6CZDLw2PsaI829YKaEOZ2/Cos+G4BPd6Lio10d48wl1EyEQB/VZbSkJ3AZey3 T7ErV7dttgAVyUR4J8IJ3xdGJwkI6lE9TrWoRO3n2T6DP158/63STJVEc8kEVme6bsgV SHWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=vAxM+XyB8JPNQe/Ytennu0/nIjzPUqHV6fCgSe+QOBQ=; b=DoM+wo7arnyN1FneIvsYs97NPeKORBrzpqVcKKAHx6w6bwqm+nKSlCHLc3mCqo0QQt irQZNjuj5sKv0nq+T9gxLhQKs8uLTj3FK0SCN/E7ZRp/jVOQYqV00QrQUooJmSJh3iJp yaEzDTJaomABl+UW6iNQJnvbqLyxV4UE+4dtvjJjd1rfiUZqygi5zO29mYcGu5T5pvQs CPAejHSmuhaSjEoRFndvhoByVQwzUYy5MdQnI7b6OUKLQA3tQp8azOZOAM/VXoWjjr0t 2r4QZdwom8mJb/M/i9Aeairj9kdfd9509Hua2FM6JOmt/7N+TkZ0VdtlG9ye1WPs3miw b4vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc5-20020a1709078a0500b00783d1a13d69si2127500ejc.231.2022.11.05.03.01.28; Sat, 05 Nov 2022 03:01:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbiKEKAB (ORCPT + 99 others); Sat, 5 Nov 2022 06:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiKEJ77 (ORCPT ); Sat, 5 Nov 2022 05:59:59 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7223718B36; Sat, 5 Nov 2022 02:59:58 -0700 (PDT) Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4N4CYw2fTgzpWC9; Sat, 5 Nov 2022 17:56:20 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500025.china.huawei.com (7.185.36.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 5 Nov 2022 17:59:56 +0800 Received: from huawei.com (10.67.165.24) by dggpeml100012.china.huawei.com (7.185.36.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 5 Nov 2022 17:59:56 +0800 From: Kai Ye To: CC: , , , Subject: [PATCH v2 0/4] crypto: hisilicon/qm - reconstruct and optimize the debugfs code Date: Sat, 5 Nov 2022 09:53:53 +0000 Message-ID: <20221105095357.21199-1-yekai13@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml100012.china.huawei.com (7.185.36.121) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748649914960611138?= X-GMAIL-MSGID: =?utf-8?q?1748649914960611138?= Split a debugfs.c from qm to reduce the qm code complexity. And optimize the process of the command dumping. Some optimizations on command dumping in debugfs.c file code. changes v1->v2: - delete a redundant line. Kai Ye (4): crypto: hisilicon/qm - modify the process of regs dfx crypto: hisilicon/qm - split a debugfs.c from qm crypto: hisilicon/qm - the command dump process is modified crypto: hisilicon/debugfs - delete redundant null assignment operations drivers/crypto/hisilicon/Makefile | 2 +- drivers/crypto/hisilicon/debugfs.c | 1172 ++++++++++++++++++ drivers/crypto/hisilicon/hpre/hpre_main.c | 6 +- drivers/crypto/hisilicon/qm.c | 1360 ++------------------- drivers/crypto/hisilicon/qm_common.h | 87 ++ drivers/crypto/hisilicon/sec2/sec_main.c | 6 +- drivers/crypto/hisilicon/zip/zip_main.c | 6 +- include/linux/hisi_acc_qm.h | 8 +- 8 files changed, 1381 insertions(+), 1266 deletions(-) create mode 100644 drivers/crypto/hisilicon/debugfs.c create mode 100644 drivers/crypto/hisilicon/qm_common.h