Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp279378rdf; Tue, 21 Nov 2023 02:29:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgOueazfBrhOB+uUJ4Uo4GFTPmcRsMb7PSXvXFu2QCAa/VH59PHPJHzdMg7GYIqbBUZOky X-Received: by 2002:a05:6808:2097:b0:3b2:e60d:27f6 with SMTP id s23-20020a056808209700b003b2e60d27f6mr13307339oiw.29.1700562570142; Tue, 21 Nov 2023 02:29:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700562570; cv=none; d=google.com; s=arc-20160816; b=fDSk9KBK2iORTnliUC6vuYhT48Oj+++3H3Y7FX6HGzo0gD4iwnGxNDz1p+cRgtOYe9 wt65i5fxYkpT8Ft6mdtB/fnyx4z5hOvd+O49TEZvGN7CTdDtuJoVv6NDyYg98qN1xN8X NoL0n/Mxck9CYrCsEuX8tzn343nsGK6GrqhP0cYKwamAsGC8Ji8GSe26xsHhPY0UHpGg qRY/d1YwXUpwyFEucgrtdKo3OQOpHs3LAxCxq1CstS4R3Hs549/rvPYdvZu9doSmCZv6 7vu+npFoHZrODAHjI0DuT0s5pzjeOs1jB4T0Zo6R/cb6S1mjBggxPnvL66eFp/73t/9u wUWQ== 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=d3laBOY3VBa/FKo6wvUDPd9NbPmzQBMNTTTgijWw53Q=; fh=7UvQHlxAF+eHA7MhT5oHE6V2QjReQkwFahrg9+Mg/oM=; b=hwB1Y520T7vFBpAgbo/n5A73wxKxOPO3tCZi2pJp+WpVhcA2qlA3+ZpeGDWI7P98wG rI2NbTl4SRC5o7Y1QRzZfHsgzRGDgCCUw0UKEcN0sPREh7vOu5AWuBJb9lDC6ygSIs5I nERwoiAFC0HpW5cUiLz1KiI3fDZpJzq4AImNOqxGu9NXRalZ+tr7d73kKOnxdJddv8vL gy9TsLymF5JOXxC5nL4jqStfxgWoDtwSHN13i5g7NyDJsRvZJEoacS+sY3x8+RtRXvRY kbbB/SlSTIHoLzB1tUELmXDtW23UvWfXHYdrkg18A4aDRLvuE5A9Lu6QMjvM1Xtja34Q wKsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Jh/aqU1Y"; 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 x4-20020a631704000000b005b91192c61dsi9657720pgl.217.2023.11.21.02.29.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:29:30 -0800 (PST) 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="Jh/aqU1Y"; 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 A28408031D18; Tue, 21 Nov 2023 02:29:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232683AbjKUK3U (ORCPT + 99 others); Tue, 21 Nov 2023 05:29:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231923AbjKUK3S (ORCPT ); Tue, 21 Nov 2023 05:29:18 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67D4AC1; Tue, 21 Nov 2023 02:29:14 -0800 (PST) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ALA99hV009701; Tue, 21 Nov 2023 10:29:02 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=d3laBOY3VBa/FKo6wvUDPd9NbPmzQBMNTTTgijWw53Q=; b=Jh/aqU1YxpkX6X0hwK7EuvHYGlewXCD+1fdpk4TriHDnowU5IINaqfcd9HwXsdKLQQqG IzCbWXP+tj/JMd175+8ukga13e203LkF2bWcnDVYliQy2vwRyZJp/wdKjVFQ7JJnXDoY gEAhXTJ3Dyumsjqvf/SKdfn180tPmNj51ya1KZhE+L+sgMfe9k55gLQ4XKjTFCEhn2V5 X068esLtEfMgD3yvrQuGkAa3p56lsnjxH8V9n/WPWOddIDg8qNDOGOiFdKUjEX1nRamF hrQN3QoQxrm4EORY3X74ayoE5LdOVEgI8y3Ll7xkrSvVkTffUCdzhQwvLZqwe0h+qKzB Dg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ugr85rcr8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 10:29:01 +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 3ALAT0VN026093 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 10:29:00 GMT Received: from [10.253.72.26] (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.40; Tue, 21 Nov 2023 02:28:56 -0800 Message-ID: <9acace07-d758-4d5d-8321-de75ee53355d@quicinc.com> Date: Tue, 21 Nov 2023 18:28:54 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/9] net: mdio: ipq4019: Enable the clocks for ipq5332 platform To: Konrad Dybcio , , , , , , , , , , , , , CC: , , , , References: <20231115032515.4249-1-quic_luoj@quicinc.com> <20231115032515.4249-3-quic_luoj@quicinc.com> <10dc0fff-fc00-4c1f-97cf-30c5e5e8f983@linaro.org> Content-Language: en-US From: Jie Luo In-Reply-To: <10dc0fff-fc00-4c1f-97cf-30c5e5e8f983@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-GUID: YjbUSm6vdQOT78gkogteKn3mp-3fs216 X-Proofpoint-ORIG-GUID: YjbUSm6vdQOT78gkogteKn3mp-3fs216 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-21_03,2023-11-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 phishscore=0 suspectscore=0 adultscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 mlxscore=0 clxscore=1015 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311210081 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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]); Tue, 21 Nov 2023 02:29:27 -0800 (PST) On 11/20/2023 10:22 PM, Konrad Dybcio wrote: > On 15.11.2023 04:25, Luo Jie wrote: >> For the platform ipq5332, the related GCC clocks need to be enabled >> to make the GPIO reset of the MDIO slave devices taking effect. >> >> Signed-off-by: Luo Jie > [...] > >> static int ipq4019_mdio_wait_busy(struct mii_bus *bus) >> @@ -212,6 +231,38 @@ static int ipq_mdio_reset(struct mii_bus *bus) >> u32 val; >> int ret; >> >> + /* For the platform ipq5332, there are two uniphy available to connect the >> + * ethernet devices, the uniphy gcc clock should be enabled for resetting >> + * the connected device such as qca8386 switch or qca8081 PHY effectively. >> + */ >> + if (of_device_is_compatible(bus->parent->of_node, "qcom,ipq5332-mdio")) { > Would that not also be taken care of in the phy driver? > > Konrad Hi Konrad, These clocks are the SOC clocks that is not related to the PHY type. no matter what kind of PHY is connected, we also need to configure these clocks.