Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp914687rdd; Wed, 10 Jan 2024 03:31:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlgiLYXQKJV2rBqd7kzvv2L/Wx/g+DXh7EE4cjdQ5eOCGsEctQj2AGsAQaCOiUS0NA2JBl X-Received: by 2002:a05:6e02:348d:b0:360:973d:97c3 with SMTP id bp13-20020a056e02348d00b00360973d97c3mr1120240ilb.31.1704886272041; Wed, 10 Jan 2024 03:31:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704886272; cv=none; d=google.com; s=arc-20160816; b=Ir2K54uE0sNiq1jMBVIpXcxUcDwRfYqRPYjm8HeLLcGJrsEyHmnSob01VqKT0eCU+k JtxKKZXTASuiq0eQA7Ot2i1Vg3Xi9/ipbx/1begYX/M+1DHq1X3w14UZxu5w+7SKsG1M t+/RowFw+/RuS+jHl3EUihEW3wdEoVC5NNZJKFb4vvrBq5T2/hxz5yEGSBYcjJ2gZ8By QM/dAN2dDYIDYKuaJQcSNJmH0fZMmhps1zOt/BBLAvoZm0f4Dz2t1Nf0Xr3cdqzNJQ8u Igfzmv3VEnV4FS1bSXQtq3dB4L7mLSvjqNCkIA5WK7nDHMYy1TP5zh2/yTatXwn1l62/ MSyg== ARC-Message-Signature: i=1; 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=CSqO5eCZ27MS2fADuP5ThwfLEsbc8s+DlvDx2BBPL9k=; fh=lz+bL5nSWc48NS9NUFSsqa/UutHRDZmTYcHZRjz2cLE=; b=l0RX/3kLucr5f96cHJwb7mxYBeGFTE78X2FbqJAqAcDFUKUYFeZx02YqYfIRiT2+wf j9/esU7GB/UUB2hMbH7uWAqFsxegRDN+Ey1Dz/9TNsx4vPJEjW8z+7VSNo37FFU/aDAN ZR12s9ie6JIprLYVwmLzYew0YrPay8muaddKsLAx+KrI+Bo979gqrnnZDP/zDIQm6AS5 QNCkl+YgEeWP/+N7Ao399+knQPkwLNW9xLo/DQ62UwLyL3O8skyqjI/T70rVwUuZmKg7 mSSLHhZ1YSP5mjjdAO399iXuL+WJ83zS0nQq+RWqN1WIq/nW710xx2SknW9EfoifiKB2 gkAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=Tzfpi8yu; spf=pass (google.com: domain of linux-kernel+bounces-22093-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22093-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 t14-20020a6564ce000000b005cdff5fb163si3429729pgv.333.2024.01.10.03.31.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 03:31:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22093-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=Tzfpi8yu; spf=pass (google.com: domain of linux-kernel+bounces-22093-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22093-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 2899128775A for ; Wed, 10 Jan 2024 11:30:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 689A647A67; Wed, 10 Jan 2024 11:30:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="Tzfpi8yu" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 34CE447F5E; Wed, 10 Jan 2024 11:30:05 +0000 (UTC) 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 36DB0C0004; Wed, 10 Jan 2024 11:29:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1704886204; 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=CSqO5eCZ27MS2fADuP5ThwfLEsbc8s+DlvDx2BBPL9k=; b=Tzfpi8yuk+TImYcUywQQIvFFpb91SjmS/Ouw4VxsSkKzJYC8O8pINGX9ZiuhuFPx76S8MP U0Wi4gkUhaAaxwL5hPdzb50wFg23My4q65d4VZlhj4qID9HOZ7DiFQnQqnmVC+T89ofRpM dUA4DVECweXkce6hnMN8egguyQviZZSAmR+M6WthOF75YBd0tnqDw5ejsZAup7Ie11i1Uu UFNdQwyX15P67nNAfNJPcVnkTfGxZuXGjKmN28/kHW4fU8a6vu+mo1m21ASjCqVe/Lwm+g 5Q+t4YJQJne3IgPPWP9IW8vFuddLKx4pyL0EGJGiuN/A9ca9hxoV1sIEj3FjNw== Message-ID: Date: Wed, 10 Jan 2024 14:29:57 +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-next v2 6/7] net: dsa: mt7530: do not set priv->p5_interface on mt7530_setup_port5() Content-Language: en-US To: Vladimir Oltean Cc: 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 , Russell King , Frank Wunderlich , Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20231227044347.107291-1-arinc.unal@arinc9.com> <20231227044347.107291-7-arinc.unal@arinc9.com> <20240104154241.rxjins4mi5zkbhia@skbuf> <2793938a-91e1-419d-a011-850756177e31@arinc9.com> <20240109115115.yuct3yw4oy6ipd3i@skbuf> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20240109115115.yuct3yw4oy6ipd3i@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: arinc.unal@arinc9.com On 9.01.2024 14:51, Vladimir Oltean wrote: > On Tue, Jan 09, 2024 at 02:42:45PM +0300, Arınç ÜNAL wrote: >> Running mt7530_setup_port5() from mt753x_phylink_mac_config() multiple >> times is being prevented which shouldn't be done. That's because of a >> different reason involving MT7531. I will deal with this with a later >> patch. >> >> I intend to put this on the patch log. > > Still not clear why it shouldn't be done. Ideally you could come up with > a plausible hypothesis as to why it's there in the first place, and why > it's not needed. I can't tell why it's there. Russell did analyse why it's not needed [1] and my test [2] confirms it. This patch is about removing the unnecessary setting of priv->p5_interface on mt7530_setup_port5() which I believe I have already explained. I would like to get into the details of priv->p5_interface and priv->p6_interface when I remove them along with cpu_port_config(). That said, I will refrain from including the last paragraph on the patch log. [1] https://lore.kernel.org/netdev/ZHy2jQLesdYFMQtO@shell.armlinux.org.uk/ [2] https://lore.kernel.org/netdev/9308fa1a-6de3-490b-9aeb-eb207b0432df@arinc9.com/ Arınç