Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1806555lql; Wed, 13 Mar 2024 08:39:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV98osFkO1itoztuI7MPRbrSQ3Gm+jgDCBoSXE9XC+guqz8IwShvSyqgCvA6lZPXQS2OIfXynBZADt7Jn6EzYV90FsJC+gIWoKahRLlIw== X-Google-Smtp-Source: AGHT+IGp4kjtkxCcwy5bezn/Aco2dpS6QyaQRrXaHuqRUfpNCeNCWVvhOi75A6e6Zeo8pgwS/B2Y X-Received: by 2002:a05:6808:1304:b0:3c2:31d3:9cfe with SMTP id y4-20020a056808130400b003c231d39cfemr128517oiv.57.1710344344369; Wed, 13 Mar 2024 08:39:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710344344; cv=pass; d=google.com; s=arc-20160816; b=0b1gqb1+Cz+cJhSAz8WIxbTvzlGgr1ogAZsB964yF6UKzLVNjAUOD8igMKMEHi4sAf fMspj//4CmehbywhS7ShuSf4wAPVZbxBppQhTzalnplps5cFpAjNp1zAp/2cGd1nfZut 3QTO5ct7/zElUJOUoakfEzU/qOC3jH2e9xPe6+JymAu8+B1dNJXmW2pP70DtXRZZReFo 0fiT5KZz5wcFfluebYkrq40/Pbx0l9LJuNtu1WBa5kZxGhYH2UFXFtiI3QUI9xhprTlS opPxTAy5Ydg05i/jyQaoWS9jUoBDGPJhHKbTo/2qZak6BTdV47OG+3/wx5K84tHQ0tkq e7cw== 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=oKGkz+5yG2rxE8g4ISa2cT/1YcQdAFQoNiwBx3QyI0I=; fh=gFgK6fPwftuDEvVR20Og5LPAYwBZFKQzm2fsuM7uvCU=; b=RnvynA9uRU0LGKUYhEMp4v+ngXj7r6cGr6KGbv38G9DKnfkDj3Axuq8+hZb+7lx4M0 5Ix2E7IbhUjSvpf4AbkGc8Nj0ZQR5BacJHUHq+YHPQVLOntv28X5/53YSGvYVIOk6dSB Gc+iq4ZuXJu7vBBUr+wgMPRLiKScfIBiR87DhmwR8PGhgd6rQF2S6xwkWrULFX54mMfH wIujtPVSU1WjDu5iCoJ5Ik8P26PGSw0POedDZBPTQAeu+TQ8sC1AM7dwHK3GuxH1ydyR d4a0FOX5HtrESTE2MN4i5SDxOxNvIy/5lmE3bSkcqiaxEqo7H3PhhNbynFdnGQnbiYDc vwCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@risingedge.co.za header.s=xneelo header.b=C8kd2jv3; 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-101688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101688-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 d6-20020ac85d86000000b0042ed681cef6si10049952qtx.380.2024.03.13.08.39.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 08:39:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101688-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=C8kd2jv3; 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-101688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101688-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 EA45F1C22BD8 for ; Wed, 13 Mar 2024 15:39:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4F7347A6A; Wed, 13 Mar 2024 15:38:54 +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="C8kd2jv3" Received: from outgoing6.flk.host-h.net (outgoing6.flk.host-h.net [188.40.0.77]) (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 8556345C10; Wed, 13 Mar 2024 15:38:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.0.77 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710344333; cv=none; b=YPi7CW+RME5G9oE8TZteGOsxUFuveL04tdQm0o0RPAbYwjPpiVyuM54z6QEjo6kfMMA0Am13anwYFSKinCu43wW7IM0L4GsVuN5FpcS+qpkx8QcHf3XIQQICnBxbxnG1IJna8V2I2ThKxtIZ2D1C0OB826uv/zONFqgcsM8VUPk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710344333; c=relaxed/simple; bh=tZaSYOA5Sqr0R3HTX+qBFadHyYoG3rbkZTOfznRjIrg=; h=MIME-Version:Content-Type:Date:From:To:Cc:Subject:In-Reply-To: References:Message-ID; b=aO5pL0gqksN7XNrTpEh+zu1SpTN2sDEMr65bjw5ELcecaxU99Xm03pLScKahq4L5VlNLeZESg4acaf6882uwwTKyVjxQuUM1+M1rI9fsJ9D2CoMs5hexLrDuT+oryZhMf3JcmXu+fqt+dvsqD6Qf3lBMl/EB//PaJvLbsYdRMsg= 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=C8kd2jv3; arc=none smtp.client-ip=188.40.0.77 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=oKGkz+5yG2rxE8g4ISa2cT/1YcQdAFQoNiwBx3QyI0I=; b=C8kd2jv3ZOQYnC Ei8vdK0ciGe8+LTwhqUnmaLxBr49zBTG6U+FzFo4U1tbD/3tcKSrFkC4WsOxHzWX15p7DOKWBWv1r lwW4wzdFK2Be3a38gruQF2YXZDEYlDO2q56Zdcryg/xhFaP1bpaj4OOoqeIUEVswmAQHwHCeUf97q X6Z/JYOBGmAYOOoWCq5kFiVJK+MlrhFix1urbLo/ckEmsZfU/CkahAgK5y0UIwVZdtxSg5GJXdeuc EmLWXs7URR1fdTsBcT5ouH1tpzDIxG1APEku/BNrLaVmKl6B/nkPxl5xfghn7jOIenh+ASqPKA2G7 uILULVi1KX67NBi9peiQ==; Received: from www31.flk1.host-h.net ([188.40.1.173]) by antispam2-flk1.host-h.net with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rkQgg-0021r6-Of; Wed, 13 Mar 2024 17:38:42 +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 1rkQge-0006Bo-8W; Wed, 13 Mar 2024 17:38:36 +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 17:38:35 +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: <997db446-030b-4e6a-beea-0ae7d990e7e2@arinc9.com> References: <20240312192117.7789-1-justin.swartz@risingedge.co.za> <2640a495-97a0-4669-a53a-e367af956a78@arinc9.com> <997db446-030b-4e6a-beea-0ae7d990e7e2@arinc9.com> Message-ID: <3146df060620f08a620417cfcf2b2179@risingedge.co.za> 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.21) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT/2O3gPR4g/CqkfWst+Ku0pPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5wCPRB8bAzJcv2cv+UqiTTc2+CpNcmBnO4X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gzDzDZn/+QEiRQv+PVjjwa+Z5RFCOMRmYvGVP5J/K7tDFQHNyAqzdfFYVDBYJee7 gx/u82RtU4hygYFW3IzBm5Ionz3C0cE0mVfWLKEgol9rYV4JEcNP1rJoln/cD8h/RIvkzXRTCYvX WLQhlD92+1l+zHfJg1FMwntsduNBxKPaTpE5L8d4VqFy6yKUFQtzhTlGiGL9B13u48a8ZFhRnJqB D+KeQursqcSfLN3+f9txz8J8C1oTIIDSVMZhrIoAWTF5tIdhy/UIEBYDcZg+Q8UhuRLyBn1+pvlH hV6a5QjptwQBGybQyDQ2/GYwPjlMcE57ESN6G+kn87CtwPdB/10jfVNpDbYnXJdSRQj8460WHJib IxmU2pb4i4DTkMZeMiNI9JSIyUbtnrlbG4BI8o81FOo91axhCaqPShJzgHH7y4ZfQxML X-Report-Abuse-To: spam@antispamquarantine.host-h.net On 2024-03-13 17:04, Arınç ÜNAL wrote: > On 13.03.2024 16:13, Justin Swartz wrote: >> 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. > > That's a good point, I agree. > >> >> 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. > > These are the documents I use to program this switch family. I did not > stumble upon a page going over this. > > MT7621 Giga Switch Programming Guide v0.3: > > https://github.com/vschagen/documents/blob/main/MT7621_ProgrammingGuide_GSW_v0_3.pdf > > MT7531 switch chip datasheet: > > https://wiki.banana-pi.org/Banana_Pi_BPI-R64#Documents Thanks for the links. Have you encountered this one? MT7530 Giga Switch Programming Guide v0.1: https://github.com/libc0607/arduino_mt7530/blob/master/MT7530_programming_guide_V00.pdf It has some timing diagrams, but nothing I found for reset. The HWTRAP description has some bits swapped, so I guess those were typos, in the case of XTAL_SELECT. >>> 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. :) > > I think you've missed that your patch is already applied. And it won't > be > reverted for reasons explained by Paolo in this mail thread. > > https://git.kernel.org/netdev/net-next/c/2920dd92b980 > > So if your patch here were to be applied too, the final mt7530.c would > have > the LEDs disabled AND before reset deassertion delay increased. Yes, I seem to have missed that. I thought your request for the patch to be reverted definitely would have been performed, or at least queued, seeing as you're the maintainer.