Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3864973rdb; Thu, 14 Sep 2023 05:17:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUKinBO4tJH2sP99oR23vxg7SvvCcDhev0RFyq0/w4am8WpOlsaXsMjdJd1B0mGSAiFnsC X-Received: by 2002:a05:6870:8290:b0:1ba:2a58:b15e with SMTP id q16-20020a056870829000b001ba2a58b15emr6132622oae.2.1694693877912; Thu, 14 Sep 2023 05:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694693877; cv=none; d=google.com; s=arc-20160816; b=V+ZDg/8dZViD2egYzD4MVmIMoazOXzCLTTWUv2Wlz4vtCRwVV+WMuMVxREtf1Lc3F1 uBu5vg+wahx8HG9eEdbmqnXfq9eFwxyR/3s+fI+hkaIHNQ90X7VIFNa1xi+ycX9D66eF IFiWp9fo0OB2/oMj9FSLjbxd6P7ttyedw46xbQXJr8XnAWwPB31dOpaz3I7CyRfJtHtn 04xsf1VzIqYPGm03UAjYtqlcgfikAP6g+4JW8O/AAvqg6pZP/nwTOL7F+oQFUiQavHPK NKez1/M9DuGE/QGUasWUT1Yegz+iHjBUY1s/GPatm3o4pyAozSN7YHTSr8ouHgc/XQBj eaCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IW4mLgmBY+b7dkD515MeinvlgD+7VUY0ebbrgqceikE=; fh=8tgybbaVhSkauar+34G+pTJkmvxafp0S1qbhFbkwUMw=; b=C3A1jqz5ApdqnOGukvljNV5gaj5uAA1xXAWjl7uwOyZxnDuej7RnG7OjXjTkL8xV3U UVvcR0ua/AYC99XbodsDjpMIbjxb0ygOKYb6AnQ4M43IsYm3JlamnAMgeNPzHJO59y80 6cgZaPK1y4mVo+CRWtKKvYZiZrdeA+IGsNyO7Bj2rxW6/rL60jOLzJlg6n/RA9I5kzAx 7uZQoMZ74C5ZN+4Vq+6wCy9F6rb1plur+1OtIopLbquuFrlCdb6mVanoCSqCpokGFh6G elV89a2y7fWgp48sAqYzDExvmbEoDEixpa0qy3DffO9typxLq3+7oy1GRxxgYuMUn6tX LQEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XlVQBIJT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id f24-20020a637558000000b00563dd9b6da6si1386447pgn.718.2023.09.14.05.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:17:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XlVQBIJT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 70CF482DDACC; Thu, 14 Sep 2023 01:58:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236578AbjINI6q (ORCPT + 99 others); Thu, 14 Sep 2023 04:58:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236434AbjINI6p (ORCPT ); Thu, 14 Sep 2023 04:58:45 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06441CF3; Thu, 14 Sep 2023 01:58:40 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E8jJg9000343; Thu, 14 Sep 2023 08:58:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=IW4mLgmBY+b7dkD515MeinvlgD+7VUY0ebbrgqceikE=; b=XlVQBIJTN0r7TSQMOAwPvkQ2vPBfZqs5avRiADFCw74b2AnyYlyEG0goTgrQ0zOFTM/I 3buA9lB+aCYrqTgGYUmXKQ7yQJKUwlXhryybZUrE8nFr7TGKwZZ/VhslTpXy2W7Uu9ML mI6pmRIFyTcnbXY2FRw/rNHnxXyAXMl7PYXb35/fq4m9L+jLfF893ok9OCoSLF/cags1 qqrXxQKGBv2XQ+nfDuJ1ZEwtP8jWXQlw15cx+OETX3ySYTp/a71HqHo46Ss3Krje/cwc x94aafpBvqgcK/OR0Z5ZsAdJL4pIVi9TjtERZKyB/DYD1Uz28ojHS+A3Yz/I7orK/Njp 9Q== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3v4h8ha7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 08:58:24 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E8wN4R016665 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 08:58:23 GMT Received: from [10.253.32.174] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 14 Sep 2023 01:58:19 -0700 Message-ID: Date: Thu, 14 Sep 2023 16:58:16 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v7 4/4] clk: qcom: add clock controller driver for qca8386/qca8084 To: Krzysztof Kozlowski , , , , , , , , , , , CC: , , , , References: <20230914054639.13075-1-quic_luoj@quicinc.com> <20230914054639.13075-5-quic_luoj@quicinc.com> <357805c5-bedb-8972-bcf1-fabaaaf90ad9@linaro.org> <1a1922ec-a8ae-4a42-d8a9-921450592213@quicinc.com> Content-Language: en-US From: Jie Luo In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: SZbgNemHIHIg1FOb40FhWH-VZaDUV3uL X-Proofpoint-GUID: SZbgNemHIHIg1FOb40FhWH-VZaDUV3uL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_07,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 clxscore=1015 spamscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 bulkscore=0 mlxlogscore=689 adultscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140076 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 01:58:48 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On 9/14/2023 3:58 PM, Krzysztof Kozlowski wrote: > On 14/09/2023 09:52, Jie Luo wrote: >> >> >> On 9/14/2023 2:15 PM, Krzysztof Kozlowski wrote: >>> On 14/09/2023 07:46, Luo Jie wrote: >>>> The clock controller driver of qca8386/qca8084 is registered >>>> as the MDIO device, the hardware register is accessed by MDIO bus >>>> that is normally used to access general PHY device, which is >>>> different from the current existed qcom clock controller drivers >>>> using ioremap to access hardware clock registers. >>>> >>>> MDIO bus is common utilized by both qca8386/qca8084 and other >>>> PHY devices, so the mutex lock mdio_bus->mdio_lock should be >>>> used instead of using the mutex lock of remap. >>>> >>>> To access the hardware clock registers of qca8386/qca8084, there >>>> is special MDIO frame sequence(three MDIO read/write operations) >>>> need to be sent to device. >>>> >>>> Signed-off-by: Luo Jie >>>> --- >>>> drivers/clk/qcom/Kconfig | 9 + >>>> drivers/clk/qcom/Makefile | 1 + >>>> drivers/clk/qcom/nsscc-qca8k.c | 2178 ++++++++++++++++++++++++++++++++ >>>> 3 files changed, 2188 insertions(+) >>>> create mode 100644 drivers/clk/qcom/nsscc-qca8k.c >>>> >>>> diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig >>>> index 865db5202e4c..c95ada6a1385 100644 >>>> --- a/drivers/clk/qcom/Kconfig >>>> +++ b/drivers/clk/qcom/Kconfig >>>> @@ -203,6 +203,15 @@ config IPQ_GCC_9574 >>>> i2c, USB, SD/eMMC, etc. Select this for the root clock >>>> of ipq9574. >>>> >>>> +config IPQ_NSSCC_QCA8K >>>> + tristate "QCA8K(QCA8386 or QCA8084) NSS Clock Controller" >>>> + depends on MDIO_BUS || COMPILE_TEST >>> >>> This is SoC is for both ARM and ARM64 worlds? >>> >> Thanks Krzysztof for the comments. >> This chip is independent of the ARCH, which just depends on the MDIO >> bus, both mips and arm are supported. > > There is no ARCH_QCOM on MIPS, so it's limited to ARM. Then add > restriction to ARM || COMPILE_TEST. > > Best regards, > Krzysztof > okay, will add the depends on ARM, thanks Krzysztof.