From patchwork Tue May 30 11:27:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lihuisong (C)" X-Patchwork-Id: 13259778 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CEF6CC7EE23 for ; Tue, 30 May 2023 11:29:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) id 9A6FEC4339B; Tue, 30 May 2023 11:29:48 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id DF4A3C433EF; Tue, 30 May 2023 11:29:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.kernel.org DF4A3C433EF Authentication-Results: smtp.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4QVqnF2zNVz18Lc8; Tue, 30 May 2023 19:25:05 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 30 May 2023 19:29:42 +0800 From: Huisong Li To: , , , , , , List-Id: CC: , , , , , Subject: [PATCH v3 0/2] soc: hisilicon: Support HCCS driver on Kunpeng SoC Date: Tue, 30 May 2023 19:27:44 +0800 Message-ID: <20230530112746.2767-1-lihuisong@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230424073020.4039-1-lihuisong@huawei.com> References: <20230424073020.4039-1-lihuisong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected This series add HCCS driver to query the health status and port information of HCCS on Kunpeng SoC as well as document all sysfs entries provided by this driver. --- v3: - replace "using_status" with "enable" attribute. - fix some comments in codes. --- v2: - Document all sysfs entries provided by driver. - drop 'pcc_type' and 'intr_mode' in struct hccs_dev. - using _CRS with PCC GAS to get channel ID instead of _DSD. - replace readw_relaxed_poll_timeout with readw_poll_timeout. - use sysfs_emit() instead of sprintf(). - drop ACPI_PTR in hccs_driver. - drop useless log during the probe phase. Huisong Li (2): soc: hisilicon: Support HCCS driver on Kunpeng SoC doc: soc: hisilicon: Add Kunpeng HCCS driver documentation .../sysfs-devices-platform-kunpeng_hccs | 76 + MAINTAINERS | 7 + drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/hisilicon/Kconfig | 19 + drivers/soc/hisilicon/Makefile | 2 + drivers/soc/hisilicon/kunpeng_hccs.c | 1288 +++++++++++++++++ drivers/soc/hisilicon/kunpeng_hccs.h | 196 +++ 8 files changed, 1590 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs create mode 100644 drivers/soc/hisilicon/Kconfig create mode 100644 drivers/soc/hisilicon/Makefile create mode 100644 drivers/soc/hisilicon/kunpeng_hccs.c create mode 100644 drivers/soc/hisilicon/kunpeng_hccs.h