From patchwork Wed Aug 28 10:49:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lihuisong (C)" X-Patchwork-Id: 13781114 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 C827DC54ED0 for ; Wed, 28 Aug 2024 11:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version: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:In-Reply-To:References:List-Owner; bh=eZz8ROIcCr1ivHnQfl4pyvABFTbgBMxILqvO2OZQUg8=; b=sAvwXXc08k/ZQgmSO917YQUYqV keWshBV/4lHOEM9t+poQmiDz5BCCbp+mggSTf1v3MRIZCKi3mdUAV3koIQj1NRCxblVkF552tveCq EifmqXf4HV4Hmj2HPtCHza524nmgtkOIef4+sXCSceHCuW2VyTZGWWPIvdaxe+L0L4pu/ZD+WeUcR CtB8dMnIRznE2LJbfTMhQEnNgBF3S0JeJfyVayQz15aGIRRRq+aPXzRduHfOvz6NE+mNCqJjZD1Is mMuSSJRmEM132VrgBtpq8JevB7KDl+j0Gh+Qkri7H3ytLENVCzHYnsd7qLR01XGvx0vvFgrZuGsCW cW24FKTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjGT8-0000000F3Jy-1jsZ; Wed, 28 Aug 2024 11:04:06 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjGPN-0000000F2R5-3tZT for linux-arm-kernel@bombadil.infradead.org; Wed, 28 Aug 2024 11:00:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=eZz8ROIcCr1ivHnQfl4pyvABFTbgBMxILqvO2OZQUg8=; b=oLlhaM4u0bp/bD2qjlN4ukUu8/ LJ6KA1VICv9kOlFfvBa9p6mfrSEdv8VV7YucITPzE/J8YqF/m05q1XzHxoeiZQIfzRWIKeYZ1LMQL odCawn0AZolGJitDLs7WT1tn8Em2B0jwTCR4iNm+WgwKEm+JcMd4+a9Ip52j5Q0Qge/3Y77u9/CRy /3fZLa6206WngVDNb2FSiMn6CGn0G+gbYrgSPqhpqcZX7aREblTvhT1AkhLMXB9a1hboJlACg7ETk NdAX/rVSlUXxyh9fQ6+vurjKwC2e47K58bUH6Vq4Z0kfGnKQcaddXECEPsb7pYpWnozrPhu53pg7i vRpcjdhA==; Received: from szxga03-in.huawei.com ([45.249.212.189]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjGPK-0000000B8wj-1dEs for linux-arm-kernel@lists.infradead.org; Wed, 28 Aug 2024 11:00:12 +0000 Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Wv1Wz5HPCzQr0J; Wed, 28 Aug 2024 18:54:55 +0800 (CST) Received: from kwepemm600004.china.huawei.com (unknown [7.193.23.242]) by mail.maildlp.com (Postfix) with ESMTPS id 873861401F2; Wed, 28 Aug 2024 18:59:45 +0800 (CST) Received: from localhost.localdomain (10.28.79.22) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 28 Aug 2024 18:59:44 +0800 From: Huisong Li To: CC: , , , , , , , Subject: [PATCH v3 0/6] Add some features and bugfix for kunpeng_hccs Date: Wed, 28 Aug 2024 18:49:50 +0800 Message-ID: <20240828104956.20214-1-lihuisong@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600004.china.huawei.com (7.193.23.242) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240828_120011_040369_C7BA4623 X-CRM114-Status: GOOD ( 12.14 ) 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 is aimed to support the low power feature and add used HCCS types sysfs. And fix some bugfix to harden codes by the way. --- v3: - add Reviewed-by: Jonathan Cameron . - drop 'none' string print according to Jonathan's suggestion. - early return in hccs_wait_serdes_adapt_completed. - fix commit log in patch[2/6], patch[3/6] and patch[5/6] v2: - remove "this patch" words in commit log suggested by Krzyszto. - use for_each_set_bit to replace the cycle scanning all HCCS IP. - add a patch to rename the 'lane_mode' to 'max_lane_num' to make it easy to see. - add doc description into the code patch. - rename the name of the low power interface. - adjust the increasing and decreasing lane interface description. - do not create available_inc_dec_lane_types when no HCCS type support low power. --- Huisong Li (6): soc: hisilicon: kunpeng_hccs: Fix a PCC typo soc: hisilicon: kunpeng_hccs: Return failure on having not die or port information soc: hisilicon: kunpeng_hccs: Add the check for base address and size of shared memory soc: hisilicon: kunpeng_hccs: Fix the 'lane_mode' field name in port info structure to 'max_lane_num' soc: hisilicon: kunpeng_hccs: Add used HCCS types sysfs soc: hisilicon: kunpeng_hccs: Support low power feature for the specified HCCS type .../sysfs-devices-platform-kunpeng_hccs | 45 ++ drivers/soc/hisilicon/Kconfig | 7 +- drivers/soc/hisilicon/kunpeng_hccs.c | 514 +++++++++++++++++- drivers/soc/hisilicon/kunpeng_hccs.h | 33 +- 4 files changed, 580 insertions(+), 19 deletions(-)