Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp699054lql; Mon, 11 Mar 2024 14:59:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXE9p/ydN7Y/RqF8l80JyQP2DNFS+2+cqPZQev1QUxmmOhN9crdlLvYJ48YVt1JUxXGMo/2IMKSsvJuacfJ77226WQ0JoLHz5OI7itOjw== X-Google-Smtp-Source: AGHT+IHPrkpkN34OFpaERMYVyvqLqIuVlHT4G8ja5+SS8EKmJYsrHmXE7Ijznaf7VJuGj1+I+UHx X-Received: by 2002:ac2:4db8:0:b0:513:351e:3204 with SMTP id h24-20020ac24db8000000b00513351e3204mr5587470lfe.26.1710194364668; Mon, 11 Mar 2024 14:59:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710194364; cv=pass; d=google.com; s=arc-20160816; b=RvP/khWz9BtBexq0PW9MPf3eNsufNEYzgsoVu4AsHpF0c72eyopzAbyT9lMZH7cH1u +6PY3u/rkiGIevWfnnW+U+ukUEUVeq3xlgh4aAVS0ukxYJMVuEEHQk8QHuSoKAGM1B7Q NxOl/xCaSvDjpFtC9QDXeJS2eW5+ZyOkuIPg0pja4CHJkipe+g9Z0Xu6AYr5VUg2sHAR gntQMd50VnHPo9fAXTbbjv+ZY20RIcTWLC66dqacYMkmon+OMvgoZKPR7sZlxSWXa7m/ s+RXAi4oTLqsx9XcazLG/N5zwTguB8Wt0quDzSX1g0eLCbLrixS1/KrJIGGbCAbvtUFS tBgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=DXm+dv0F8WRcaIbQydNqY3t1UW2S3zBA7Lh4mVQHEz0=; fh=QmOufF7ALiiyUV1Qvcz2iyRuxQRithWDRfrjtRQAbJQ=; b=SqPxTbqiNdIkM78CYtznICMoowP1jHuwLImFeMVa9K0x40NHwro2J9unZnWbZd6KiR /OqsJugYeH7VcUZX7fvJ35VuaF3jTANku2kg4Di4bV48PZ6w9+uzKK9vOo0vjHa9hb8B MmZpbAZIGkJL0J2GFVoOfxU8eGGvdRqtYhMlovC4+5tzBV0w6m0TgsRK2Z/yw82m5cxJ RlEwIrqianueMs/rStf3c7e7KKoQr6/r/nsLvAIRQWziHdc/rUXgR8yysYHWM3NEf85a s9XwQeC6an0EhLEEll2ValM0GVinkR9saTELTDHHYtecCwlmLGVrEraotJ5CUqs67AHN 9IVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-99585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99585-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s5-20020a170906c30500b00a45f24db7d6si2752625ejz.570.2024.03.11.14.59.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 14:59:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-99585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99585-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 315451F21FA8 for ; Mon, 11 Mar 2024 21:59:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE1F85730E; Mon, 11 Mar 2024 21:59:13 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 527F356B63; Mon, 11 Mar 2024 21:59:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710194353; cv=none; b=g5z9FNj/QKdv6bqkZRoRT/LXXftLP5Er93FCd7vCVdu7Zcjsh61SHam8AEIb3U1SJFc5H/vsk4uf/tK3fqrg1vGWXkFMHvql3OsJ4KiteMt48L5Rr366kLbfgkdedkTwg+WzXlELOG60snTlgq5Rn8Dwfl5dfmtBipQtJpP2S4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710194353; c=relaxed/simple; bh=sTG2XFQ2KYK7RVyLq4QyS0pByj6YUcGmkE+qM/HjAUA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eYsl5LdI5mmL797I2YBkyRwzvcxPhgf3cZyFm5kH8KYJFCCxWAXOmzmQCM/LoX5ahcss7zjhhATw2HzIerSp7GMkM3S+9T2T/VC6Tr26ssvIUUNcIecM3/plRReYSihcAy0Ghu6uEOtbzlgSWyyCm5ktp3gYh96VuILxmNaxOTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1rjnfa-0001zA-0X; Mon, 11 Mar 2024 21:58:54 +0000 Date: Mon, 11 Mar 2024 21:58:50 +0000 From: Daniel Golle To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= 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 Subject: Re: [PATCH] net: dsa: mt7530: disable LEDs before reset Message-ID: References: <20240305043952.21590-1-justin.swartz@risingedge.co.za> <171019143163.14853.15330891015381229970.git-patchwork-notify@kernel.org> <2d206dbb-a27b-4139-a49e-331797d8ba34@arinc9.com> 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 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2d206dbb-a27b-4139-a49e-331797d8ba34@arinc9.com> 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 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, ...). 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. > > Arınç > > On 12.03.2024 00:10, patchwork-bot+netdevbpf@kernel.org wrote: > > Hello: > > > > This patch was applied to netdev/net-next.git (main) > > by Jakub Kicinski : > > > > On Tue, 5 Mar 2024 06:39:51 +0200 you wrote: > > > Disable LEDs just before resetting the MT7530 to avoid > > > situations where the ESW_P4_LED_0 and ESW_P3_LED_0 pin > > > states may cause an unintended external crystal frequency > > > to be selected. > > > > > > The HT_XTAL_FSEL (External Crystal Frequency Selection) > > > field of HWTRAP (the Hardware Trap register) stores a > > > 2-bit value that represents the state of the ESW_P4_LED_0 > > > and ESW_P4_LED_0 pins (seemingly) sampled just after the > > > MT7530 has been reset, as: > > > > > > [...] > > > > Here is the summary with links: > > - net: dsa: mt7530: disable LEDs before reset > > https://git.kernel.org/netdev/net-next/c/2920dd92b980 > > > > You are awesome, thank you!