Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1706491lql; Wed, 13 Mar 2024 06:13:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyYV1xperJI731HpSJVCkCmz0uGmPplTSfboDAhK8YPHnwUdWkzJLUvR+CUdMp4wVrFUEo1T4iIgnlVZ298m7qBEeY0Emm2bKFsFyRgQ== X-Google-Smtp-Source: AGHT+IEDuN6qMy1XZ/5Zw57bwXqMQtaqGyCfQczIt7ddTUjc/8zuIPLNfuad+Yi6LSGu9SiCm0Fb X-Received: by 2002:a05:6870:d88d:b0:221:2259:c042 with SMTP id oe13-20020a056870d88d00b002212259c042mr6701228oac.18.1710335611592; Wed, 13 Mar 2024 06:13:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710335611; cv=pass; d=google.com; s=arc-20160816; b=Jk5Xu13uSFOJXC10LxA0LarZ+lHbTnAqT5wy6bVQNFAkzdI55K+EJ1DqRDfJQrx9kb MsU/mxtI+piB2ez/OAj/w+RP5mEOXy1pxfjKizLV+1Wt9JjP/7FYmOkBFxNMrnvXoUZl iRNFumNSHBJpNYxRWVnzCY8tCkPy+XH170sUC/5PCgc6+VJLciSolkb3U9vrt0NKGkrR s83mNcyvEzeRZhQpGAF51GQ3bj+p9zJpXKKb2nsVYKLSibvCeT8ZBD0Ggnr8ov7bSthG 8Tqxr5MY6MfEbHdir7UbpgI/uWBCBFebjg83HPRoINih8r7w99ARcbD5AQAlSyRpXuEc 3qug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:message-id:references:in-reply-to:subject:cc:to:from :date:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=rm25i0KtZLbroTKyEspxu/tszw9xx2JaRN6Tb/VjLTk=; fh=gFgK6fPwftuDEvVR20Og5LPAYwBZFKQzm2fsuM7uvCU=; b=Dk9POSpqnMd31q+Oigb7365qRu4+MRVPsw+kYBTCe4g90WefJRkMyvzY79XGevO9Vj uPJsU9h3zmBwuPH0kyKU8iNn09yxIgnCrYKi/g+1KCnhcedHTISlI1JX9uoJ7nrGKySW sH/eoLPRFtnp0RY4jFQzTitzRQ7KLOqPgStO+YMQQuBdFsiaMfUUVJ+k7v/AsRt0lCn0 w5MBojK8s8mVF2swqRnHRkgNc/GPZSjzZB67hJFxVJ6V7ko3fdyR+Q+eiMRnUWhltixp hykpy05DbLAcar5oH3qDLKxJwsB/IL+9j0mYYkWWOgXx3eoNy4j0l5oW1wkbCFsMpL6l Uptg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@risingedge.co.za header.s=xneelo header.b=UpJTz4tI; arc=pass (i=1 spf=pass spfdomain=risingedge.co.za dkim=pass dkdomain=risingedge.co.za); spf=pass (google.com: domain of linux-kernel+bounces-101513-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101513-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 11-20020a0562140d6b00b0068f07fbcbffsi10084080qvs.43.2024.03.13.06.13.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:13:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101513-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@risingedge.co.za header.s=xneelo header.b=UpJTz4tI; arc=pass (i=1 spf=pass spfdomain=risingedge.co.za dkim=pass dkdomain=risingedge.co.za); spf=pass (google.com: domain of linux-kernel+bounces-101513-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101513-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4507E1C21C78 for ; Wed, 13 Mar 2024 13:13:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98C2D4087C; Wed, 13 Mar 2024 13:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=risingedge.co.za header.i=@risingedge.co.za header.b="UpJTz4tI" Received: from outgoing1.flk.host-h.net (outgoing1.flk.host-h.net [188.40.0.86]) (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 A84683F9CC; Wed, 13 Mar 2024 13:13:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.0.86 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710335600; cv=none; b=hYh0KTLMyUjFzqwZBpM2KUpXQZ1g7MfWAP1h5J/Elgm5pBQQnhQylsZJF2BgSpshrzkjvtzwr8sutvp4P60F1e9Gy4DKLSupiLVMlyrFXlDcBijz+yBk+aHb/kWS5X0BU0cy4Nf4WnF/HYUvDReuc0ackPgtCHVzaM2Ew8RmEnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710335600; c=relaxed/simple; bh=Svatgyy6s+expfjhx9aXTHe/V9ApXxNo/O+rbKmjHC0=; h=MIME-Version:Content-Type:Date:From:To:Cc:Subject:In-Reply-To: References:Message-ID; b=aaDAVFMJnp913r2xWCRJgzbnFTie2JeShTuM3zYCEMitz9TpbkTWIU4jfqAZplpVe542gdcXOEzv57xEkYWxafGQA7fmrLtUenTUkz/QC+P4yC6r1CzFY4UXi20nTQA1DbSevJbNevi9v1s7NJg6SqW2l7y3TSz+IMEqggMRogk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=risingedge.co.za; spf=pass smtp.mailfrom=risingedge.co.za; dkim=pass (2048-bit key) header.d=risingedge.co.za header.i=@risingedge.co.za header.b=UpJTz4tI; arc=none smtp.client-ip=188.40.0.86 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=risingedge.co.za Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=risingedge.co.za DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=risingedge.co.za; s=xneelo; h=Message-ID:References:In-Reply-To:Subject:Cc: To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:reply-to: sender:bcc; bh=rm25i0KtZLbroTKyEspxu/tszw9xx2JaRN6Tb/VjLTk=; b=UpJTz4tIlEks9c 9gfFCBYnltVlPj8VxOOHe+St66HK611KEWZ4dFVgP3FVHN5kqPz6dqUEQP3MpA+neQSSJCB7jZjcR hcndA08uNj0cz/ZDGqsp+c7PVtAoJP/JHM+7VB2MwHkd9ukp1+qGhHw9+AihWzfk4sreSONHhdQYf tdoUiXi8o8dm2FHi3LQZdFN8QjVoCh/2G+yJWnaCk0ECrrXjbx0PJrBvh14BXUKM1Id8DheshpigF sccvOzkmfNIDaIPSNVG+NoSN//BEDfYfRgEUpuUaH6MM/FXJhmbjUlw0whrjseNcySzjBrZBBwzEU 7BvQsAu2PwEaSecTNKlg==; Received: from www31.flk1.host-h.net ([188.40.1.173]) by antispam3-flk1.host-h.net with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rkOPs-009hPe-5o; Wed, 13 Mar 2024 15:13:10 +0200 Received: from roundcubeweb1.flk1.host-h.net ([138.201.244.33] helo=webmail9.konsoleh.co.za) by www31.flk1.host-h.net with esmtpa (Exim 4.92) (envelope-from ) id 1rkOPm-0004Bl-Md; Wed, 13 Mar 2024 15:13:02 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 13 Mar 2024 15:13:02 +0200 From: Justin Swartz To: =?UTF-8?Q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= Cc: Daniel Golle , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] net: dsa: mt7530: increase reset hold time In-Reply-To: <2640a495-97a0-4669-a53a-e367af956a78@arinc9.com> References: <20240312192117.7789-1-justin.swartz@risingedge.co.za> <2640a495-97a0-4669-a53a-e367af956a78@arinc9.com> Message-ID: X-Sender: justin.swartz@risingedge.co.za User-Agent: Roundcube Webmail/1.3.17 X-Authenticated-Sender: justin.swartz@risingedge.co.za X-Virus-Scanned: Clear X-SpamExperts-Domain: risingedge.co.za X-SpamExperts-Username: Authentication-Results: host-h.net; auth=pass (login) smtp.auth=@risingedge.co.za X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.28) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT+MZhNT4K8vCZjbDVN6pgqEPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5wCPRB8bAzJcv2cv+UqiTTc2+CpNcmBnO4XM3Sck4bwNogU WCl1nkLBzZX0KuJ9bXiS85Z42w/+2OBolTNFbPomXFWCX8oNdggW7HE9XDTd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DHIlkkSyUq+ExD5pZzw0mVfWLKEgol9rYV4JEcNP1rJoln/cD8h/RIvkzXRTCYvX WLQhlD92+1l+zHfJg1FMwntsduNBxKPaTpE5L8d4VqFy6yKUFQtzhTlGiGL9B5VjLKuX5+25ZPin lEh3KIhZW8SlfcXdA5N+Yq1uy1j9IIDSVMZhrIoAWTF5tIdhy/UIEBYDcZg+Q8UhuRLyBn1+pvlH hV6a5QjptwQBGybQyDQ2/GYwPjlMcE57ESN6G+kn87CtwPdB/10jfVNpDbYnXJdSRQj8460WHJib IxmU2pb4i4DTkMZeMiNI9JSIyUbtnrlbG4BI8o81FOo91axhCaqPShJzgHH7y4ZfQxML X-Report-Abuse-To: spam@antispamquarantine.host-h.net On 2024-03-13 14:06, Arınç ÜNAL wrote: > On 13.03.2024 14:52, Justin Swartz wrote: >> >> On 2024-03-13 10:59, Arınç ÜNAL wrote: >>> This ship has sailed anyway. Now the changes the first patch did must >>> be >>> reverted too. I will deal with this from now on, you can stop sending >>> patches regarding this. >> >> At least if the first patch isn't reverted, the approach used is >> less likely to result in the problem occuring, IMHO. > > I disagree that the previous approach is less likely to result in the > problem occurring. If you don't like the delay amount we agreed on, > feel > free to express a higher amount. I created and tested a patch to entertain your input about what you thought could be a suitable hold period to address the problem, and it appeared to work. The criteria being that the crystal frequency selection was correct over 20 tests. So if only the reset hold period is going to change, I'm good with what you had suggested: 5000 - 5100 usec. Ultimately the selection of this period should be guided by the timing information provided in a datasheet or design guide from the manufacturer. If you, or anyone else, has such a document that provides this information and is able to confirm or deny speculation about any/all timing periods related to reset, please do so. > I also disagree on introducing a solution that is in addition to > another > solution, both of which fix the same problem. I'm not sure I understand why you say that. These patches were intended to be applied exclusively, or in other words: in isolation - not together. Although if they were applied together, it wouldn't really matter. For the record, I've only continued to keep this thread alive in the hope that some solution to this problem will make it into mainline eventually. I don't care if it was my original patch, the subsequent patch, or a later patch provided by you or someone else. :) >> >> The delay between deliberately switching the LEDs off, instead of >> only waiting on chip reset logic to handle that, and the reset >> assertion could be considered a "reset setup" period to complement >> the original reset hold period. >> >> Increasing the hold period to what should be 5000 - 5100 usec, >> definitely made the problem go away my testing, but the previous >> approach is (if nothing else) more explicit in its intent. > > I don't want any unnecessary complications on the code I'm maintaining. > I > already gave a clear intent on the patch log that introduces a simpler > and > more efficient approach, it doesn't need to be on the code. > > Arınç Kind Regards Justin