From patchwork Wed Sep 15 09:50:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shameerali Kolothum Thodi X-Patchwork-Id: 512194 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp6716jao; Wed, 15 Sep 2021 02:51:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynU89gTJqer6w24KEANdZn6NiVb8mNGx0JBuEfromVDjZJKiNx6Mvp+PyMjlNdsRg/7mil X-Received: by 2002:a05:6e02:1b89:: with SMTP id h9mr6767608ili.297.1631699485421; Wed, 15 Sep 2021 02:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631699485; cv=none; d=google.com; s=arc-20160816; b=COFNp+F/GcZxZSYxW0etOYkMap5qAST4gz0+PQnRXg+ycJ/9d7FIfZ+fdCyA4dRsTc ysaZgW5imSPxdDaxDr3RwZTeGE7qmOEDcQA1DLdxPEIs98IW/0NktFymqEBSaoxz8i3+ ubHkFEbW7vcmT23aCLQSSYJHGHIyiR0rZu6PtDscW+XCAQBySh9hVHlC0woX0pHgmaOb ie9M8oXdbPWaS3LaKj+rQM6T486DppT7hIYJdKmvAo7Lws6jikiQ5dQ5q1tWqZMubC+V RhDSSdiGzSTt86J0Q0Qm66gL8luTHZtktmdmgttP67I1uZCpQ2lfWIJMKU8QBDaDVxkY JFnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=SjMMGzvtT443DX/jSLwnKwRm9uAh2nNrVyio9ahttQU=; b=ez8Q4+rUDdd1Dbo2NVJbQEyMKNVE2EYSShULIoGbG/PZ4XOxOEhIkpoA98sCUs2EVv TEKmTSYF/VYuUdKvZuiTljzt4jUEiagW9N/tiBOgVvmZ/9vvMmtZ+x0omSOW5IVvh+4c KVpyQSLbev/ZXBY9O35augAbtGJPoLjtbifnbgpHjU0dbEBwjKjuu2t2oS7horNa/1eb UrQixB0j3mfKS3YZRGhS24tGLqD9AM1dtqnxzgtiiQFD36kQ4uMObvQStOCmZfXkUnQD e2IW927HUHv1Yabs+oZ9qk8Emcn6eOJCR/fcKYhNrek79To+lfuINORFQC/RkLgCbgm6 zj1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k12si13328281jac.101.2021.09.15.02.51.25; Wed, 15 Sep 2021 02:51:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237393AbhIOJwm (ORCPT + 3 others); Wed, 15 Sep 2021 05:52:42 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3815 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237307AbhIOJwa (ORCPT ); Wed, 15 Sep 2021 05:52:30 -0400 Received: from fraeml736-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4H8b5M1PYcz67bjB; Wed, 15 Sep 2021 17:48:55 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml736-chm.china.huawei.com (10.206.15.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 15 Sep 2021 11:51:09 +0200 Received: from A2006125610.china.huawei.com (10.47.83.177) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 15 Sep 2021 10:51:03 +0100 From: Shameer Kolothum To: , , CC: , , , , , , , Subject: [PATCH v3 1/6] crypto: hisilicon/qm: Move the QM header to include/linux Date: Wed, 15 Sep 2021 10:50:32 +0100 Message-ID: <20210915095037.1149-2-shameerali.kolothum.thodi@huawei.com> X-Mailer: git-send-email 2.12.0.windows.1 In-Reply-To: <20210915095037.1149-1-shameerali.kolothum.thodi@huawei.com> References: <20210915095037.1149-1-shameerali.kolothum.thodi@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.83.177] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Since we are going to introduce VFIO PCI HiSilicon ACC driver for live migration in subsequent patches, move the ACC QM header file to a common include dir Signed-off-by: Shameer Kolothum --- drivers/crypto/hisilicon/hpre/hpre.h | 2 +- drivers/crypto/hisilicon/qm.c | 2 +- drivers/crypto/hisilicon/sec2/sec.h | 2 +- drivers/crypto/hisilicon/sgl.c | 2 +- drivers/crypto/hisilicon/zip/zip.h | 2 +- drivers/crypto/hisilicon/qm.h => include/linux/hisi_acc_qm.h | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename drivers/crypto/hisilicon/qm.h => include/linux/hisi_acc_qm.h (100%) -- 2.17.1 diff --git a/drivers/crypto/hisilicon/hpre/hpre.h b/drivers/crypto/hisilicon/hpre/hpre.h index e0b4a1982ee9..9a0558ed82f9 100644 --- a/drivers/crypto/hisilicon/hpre/hpre.h +++ b/drivers/crypto/hisilicon/hpre/hpre.h @@ -4,7 +4,7 @@ #define __HISI_HPRE_H #include -#include "../qm.h" +#include #define HPRE_SQE_SIZE sizeof(struct hpre_sqe) #define HPRE_PF_DEF_Q_NUM 64 diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 369562d34d66..e791a4fe47bc 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -15,7 +15,7 @@ #include #include #include -#include "qm.h" +#include /* eq/aeq irq enable */ #define QM_VF_AEQ_INT_SOURCE 0x0 diff --git a/drivers/crypto/hisilicon/sec2/sec.h b/drivers/crypto/hisilicon/sec2/sec.h index d97cf02b1df7..c2e9b01187a7 100644 --- a/drivers/crypto/hisilicon/sec2/sec.h +++ b/drivers/crypto/hisilicon/sec2/sec.h @@ -4,7 +4,7 @@ #ifndef __HISI_SEC_V2_H #define __HISI_SEC_V2_H -#include "../qm.h" +#include #include "sec_crypto.h" /* Algorithm resource per hardware SEC queue */ diff --git a/drivers/crypto/hisilicon/sgl.c b/drivers/crypto/hisilicon/sgl.c index 057273769f26..534687401135 100644 --- a/drivers/crypto/hisilicon/sgl.c +++ b/drivers/crypto/hisilicon/sgl.c @@ -3,7 +3,7 @@ #include #include #include -#include "qm.h" +#include #define HISI_ACC_SGL_SGE_NR_MIN 1 #define HISI_ACC_SGL_NR_MAX 256 diff --git a/drivers/crypto/hisilicon/zip/zip.h b/drivers/crypto/hisilicon/zip/zip.h index 517fdbdff3ea..1997c3233911 100644 --- a/drivers/crypto/hisilicon/zip/zip.h +++ b/drivers/crypto/hisilicon/zip/zip.h @@ -7,7 +7,7 @@ #define pr_fmt(fmt) "hisi_zip: " fmt #include -#include "../qm.h" +#include "linux/hisi_acc_qm.h" enum hisi_zip_error_type { /* negative compression */ diff --git a/drivers/crypto/hisilicon/qm.h b/include/linux/hisi_acc_qm.h similarity index 100% rename from drivers/crypto/hisilicon/qm.h rename to include/linux/hisi_acc_qm.h