From patchwork Sat Jul 29 08:26:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lihuisong (C)" X-Patchwork-Id: 13333041 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 7B59EC001DC for ; Sat, 29 Jul 2023 08:30:04 +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=9JKHOrTEuI0axMCohj21Ahl2YALjEhspaSEXz+SPWtk=; b=A29NKt53E1+xqS SbvDtWQNB+J8z7pWBHle2RZMFPhZIyVBM1O/ncRezIRAh7+AxzfLeeatDPWaLtj7jzoD8/gYq4Y4Q LRuA+ZVEQT9Sn22R2l1xFZUnrAJeVPCXTY6Yt/Qx7JuNqwI9uxqLpyqlRLECIMvmPr8Vs6SWFOTfs KhKbO1l1+uNMSJ7xrYYjLi2KwPXyIDMtXXgVM8mhCebTnPQipKxcVeu/3+AIpQ/XAbbRMIY6C4sRp jhizcP1zxR4+LImzyCzeQIMbQhuBY1Raw20ZNjRfZ24iwK8a0d75W8bbYImRBPThO+k+BJy7mafAd 7jnipg5PrzVyozGgd8Tw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qPfKa-006mlV-0Q; Sat, 29 Jul 2023 08:29:44 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qPfKQ-006mhI-0J for linux-arm-kernel@lists.infradead.org; Sat, 29 Jul 2023 08:29:35 +0000 Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RCczZ2VHfzLnvQ; Sat, 29 Jul 2023 16:26:34 +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; Sat, 29 Jul 2023 16:29:11 +0800 From: Huisong Li To: , , , , CC: , , , , , , Subject: [PATCH v5 0/2] soc: hisilicon: Support HCCS driver on Kunpeng SoC Date: Sat, 29 Jul 2023 16:26:30 +0800 Message-ID: <20230729082632.43224-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230729_012934_358194_0B274DD3 X-CRM114-Status: GOOD ( 11.71 ) 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. --- 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