Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3203033rdb; Thu, 16 Nov 2023 03:17:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGX2i1CtKUVm4axgtiu6vQ9WJ1ldlI0i2GH/vc5HXmscURIl1RR1KRJ307aUIW3tnXKZ66v X-Received: by 2002:a05:6808:3c4e:b0:3ae:16b6:6346 with SMTP id gl14-20020a0568083c4e00b003ae16b66346mr22034159oib.7.1700133469009; Thu, 16 Nov 2023 03:17:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700133468; cv=none; d=google.com; s=arc-20160816; b=jhQ3bNZifV01vjY9xANXU6Ue367pcVtXRvDLjzOhg+gRCiM7LBsZr+Ey2KovMdG1My 9VWNAZliHdbHzHmNJ3dAnIy7JumMbWLPQgOXtZYkt/4V0FdiIcDI17ejNsOy6HwoudPX rQ+ah/wzp+HghcQebRBnmSl+rNfFS8KF+jTHxbpadQQ4glC4bzc9uSaarum0+J8fm+zQ q+uwGYrAslMKMGlcKwivh5Z1BWSub4yCOdpo/x/i4liBpNmk/yI+ioz/oMCwR27yATlw /i1bEPUyhrBXSlZ0XFG8dm0Fh18B727PEljaOPJPywqkkdBZgCMCDLplmDYMRWEzg2jp VtUw== 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=SyAr0+834frsHXJosNimVgW4YH4JIr7IPM5AnqXeAGI=; fh=a8SIrncv9rCUJdKfdpiz94URYq1gyRkw8WzwvsOTAp4=; b=buZD7EWAJiqwaYOJTy+bzXj+MfaK4fpTPS3glOwXr5H28MYablggOK87BmxpYRSV4D nHpKx/zaiTksejlJUGweShjzd7jOonZ4O/ebouaBXbKb41J5VsRzcQys9M6L6NsHJ404 SCEUz6kdOKfp8d37zyYDG1QCBNJ16ROOOYTbcUUSzsIfmTtzyqjVUTJ9ex2TraQHYmGs IzqKZkSasthsuFwvlxsk46xqNe3Oiut4EEa1DUZoL+T+ExC8MvcT4THzQnJ2FDPzAK6g h+Z6ZKQFOk9PnPBAU5izLLT8Qox6nIAtOmvaKfdn175l+qZfPmZVfmE5C0lroP0+Mwu5 3ojw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YkOUP86y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w30-20020a63161e000000b005c1cc7273bbsi3684928pgl.746.2023.11.16.03.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 03:17:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YkOUP86y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 8770E817C3F4; Thu, 16 Nov 2023 03:17:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345109AbjKPLRk (ORCPT + 99 others); Thu, 16 Nov 2023 06:17:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345125AbjKPLRh (ORCPT ); Thu, 16 Nov 2023 06:17:37 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C38CD4B; Thu, 16 Nov 2023 03:17:29 -0800 (PST) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AG93IT7012664; Thu, 16 Nov 2023 11:17:13 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=SyAr0+834frsHXJosNimVgW4YH4JIr7IPM5AnqXeAGI=; b=YkOUP86yQ+BItnCcdr5Yl4EKM59qpaRaiubWxF0b1fnGdPa3wryuvTcis4cjXJjGDSdK 0sgXPwEqPj4m2F+fd/E6SnHj7sRC/PIQw+53WRHTELo1AG+KbUt7vcon1aZd+tPbZB8t HPyyYmEXlBBJbxfhE2Aq5fKryM24VW9rBzEVeic2onQ32AJH53oS/4Lp/205FumO5Ny5 0vxrnoyu6MM1vdHCsLa9BmaWxvQ62EEEMlXqsoybm9LrUIYFzbBHPpEY0PMWrH0MVaR+ sBBOR5sIMNxKqC2Q/l9ubhwZF0fk2WZkQryBtXx5kk8E8bK0XdHFbKblKkLZ8LpGwnHe Iw== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ucu27u58x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Nov 2023 11:17:13 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AGBHC1Z031871 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Nov 2023 11:17:12 GMT Received: from [10.253.72.184] (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Thu, 16 Nov 2023 03:17:07 -0800 Message-ID: <272ce8f7-9c57-4d5f-a609-52c098b63227@quicinc.com> Date: Thu, 16 Nov 2023 19:17:05 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 7/9] net: mdio: ipq4019: program phy address when "fixup" defined Content-Language: en-US To: Andrew Lunn CC: , , , , , , , , , , , , , , , , , References: <20231115032515.4249-1-quic_luoj@quicinc.com> <20231115032515.4249-8-quic_luoj@quicinc.com> <2cf175d7-d96b-4f51-9dd7-2ce8229ca212@lunn.ch> From: Jie Luo In-Reply-To: <2cf175d7-d96b-4f51-9dd7-2ce8229ca212@lunn.ch> 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 nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: D4tc1U-T_wSHTygZBBDfZ6JOmujM6fLc X-Proofpoint-ORIG-GUID: D4tc1U-T_wSHTygZBBDfZ6JOmujM6fLc 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-16_09,2023-11-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 phishscore=0 impostorscore=0 bulkscore=0 adultscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 spamscore=0 mlxlogscore=635 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311160090 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 03:17:46 -0800 (PST) On 11/16/2023 12:17 AM, Andrew Lunn wrote: > On Wed, Nov 15, 2023 at 11:25:13AM +0800, Luo Jie wrote: >> The PHY/PCS MDIO address can be programed when the property >> "fixup" of phy node is defined. >> >> The qca8084 PHY/PCS address configuration register is accessed >> by MDIO bus with the special MDIO sequence. >> >> The PHY address configuration register of IPQ5018 is accessed >> by local bus. >> >> Add the function ipq_mdio_preinit, which should be called before >> the PHY device scanned and registered. > > I'm not convinced this belongs in the MDIO bus driver. Its really a > PHY property, so i think all this should be in the PHY driver. If you > specify the PHY ID in the compatible string, you can get the driver > loaded and the probe function called. You can then set the PHY > address. > > Andrew I will try to do the initialization configs in the PHY probe function, Thanks Andrew for the suggestions.