Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp741372rdg; Wed, 11 Oct 2023 04:27:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3yj4OnXBQQXpbEj30S2PLwQYzSOD9Gsd+weCvjFpkeBgQEYQdIClUqFPS2tqIjlkXEiYr X-Received: by 2002:a05:6a00:17a1:b0:690:c1a6:1c3b with SMTP id s33-20020a056a0017a100b00690c1a61c3bmr20850547pfg.33.1697023624598; Wed, 11 Oct 2023 04:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697023624; cv=none; d=google.com; s=arc-20160816; b=TRnWbCjq0wicG0yknonjlI1AhMMCXe1/IT1tqbieaW0ue+zER3RqCIfSNuXXsB1EeL 3UmtBFa+wocGR67UrABH7DUnAjyGx/syS7s9X5GQFG5zR2Fs/9UYroB9IJJJeKQh0W3a Ivu0Wogc8WEBJOrXsLbd9AVrENoJcD2s4zNL9CLeIf04+xXXZmIRXIM7qxcOwUiqcH4B 65LWyyNk641jIFE/yqToAON9m2UDjNnuiFbfZnG0msTT0HQBgE8oYA8XbxmOQTAiCvM9 M/X65vQFCOwx+cNyr2Sua+ODr4OzCKJS+6UTQxLqiWRd50tCM3QqN6Uqh+1omilBGhpX y+Ig== 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=tnGoTFkoJrPWMi3LmZbVVptnwMyne89C+2c9NCHF0uo=; fh=yRYriH5fc4P8Il9wwd6WpjAM1qvKheuJBfVhRSoJQdg=; b=FLb6jezRLf80CsB/JvuMVXBEtSFndMIGUz5Ge3NPLF5ysCqZnM9pso0DHqSBw00ZPT ioP7zZvWNIulvINuiJKMyURqTc80qZ9berU5FUQqibODQBjevrrEsjESNOMEMmzu5xr7 yGCJu7mcpVO1oOPpfFIBq19Easn0d9B8bCeFRARzcuoOTJTmPSP7yNYFlLOYt9J4sSx+ XEAlSpVXns5teBnDV4/FvHWY8OwV9rLdJ8Mc6J3DbKF51x1/7VQW83MCPrK/tNOzrid8 SDz5MkAHPGQoS+uUXy+FK6igreIYdtxf6VyWTGL9K7+ZgtTJBVGKycVWJV9HAr3jCC41 0qFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BNvxTM+N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id r20-20020a6560d4000000b00588fa0def26si9545509pgv.765.2023.10.11.04.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 04:27:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BNvxTM+N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id B920581BA65A; Wed, 11 Oct 2023 04:27:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234787AbjJKL06 (ORCPT + 99 others); Wed, 11 Oct 2023 07:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234781AbjJKL04 (ORCPT ); Wed, 11 Oct 2023 07:26:56 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 472669D; Wed, 11 Oct 2023 04:26:54 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39BAxlA4013997; Wed, 11 Oct 2023 11:26:39 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=tnGoTFkoJrPWMi3LmZbVVptnwMyne89C+2c9NCHF0uo=; b=BNvxTM+N0ynRdL0Uq9EyC4wxqecZjxpcun18xBn/dceJ6ELX3dAlHk2EqYtpnovXVeBr Q3wyHMQ7w35ESDD4kzEycPojLUK2Jc9U8KnKWkF42n0A6GXKU9C/JqXhYXR60VEOCUFi KcBx7iD0eekexHTE+0m0cQJwuZ7BqxJ4/qb2yAXq8Fb9ejl5RwbbMKGa81v1nkFY3wMd Dp3GlbSBMiPDhjoQv49dr8gPfFkrOwenYPhMmUtSJkz9Ynq02CCauYolYevTJH6ke+kK uRGOncFrgCTBMTaotgZaWPwsLoLa5/nYRsuTXvnJQxpJ+my6rLQAENVKnUxL5gOWNmmR QQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tnstyr512-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 11:26:38 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39BBQc2f029508 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 11:26:38 GMT Received: from [10.253.39.162] (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; Wed, 11 Oct 2023 04:26:34 -0700 Message-ID: <49c8a8ff-bdb9-a523-9587-d2a46d401e41@quicinc.com> Date: Wed, 11 Oct 2023 19:26:31 +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 v9 4/4] clk: qcom: add clock controller driver for qca8386/qca8084 To: Bryan O'Donoghue , , , , , , , , , , , CC: , , , , References: <20230923112105.18102-1-quic_luoj@quicinc.com> <20230923112105.18102-5-quic_luoj@quicinc.com> <10bcb0cc-19db-4914-bbc4-ef79c238a70d@linaro.org> Content-Language: en-US From: Jie Luo In-Reply-To: <10bcb0cc-19db-4914-bbc4-ef79c238a70d@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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: dUA-wU0uTkaeUhmTA2v6l2Rxv4Ly_Y8H X-Proofpoint-GUID: dUA-wU0uTkaeUhmTA2v6l2Rxv4Ly_Y8H X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-11_09,2023-10-11_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 bulkscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=861 lowpriorityscore=0 clxscore=1011 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310110100 X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 04:27:03 -0700 (PDT) On 10/11/2023 6:25 PM, Bryan O'Donoghue wrote: > On 23/09/2023 12:21, 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. > > "nsscc-qca8k is accessed via an MDIO bus" > >> MDIO bus is common utilized by both qca8386/qca8084 and other > > commonly > >> 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. > > "there is a special MDIO frame sequence" > > "which needs to be sent to the device" I will update the comments, thanks Bryan. > > the following indentation splat from checkpatch > > CHECK: Alignment should match open parenthesis > #2071: FILE: drivers/clk/qcom/nsscc-qca8k.c:2004: > +        ret = __mdiobus_write(bus, switch_phy_id, (reg | > QCA8K_REG_DATA_UPPER_16_BITS), > +                upper_16_bits(val)); > > CHECK: Alignment should match open parenthesis > #2131: FILE: drivers/clk/qcom/nsscc-qca8k.c:2064: > +static int qca8k_regmap_update_bits(void *context, unsigned int regaddr, > +        unsigned int mask, unsigned int value) > > total: 0 errors, 1 warnings, 2 checks, 2162 lines checked > > NOTE: For some of the reported defects, checkpatch may be able to >       mechanically convert to the typical style using --fix or > --fix-inplace. > > 0004-clk-qcom-add-clock-controller-driver-for-qca8386-qca.patch has > style problems, please review. Thanks Bryan for the review. The code line mentioned by CHECK is more than 100 columns, so i separate the lines. > > Once fixed > > Reviewed-by: Bryan O'Donoghue