Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp737004lql; Mon, 11 Mar 2024 16:27:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUO3ctYP68OqhJGTbI/HEEdmVesK5e5f8iNlN5a/CRTnaoC0E1l0/FQpvjUMskhjg5qTNjLba1hbk0ojwBEiu6XU0CWMyWDvvKdXCq/JQ== X-Google-Smtp-Source: AGHT+IFK1ukhIYXJSaIK+d2TlyNQ8/VwjcuLV82BYRtROZqjVQWWbxCdv1h+qhjQ8evctmpNouAY X-Received: by 2002:a17:902:fe18:b0:1dc:a605:53fd with SMTP id g24-20020a170902fe1800b001dca60553fdmr8573539plj.10.1710199677594; Mon, 11 Mar 2024 16:27:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710199677; cv=pass; d=google.com; s=arc-20160816; b=qfAo/cf3VOQAp3oVStyHrcjhL8ET4ZHbVTR5cxqGYFqEB22sUw5LACDoxjlZt7439B BG6p+EXQ5YbH8t98e+giVCyigzkjyKtESeliezsGD4EJpwAQl762BAn8E9LE0uxkHAYJ xxbH9xLsTPI0aFgzmefMulSk8IDlAkKmhnOG08aj/xgYlXKV4teWUPXDj6/XpPyB05QJ ohk+DibWi7077jIQ1xVM2xRQJlFNCs35T9ovG1C4h1Dn/RbC2uX4lHVQkTadjlWpm+Vy eZkDvatKQwUh1P90+LRXB/H3/i9EGfUKXN24VeF15W2joMG3OWT2yCMsvCvZ9gJQ8GkY c2tw== 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=YWde9/RxgAOXD0QltJ01CiWNxoLjuof+4KqeqTguWDg=; fh=4wJxQK9Yulh+WUApVgRZZ0JnTia1q8RNjz09zKQpJKE=; b=PJkipWEG6Orz5+eU1v3JuvatQxeMgNT9ZdSVtbGwXkdKQDTg5cB45AiJa+0m4OXziD 9RjIGq2xAsJoUhTLgKPvbDV60WgqDLeYEnNGUpiQLg3A075AuSd+Ut/BLdgO62XmZ01K NflBEhw27ZLCSiX6hG7bZKBqxleJuGh9CQLt4aN2G/uFxFDXNZEStH+Vi1eJcl1f6zjJ vRiu/Vw40ovnniV3spsHmz8iNEm7WFS/Y/J0CDKJv1YeibEz8llSBURKwU7SuRPUNq0M ZFYLRmujcmGQwwJ4sHpgoKxwwyJ8hz8wT7mYkeQ2WLOQOvY0xhkiEyH+lY6SjPKzucM/ M32w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=eL1SKczc; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-99658-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lk12-20020a17090308cc00b001dd96b00796si3344911plb.236.2024.03.11.16.27.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 16:27:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99658-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=@arinc9.com header.s=gm1 header.b=eL1SKczc; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-99658-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.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 474A8282308 for ; Mon, 11 Mar 2024 23:27:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 548DC59151; Mon, 11 Mar 2024 23:27:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="eL1SKczc" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 8F8A058AAC; Mon, 11 Mar 2024 23:27:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710199666; cv=none; b=bB9MVoSFSSiinEk6XelHyrGfrvclp1GgkkEEMsIe+E9BesoqzEVhljxKj4OnmcJTm+vokTdvoDboNG5UWG9LgOSNyH8jeKl0PK68dpGylbEpEENECRfNgcwwq/B8d4gMizhRMxp106NRVrqb+dVITFLObPrl5Jb0azjXYObONWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710199666; c=relaxed/simple; bh=T14r/g1PhLqoZnfy+1cvwOKrEiY9E1q1H2roRLAZ7kU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JmSvQYEO6cTfjJitFAtKdve/DZVCJ45UiFCV+noCBA0Jjto2vQv2FqgfIHER60ghBBphmRKbypQPmAbrcsOk3a3MdVY36NK1Eb/zfWY6/gbJORq4/ry27Wn2fRWov5/Z/i0rE7U4j07ymWzpi9TIfZR6LolpMkdnxUkbuy/0eYQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com; spf=pass smtp.mailfrom=arinc9.com; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b=eL1SKczc; arc=none smtp.client-ip=217.70.183.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arinc9.com Received: by mail.gandi.net (Postfix) with ESMTPSA id E112360003; Mon, 11 Mar 2024 23:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1710199661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YWde9/RxgAOXD0QltJ01CiWNxoLjuof+4KqeqTguWDg=; b=eL1SKczcX7Wm0LaFbj3auDMNYOkOivrXZQZwduAw6eTbSCLQeKxenVuovzWJ406RurRzg/ QWsxKeWEkjrl+mAdXo/7D/gUYIcXiYvPfuBnii4S5H5+Eu7HwQbPB0eXVmquHm28TljmeY xQ17zFz0xpujDzZ3h36Kh+GnBz4k9sIGwItYt5RiSGAkk0pg//HkkJu0Zt3+HacLMEbHBN aCJrIFm3Q7mn91w4PKtcV3mRKiZWTJpWdLGL6Jl7ZWIC9QXYFD3GEKINer/p8jog8hl9/f g9QMboHpo1vHxzt0daB8nCdWX9sDRR8f1A++k4cmPjSdNr2m9HDUp3YQ+GDErQ== Message-ID: <2846b377-f45b-45fd-9fe2-cb22615e0fd5@arinc9.com> Date: Tue, 12 Mar 2024 02:27:25 +0300 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: [PATCH] net: dsa: mt7530: disable LEDs before reset Content-Language: en-US To: Daniel Golle Cc: patchwork-bot+netdevbpf@kernel.org, Justin Swartz , dqfext@gmail.com, sean.wang@mediatek.com, andrew@lunn.ch, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20240305043952.21590-1-justin.swartz@risingedge.co.za> <171019143163.14853.15330891015381229970.git-patchwork-notify@kernel.org> <2d206dbb-a27b-4139-a49e-331797d8ba34@arinc9.com> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Flag: yes X-Spam-Level: ************************** X-GND-Spam-Score: 400 X-GND-Status: SPAM X-GND-Sasl: arinc.unal@arinc9.com On 12.03.2024 00:58, Daniel Golle wrote: > On Tue, Mar 12, 2024 at 12:22:48AM +0300, Arınç ÜNAL wrote: >> Why was this applied? I already explained it did not achieve anything. > > I agree that we were still debating about it, however, I do believe > Justin that he truely observed this problem and the fix seemed > appropriate to me. > > I've explained this in my previous email which you did not notice > or at least haven't repied to: > > https://patchwork.kernel.org/project/netdevbpf/patch/20240305043952.21590-1-justin.swartz@risingedge.co.za/#25753421 I did read that and I did not respond because you did not argue over any of the technical points I've made. All you said was did I repeat the test enough, on a technical matter that I consider adding two and two together and expecting a result other than four. How I interpreted your response was: I don't know much about this, maybe you're wrong. Justin must've made this patch for a reason so let's have them elaborate further. > > In the end it probably depends on the electric capacity of the circuit > connecting each LED, so it may not be reproducible on all boards and/or > under all circumstances (temperature, humindity, ...). I'm sorry, this makes no sense to me. I simply fail to see how this fits here. Could you base your argument over my points please? Do you agree that the LED controller starts manipulating the state of the pins used for LEDs and bootstrapping after a link is established? Do you agree that after power is cut from the switch IC and then given back, any active link from before will go away, meaning the pins will go back to the state that is being dictated by the bootstrapping design of the board? Do you agree that with power given back, the HWTRAP register will be populated before a link is established? > > Disabling the LEDs and waiting for around 1mS before reset seems like > a sensible thing to do, and I'm glad Justin took care of it. Let's ask Justin if they tested this on a standalone MT7530. Because I did. The switch chip won't even be powered on before the switch chip reset operation is done. So the operation this patch brings does not do anything at all for standalone MT7530. My conclusion to this patch is Justin tested this only on an MCM MT7530 where the switch IC still has power before the DSA subdriver kicks in. And assumed that disabling the LED controller before switch chip reset would "reduce" the possibility of having these pins continue being manipulated by the LED controller AFTER power is cut off and given back to the switch chip, where the state of these pins would be back to being dictated by the bootstrapping design of the board. Jakub, please revert this. And please next time do not apply any patch that modifies this driver without my approval if I've already made an argument against it. I'm actively maintaining this driver, if there's a need to respond, I will do so. This patch did not have any ACKs. It also did not have the tree described on the subject. More reasons as to why this shouldn't have been applied in its current state. Arınç