Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp403001rdb; Mon, 29 Jan 2024 06:02:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWcbZBGSJSNGS6towTZdJQ1dPyB76TbQPaGUWyrAWIjSmZ33AKfsbsR3K+uRavkuQobXyV X-Received: by 2002:a17:902:6505:b0:1d8:dbab:de1f with SMTP id b5-20020a170902650500b001d8dbabde1fmr2484533plk.9.1706536947282; Mon, 29 Jan 2024 06:02:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706536947; cv=pass; d=google.com; s=arc-20160816; b=gQ75zXOXNQZgb3eLJJDTMz3VD/q7xwL0f6bgnwstUho3FV/jlXwGXkyPgQnBQ7bFbG derR5gZziAGIhve5luOMMqEYVIKncdzq4zcGN8HuLLvUB+kyKbbpK34C5XireLoedmsO UfUXVynIhsjOaIQJWDi0PeYpj72e7kv5RzoohXfFkl8kqQxNzThoDAhylimWJ9z2fkx5 Yhag3t6PhJFoIQkkh075E84NZamQ7jIsVRLmawZ966Cnsb7RAONSpOY/PTdqLgYFFSya LN3bJYSSH1yrPgqxQ5rvNZSeo+Hx9Y5XS+vHRqfYa0pf1Pndot87hqzmI+wb7D85U1AI NIwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=YxVrAb5WKHv+F5epFgMr04iEH3uFT5hSdeiYGl8vc4E=; fh=2QW4CvnJ6oKDisS3wwMQaOL/zLw308xW3Zip95uo/mU=; b=pbPAo7a8bpbW+z8axaOGax8blMTfopkgmyzK1xWA6Ka5OQXW6FY9Um9EDtZosNzf8Z e5PJwTq9vXiealP9nMZXNzIykCWYxqbzGuIhEgjhbzkzEvfCjoCHio936xMsSWmgRlzs FQYC3wZBcMzaxmhk6pVxHPJghxAukdKpbZg1w1/WN3bCi9IW6vIdvuA36i0QUV9vmkv1 maYuwL66ETc72Fr3JdQ1I6pqF+NMBIkW/kap+WWAkdah1uPE6fdzZuapGiy6qA4fLH76 oJz2C28LOdR4WMKnbvaIcU9G3ukiBvwowlLimrb9SzXWzeiLDYJyl/0MTPO2Mk0d7A4L 5yKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TRI05WaM; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-42853-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j3-20020a170902da8300b001d709940efbsi5882268plx.436.2024.01.29.06.02.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 06:02:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42853-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TRI05WaM; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-42853-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DAA8B28D171 for ; Mon, 29 Jan 2024 13:59:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AC4565BB0; Mon, 29 Jan 2024 13:59:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="TRI05WaM" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE68965BA0; Mon, 29 Jan 2024 13:59:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706536774; cv=none; b=QMslcgx+1B4RyqBdJd4Ry6MvDR3ZOmLkXndbcHoltiahy8Ug+IXAUFJpd0imF59GKUqAxWryDpxsgfTTm5PEp4nAgpvhJm5r/81xuj9esGBUco1PIjA61TOiptD6oVf3w6ydmwNxUJm0owglhc2n76uyOp9GM1YB6WxqDvxFb7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706536774; c=relaxed/simple; bh=xJn1F7MAesV6tS4qm1/fKFLcvA/61etupSyvqTcNAfA=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=TQc1X5qdIPpDCHKa2g0yuC85WD/KmEosrLYN6lyXFfCyTTTHGMlmqqmWecQ+L4dnVL5SS8cjuAdkHd4q9oYASJGAGHW3zwNLZgwav67bMpjQnTxFTyZVXv2RoRoggcoMpD5SKqDbhF8YbykPZsFDnnG1/aeUW/s/zbjhQUM6Bjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=TRI05WaM; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40T5rKia013136; Mon, 29 Jan 2024 13:59: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=YxVrAb5WKHv+F5epFgMr04iEH3uFT5hSdeiYGl8vc4E=; b=TR I05WaMQ7bRubP3QMc8e8EKYvYG9urDJRwc/MXcC8bnFdT31XbXUi9b/bG2iMZ9C2 iP0UcHNeLLDga8cbHEiCDgVl9Ee1I2E3ms9PtZe0QxVDLIazd1ro3zDi+8hd6l4k rIwKH3Zsm4v8q/sk6+5pqdyR5qGJ+ur2U071bpRbsUGVouIOdYNFQDWwNEA+211X VY3QoWhlN2TSjwDfppH3fTaw9dJkypciy0zTc3mtsd4wmraPkIjpluae3OfizpNp aD4bBB8ErH1HzN5JGBb0bHUdpSuuRIyOxGiPu4tO/5tWL17OVNySlynbmO5CX5va DI9mW70ytYpFjh1G72Sg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vx3t9sbas-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 13:59:12 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40TDxBlp022523 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 13:59:11 GMT Received: from [10.253.38.251] (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; Mon, 29 Jan 2024 05:59:06 -0800 Message-ID: Date: Mon, 29 Jan 2024 21:59:03 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [net-next PATCH 0/3] net: mdio-ipq4019: fix wrong default MDC rate Content-Language: en-US To: Christian Marangi , Dmitry Baryshkov CC: Andrew Lunn , Andy Gross , Bjorn Andersson , Konrad Dybcio , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiner Kallweit , Russell King , Robert Marko , , , , , Sergey Ryazanov References: <20240124213640.7582-1-ansuelsmth@gmail.com> <53445feb-a02c-4859-a993-ccf957208115@quicinc.com> <5d778fc0-864c-4e91-9722-1e39551ffc45@quicinc.com> <65b3ecd7.050a0220.9e26c.0d9e@mx.google.com> From: Jie Luo In-Reply-To: <65b3ecd7.050a0220.9e26c.0d9e@mx.google.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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-GUID: yZM3yuQnxIPAraWf1Mq0QMxrwzmEYYz2 X-Proofpoint-ORIG-GUID: yZM3yuQnxIPAraWf1Mq0QMxrwzmEYYz2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-29_07,2024-01-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=778 phishscore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 impostorscore=0 clxscore=1015 spamscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401290102 On 1/27/2024 1:33 AM, Christian Marangi wrote: > On Fri, Jan 26, 2024 at 07:20:03PM +0200, Dmitry Baryshkov wrote: >> On Fri, 26 Jan 2024 at 18:03, Jie Luo wrote: >>> >>> >>> >>> On 1/26/2024 1:18 AM, Andrew Lunn wrote: >>>>> Hi Christian, >>>>> Just a gentle reminder. >>>>> >>>>> The MDIO frequency config is already added by the following patch series. >>>>> https://lore.kernel.org/netdev/28c8b31c-8dcb-4a19-9084-22c77a74b9a1@linaro.org/T/#m840cb8d269dca133c3ad3da3d112c63382ec2058 >>>> >>>> I admit this version was posted first. However, its embedded in a >>>> patch series which is not making much progress, and i doubt will make >>>> progress any time soon. >>>> >>>> If you really want your version to be used, please split it out into a >>>> standalone patch series adding just MDIO clock-frequency support, with >>>> its binding, and nothing else. >>>> >>>> Andrew >>> >>> Hi Andrew, >>> We will rework the patch series to include only MDIO frequency related >>> function and frequency dt binding, and post the updated patch series >>> on th/Tuesdae Mondayy of next week. We will work with Christian to >>> ensure he can re-use this patch as well. >> >> Can you do the other way around: rebase your patches on top of Chritian's work? Hi Dmitry, Sure, we can take this approach if fine by Andrew as well. >> > > Would be ideal, also I have to send v2 that handle the 802.3 suggested > MDC rate (ready I just need to send after this has been handled). > > Also I can see some problem with Lui patch where thse divior > value is not reapplied after MDIO reset effectively reverting to the > default value. Hi Christian, In my version, the divisor is programmed in every MDIO operation and hence I did not add the code to revert to configured value in reset function. But sure. we can program it once during the probe/reset and avoid doing it during read/write ops. In addition, the MDIO divisor 1, 2 and 4 are not supported by the MDIO hardware block, maybe we can remove these macros to avoid confusion, or add a comment mentioning that these are not supported. > > If it's a credits problem I can totally change the from or add > Co-devloped, I just need the feature since the thing is broken from a > looong time on ipq40xx and ipq807x. >