From patchwork Tue Aug 1 02:41:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lihuisong (C)" X-Patchwork-Id: 13335710 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E3865C001DE for ; Tue, 1 Aug 2023 02:44:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AoAJzEjUP5iZfImAEticF/hT1SYXbekCov5dXT8Czco=; b=zFeQGmDIe3pFiA L+RKov1fe8MQdXBCGltRvqyWFqlTPMkdaxYNUzTHDRhPtfOlXg/qnW0YFFaz1bvSF74L1L9akOPEk CivDvRCC1d+y8p05vbCdARPh0wqEdu9O7YdpwdeQoxha0WqB82TAnlvprnVLrX+jfe+NMCyjB2kFj irT0vpbt4GSEQrxbeNjLO7IT0FhGIAxQ+V+kl2nJmQ2MQrgM2OKz7RnM0eEdEX5/nU6vL8u4DHoT+ gytQCY7n4r85BdACOv1pcHM5s0mpiZEk3qH2ixcNWKswuJHGi5zXyCJaJA/mqcnhbGXhhhYi7pt+h joCUzY5QiRqlGI+jbr3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQfMs-000DbO-0w; Tue, 01 Aug 2023 02:44:14 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQfMn-000DYy-33 for linux-arm-kernel@lists.infradead.org; Tue, 01 Aug 2023 02:44:11 +0000 Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RFKBy0q8mzVjjk; Tue, 1 Aug 2023 10:42:18 +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.27; Tue, 1 Aug 2023 10:44:00 +0800 From: Huisong Li To: , , , , CC: , , , , , , Subject: [PATCH v6 0/2] soc: hisilicon: Support HCCS driver on Kunpeng SoC Date: Tue, 1 Aug 2023 10:41:17 +0800 Message-ID: <20230801024119.37215-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: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230731_194410_170458_A4137914 X-CRM114-Status: GOOD ( 13.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. --- v6: - fix the new entry in MAINTAINERS file to keep alphabetical order v5: - fix document format to eliminate warning of making htmldocs. v4: - remove useless header and reorder linux header. - use __ATTR_RO to replace __ATTR for port attributes. - add MODULE_DEVICE_TABLE to autoload the driver. - update the date to "November 2023". - fix some comments about HCCS description. 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 | 81 ++ MAINTAINERS | 7 + drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/hisilicon/Kconfig | 20 + drivers/soc/hisilicon/Makefile | 2 + drivers/soc/hisilicon/kunpeng_hccs.c | 1282 +++++++++++++++++ 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