Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1839701rdb; Thu, 7 Dec 2023 10:03:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/d0+5jV/i86mG6CSnNjUOffa9g4aR0t0aoM+NDcXY8GFQ3fbTtU8w7RvK6qr2A5lFyDP1 X-Received: by 2002:a05:6871:7506:b0:1fb:1a86:8db0 with SMTP id ny6-20020a056871750600b001fb1a868db0mr3297762oac.8.1701972228636; Thu, 07 Dec 2023 10:03:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701972228; cv=none; d=google.com; s=arc-20160816; b=dDH2QRiBzkVh7fIve42TTDlFyFFfu00owvVlM2cBevnxwHo/J3g77R3y3PgPNamXM2 rLqthX5NA6TWM5y4oqwNZizik95/hOjfnRsmbBlBNWlm0k8Ifbz6Ef4vNFwrLRsbwOR1 PIAd2iAX08awNaJ/Xub7KyaG0vOAG3Q91rXcPXO9qDdjqRhaFhPwdmi+OmEzoPyIRfKr qcfoxv3Gkr82m7SIVjHH8NTPaUwIMUDBLEbeaUhvDPAIEUtMfgzdy6bxHvCBpiKlbCc0 h670nOh1/zMqJ7Wv1JQ/GDto84ezLrICBYkO5Xh4kf7QwnWZhwrRTzDI3dgY6hL6CoA6 OfoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Cyd5phiUGtF3gGm1M6y6XMNxNpiGb0naeJEFalYfR2w=; fh=WETrUDnuvOCYsCJsPdS6NnV7iA07HpZzPDE1Btm3Nw0=; b=N7FwsrO5KnrufCakdaHxN4Zs4YSCM0XZHbgdpLyv3t9b4qNBGXk1NfNluWAMtihvR4 GzdSuOT/vRFm2VOnIXc3lMWV7TPiplmVGZiMv93jRIPdMpKpvsaybSp4HjD0oTUqHzPV hJhPVNPq2KtRzGPOuDGSOojAAkUePgc6BYdi6w2aSk5EmkON7nf5ov7xBZw3TidB9CY7 KR4yBbtLhceWpHX39wuJM73Dz+4fbo4D4vfFboCIJGub8hWykG+DFXSiLTyOFmerXVzs nz9BRT7FTfsO6O0WtKNJN4Zqx88tEcTsEMkUHUxyPVvZJa2eJllncco7ThSR6/vcoJ2C acbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Iq1LYhC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id q17-20020a056808201100b003b84127bb76si97668oiw.2.2023.12.07.10.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 10:03:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Iq1LYhC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9A9E5802A3C8; Thu, 7 Dec 2023 10:03:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231178AbjLGSDc (ORCPT + 99 others); Thu, 7 Dec 2023 13:03:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbjLGSDb (ORCPT ); Thu, 7 Dec 2023 13:03:31 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF7F2170E; Thu, 7 Dec 2023 10:03:37 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a1e2f34467aso120574166b.2; Thu, 07 Dec 2023 10:03:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701972216; x=1702577016; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Cyd5phiUGtF3gGm1M6y6XMNxNpiGb0naeJEFalYfR2w=; b=Iq1LYhC0rBbVyQTC6Hg0kvYm9u8ojdK4AUeUmSgXZbod2Q/h6yr0qzEaIOuH7SJIDk Hr2NXVd/YUmiO5GSZqXO97gvw8+QccPW9vSp7t1q+ivhca/LQq7w+JVl/IdvOvEad/O+ 6CK7q41/Vp5hAR8ztukxW1gtCjAR6COfDAZ9WqK2FtrE4/nDMkKQ1pQbO3eqcoqxeo4K orJ1ZFCM3iyGCNdh1lU8fxqyH2sdTdyo1jwwOKnOSfGMwUwbrsoUT4sT4W6wrjiIbe5U LzsUZ2EqZWyoawYG1NdVULXjq9XeTS88TnHlaePiLcfRzD9JVqATwc5A8axRuhcxAiFj HVYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701972216; x=1702577016; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Cyd5phiUGtF3gGm1M6y6XMNxNpiGb0naeJEFalYfR2w=; b=aEPEGoHVhbKS6pidu2wfs3NNPHZgSqK/yIaISha4xyJLtbxMtmsMW6oXAtKJ2HUaBf Kt/+Jet5fPsGkMA+H+jmZc4YD2KSOoLjuQblc0UxnKKHMBZLiBjtNGqOnfZhzVylbncS u/hV8ubaD+rtcq+4jysV1+FVukLB618/zTSZ+8BxkQv8zFVpywP7zPz+lXuc5bifZv5U R+00o9ADQmzIQD9nigM0jiQNOi5dNs5axv+575HC79cyWg9JyoCjZH5kCqgA6ur9RHef UfRhaCv2vH+d7QMjOD0ozC97LZYbFHMHJruOhkEsrVedsFyWi7KB+/ZzTR4fucz/ylZa Mbug== X-Gm-Message-State: AOJu0Yx/oKTTUfKrejvMUpnNU1voT3okID8WaycSROJkrdpYK3RAqnOH 06448clEG7E8nlHqM4P8C0I= X-Received: by 2002:a17:906:fa92:b0:a19:641:66da with SMTP id lt18-20020a170906fa9200b00a19064166damr2080980ejb.7.1701972215689; Thu, 07 Dec 2023 10:03:35 -0800 (PST) Received: from skbuf ([188.27.185.68]) by smtp.gmail.com with ESMTPSA id vi8-20020a170907d40800b00a1c7b20e9e6sm40275ejc.32.2023.12.07.10.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 10:03:35 -0800 (PST) Date: Thu, 7 Dec 2023 20:03:32 +0200 From: Vladimir Oltean To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: "Russell King (Oracle)" , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , "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, Frank Wunderlich , Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com Subject: Re: [PATCH net-next 05/15] net: dsa: mt7530: improve code path for setting up port 5 Message-ID: <20231207180332.ugfp33xcdkw3elrw@skbuf> References: <20231118123205.266819-1-arinc.unal@arinc9.com> <20231118123205.266819-6-arinc.unal@arinc9.com> <5e95a436-189f-412e-b409-89a003003292@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5e95a436-189f-412e-b409-89a003003292@arinc9.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 07 Dec 2023 10:03:45 -0800 (PST) On Sat, Dec 02, 2023 at 11:36:03AM +0300, Arınç ÜNAL wrote: > On 18.11.2023 17:41, Russell King (Oracle) wrote: > > > For the cases of PHY muxing or the port being disabled, call > > > mt7530_setup_port5() from mt7530_setup(). mt7530_setup_port5() from > > > mt753x_phylink_mac_config() won't run when port 5 is disabled or used for > > > PHY muxing as port 5 won't be defined on the devicetree. > > > > ... and this should state why this needs to happen - in other words, > > the commit message should state why is it critical that port 5 is > > always setup. > > Actually, port 5 must not always be setup. With patch 7, I explain this > while preventing mt7530_setup_port5() from running if port 5 is disabled. > > Arınç Then change that last paragraph. You could say something like this: To keep the cases where port 5 isn't controlled by phylink working as before, we need to preserve the mt7530_setup_port5() call from mt7530_setup(). I think it's a case of saying too much, which sparks too many unresolved questions in the reader's mind, which are irrelevant for the purpose of this specific change: eliminating the overlap between DSA's setup() time and phylink.