Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp404443rdb; Fri, 17 Nov 2023 02:06:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvQPqmwpp6zBOvSj3WDpEuUCMlqz/AtXduUEDkPLQVrwP3cdAsvy+ntot+ShXSlcOWYj+S X-Received: by 2002:a05:6808:48a:b0:3ad:c497:1336 with SMTP id z10-20020a056808048a00b003adc4971336mr20550171oid.16.1700215576375; Fri, 17 Nov 2023 02:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700215576; cv=none; d=google.com; s=arc-20160816; b=JyoCUEdHe5cGxnLboGecqvmkzkqyZa86bD2c677R5wLtvnAOLyhBIz+5ff3D646jkw zKjhIEGzoYhpIOEEgb6PLTd7JAxIJdoH9giSD9IeYD8sSYivNpCEsVxRn2Y67ZO7xMW5 o6zHKOuPiiOAvzeUQusDcLW6a4CaKJqJ3qoXQHuomBENruK8jt7FYEZYRBtaoOLjNNDh 7dHuTrfA13pI3hNxJgAhG03EKELtK2446rs87qiFDbQjIRRcAjYFK0B6q4qStdpYEmU+ nIGTQZm/8sXPHFdikJbEN0ETJCAfb37emo0g/NtPATrvLGv156SZ2tZDwK6oQufAnosW Wegw== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RTLiox/mifORbRB6ih+BFAwXXdRUmyiZAnvIy+pBRxg=; fh=W+vSZyOqUsobs4Mxxv7BCXnFOwOiUsmrjf1s2fwTBkA=; b=B4hIa9I2elgRlzzxPcXCyJ5ju9384lizENGmFW6hjz9uVpYSSKc8e06gxZLZR25aYG M8Dka9fgmz68ZtxFlm1oogbeCz8KqZNu2bLUSTt3PUMBK2/Z8blgwn3yYMd9lS1StDy3 mdmTZaL6nyEftbWbUKY2Bd+CuobhLDKmv8EeZeBZMnkoS8Nr8tbUPq9NsgGwBXuSLiMQ eB9P2juEv4/LsM/tvoQtYVpA8gPuvtpP6VjtgUd4Fqzrp6givaL2xVTrpwaO5CE+Jkl9 MF6sOa4z1gIRklTbtw0YQzLkZXaB8lnKo9lcczyAYmJxz4aQvAvLbBzhUE5x848QyH++ /BSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Zt0sv5Xg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z128-20020a633386000000b005b936900e26si1571396pgz.713.2023.11.17.02.06.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 02:06:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Zt0sv5Xg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id B41DB8266250; Fri, 17 Nov 2023 02:06:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345744AbjKQKGB (ORCPT + 99 others); Fri, 17 Nov 2023 05:06:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230468AbjKQKGA (ORCPT ); Fri, 17 Nov 2023 05:06:00 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60437B0; Fri, 17 Nov 2023 02:05:56 -0800 (PST) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AH4YImN014405; Fri, 17 Nov 2023 10:05:45 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=RTLiox/mifORbRB6ih+BFAwXXdRUmyiZAnvIy+pBRxg=; b=Zt0sv5XgyciIhyAbgOl9wQhFrrC8aVK7iIvYR4ufcNCunidEw2q6UncKIaDfbiKEbtmL KZ9Pz1cbqVsxXIjjlfkKl3kalo66/Z/tnpTgb4Iw21SkwaAQK0z09GJmIju0ZUtPscK3 0fE+T7u0s/ZaNCmcccXttwmO6VyD4drgbza9K9pN6BD9qJoBQWVWLBSv5YokG4h7v8Vq S69kwPpEqlhNpGwNr76oXrOqI1kvKNnwrc6pEMHfzktc3Ebf3MtLZX0Uw6miH8WtXM5J BUxBpT1A+FiX8yLCFrb/OlxWFhYAKtulKIRGESnjNK8bpOHLPa8MafFH03EWR6YSU1fI lA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3udw1s92g9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:05:45 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AHA5hh8029407 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:05:43 GMT Received: from [10.253.8.81] (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.39; Fri, 17 Nov 2023 02:05:39 -0800 Message-ID: <02603c3d-a509-4bdd-a67b-7f494df4eeba@quicinc.com> Date: Fri, 17 Nov 2023 18:05:37 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 8/9] net: mdio: ipq4019: add qca8084 configurations Content-Language: en-US To: Andrew Lunn CC: Robert Marko , Konrad Dybcio , , , , , , , , , , , , , , , , References: <20231115032515.4249-1-quic_luoj@quicinc.com> <20231115032515.4249-9-quic_luoj@quicinc.com> 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: 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-ORIG-GUID: CGznaSBeDUHJP0lvNmKozXD0dScTmbO3 X-Proofpoint-GUID: CGznaSBeDUHJP0lvNmKozXD0dScTmbO3 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-17_07,2023-11-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=743 priorityscore=1501 lowpriorityscore=0 bulkscore=0 clxscore=1015 spamscore=0 mlxscore=0 adultscore=0 phishscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170074 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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 17 Nov 2023 02:06:10 -0800 (PST) On 11/17/2023 1:08 AM, Andrew Lunn wrote: >> Yes, the clock driver of qca8084 is probed as the MDIO device, the >> configuration sequence here to lighten the qca8084 PHY need to >> be completed before the clock APIs available to call. > > Please cleanly separate clock from MDIO. The MDIO driver should only > use the common clock framework API calls. If the clock driver is not > loaded yet, trying to get a clock should return -EPROBE_DEFER. The > MDIO driver should return that from its probe function. The driver > core will then try to probe the MDIO driver later, by which time the > clock driver should of loaded. > > Andrew > Ok, will update the patches to take this solution using the clock consume APIs. Thanks Andrew for the suggestion.