Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp71337lqp; Wed, 20 Mar 2024 14:06:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW09Vd9Fpz+FmoYMpEJa939IQ1weuwKCBAPxQfaotitB7zG+r2iwYkY0LLb0sOD+Dvs3pzBLA4syHVYlt7YdPPDe8CkGI/BxBFGgWS5mQ== X-Google-Smtp-Source: AGHT+IHaMLBFYlJ7g1UJwU/5RGQz9aIEBcXh5c3OmWfEnnhdKPFpmL8ql7k7zqALxwgaTDy/9BeL X-Received: by 2002:a05:6871:d107:b0:229:929a:b127 with SMTP id pi7-20020a056871d10700b00229929ab127mr3605622oac.37.1710968818593; Wed, 20 Mar 2024 14:06:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710968818; cv=pass; d=google.com; s=arc-20160816; b=h3xMd2/4mDSBjQ2qfgVezqhg9I/uCt2IHmAZ6+WMW5z4tokxJywk6PnhGqWCrJzc3B ysRXc+Z/lJH0qPTxrbjpL+Qj/dBK22E0MD3H4yTqNQcaTxW5s2u+S+j3O3F3wShM/Yfb LwoCbNC2/Woj8gP0QtFYkO6/H7D/fSKqyUqyPhyxSyzFd/A59D1AchCSsAkHOEM5XpzF ExZhrQrdv2bNT6fR3PIzq6qf/WT6lls8drvLFmh87Rp+9M+sfvY1rMFL6R9Uw38aOmoL nikS+N4c7SfBeZkRqk8IjfLaXuarJsR3EkUJJEjJJUnKd61iKr+KG6e+RVdUXtjgVL8U TGuA== 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=u+eA4poe7YhKyyg6S2zgB/KMMtaqy46s40/9yE4njUg=; fh=4n0LYNDPoDf8ZoIAk68NAFHqo5mTCDmzGAOeAM5NG9U=; b=F6UigbOa3rdK15kdLB+p/GIQkMRwVea1gqgf7aQatdzX/GDufBznZd013qL0Se+O/l 33di/Cuh8wUOhDpM33CnDoG/kDvlXlvEZuymqLCDsH/8kSlQBNfj+9/FToimpDB5t9dP BahfYIJitvG1wUcvFG/PFtNG5ZdHMWJdtvGpvBQDjQaDxe5Xiw9PvTzatiFmiUBn4Sva A0swUMzQnJLI3CHDS0uKmhUkOzMOUt1yN85FdYCb94/8qInJi/LPgZHneh2ABLGDF13X g0ux+KasUuM4JDcJqhWUXO4utkWUqyvC27NZ3V3lh7MSUt/TUJT4Y5Oyls0Ehk0Hh1wq HpNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=JuoJStpP; 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-109422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109422-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c29-20020a631c1d000000b005dc8b9af6bdsi12747831pgc.420.2024.03.20.14.06.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 14:06:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=JuoJStpP; 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-109422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109422-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 50629B21F9C for ; Wed, 20 Mar 2024 21:05:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1EB68595F; Wed, 20 Mar 2024 21:05:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="JuoJStpP" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 D58688565B; Wed, 20 Mar 2024 21:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710968728; cv=none; b=DIOHo3I1ZWDuulWLN7mTFEmajfOcSAPOCdHGiXpULAzsKn+5+s9Ux/EsN0xpra2Au/4zjtvNFRs8BOa7HiuHIxOx0frkANJXcifHhLIzxmQCr3zyJ3Ldzz6FqUN+9GjJLlB83N8RTEPMdCdlgJ1udbNaeiVVHDGVEa4ltDGTYIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710968728; c=relaxed/simple; bh=2fuJvgCp/TQfwxtVb1Kj0pQKhEPlbMyqXlkRbqCIatk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ouvT3Kxjs//2Su3C5SETPU00ltttVeSVCVyq77unXbeTKvErm75r4w+jW5h5Qiq+E+ZHNhZPZi5Fo5gz6kbj5wgf45R++q7V0dYr5j9KAf3moCsgDDCb2k7rszMsIUvLBzFnVx9ZAyyzZAEOzdNhAlXTF72gxQS6HHQHABeLqjc= 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=JuoJStpP; arc=none smtp.client-ip=217.70.183.197 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 1939E1C0004; Wed, 20 Mar 2024 21:05:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1710968717; 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=u+eA4poe7YhKyyg6S2zgB/KMMtaqy46s40/9yE4njUg=; b=JuoJStpPp45vWbK9MnkL1uOhTmNJiyG2ZlZsMk0v5ZWHIETQDf8hVwpIWGRJX8ZBwkMDo0 wytv9+y/VJJMh9NTSqO8LXurlX8T81aySSDJTWyqCaNceHNP/SNrTAG8dhJgvVo8BnZu/7 aOp+j16m4940s+7uik7lxvDcmFTA7w9HCP2asUiDZUg2k/RTprEhAL4F/a5LTGuTj4klcf psNinjH1BMvNlbXZhtCtmrX9i8OQTy8juOVOCVJVYYaAa4vwmkWT+Z57je5orX65jGZuwT ZQd079JYQiGDOwFGxHi4rM4YRFo/QjB9ublP+8iMj40zmM310fmmvAxLwXQn4g== Message-ID: Date: Thu, 21 Mar 2024 00:04:50 +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 3/3] net: phy: mediatek-ge: do not disable EEE advertisement Content-Language: en-US To: "Russell King (Oracle)" 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 , =?UTF-8?Q?Ren=C3=A9_van_Dorst?= , SkyLake Huang , Heiner Kallweit , 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: <20240318-for-net-mt7530-fix-eee-for-mt7531-mt7988-v1-0-3f17226344e8@arinc9.com> <20240318-for-net-mt7530-fix-eee-for-mt7531-mt7988-v1-3-3f17226344e8@arinc9.com> <3698b522-d6dc-46c1-bab2-d5ee3bed1fce@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 20.03.2024 23:53, Russell King (Oracle) wrote: > On Wed, Mar 20, 2024 at 11:40:56PM +0300, Arınç ÜNAL wrote: >> On 18.03.2024 10:46, Arınç ÜNAL via B4 Relay wrote: >> Can I get an opinion on this? Is it actually possible that the PHY driver >> would start probing after the DSA subdriver? On the console logs for the >> DSA subdriver, I can see that the name of the PHY driver will appear, which >> makes me believe the PHY driver would actually never probe after the DSA >> subdriver. >> >> [ 4.402641] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=POLL) >> [ 4.420392] mt7530-mdio mdio-bus:1f lan0 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=POLL) >> [ 4.437791] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=POLL) >> [ 4.455096] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=POLL) >> [ 4.472422] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=POLL) >> >> I don't want to submit a bugfix to the net tree if the bug won't ever >> happen in real life. > > It would be really great if you could tell us which bug fixes you're > submitting are for a real problem that you or a user have encountered, > and which are down to essentially code inspection and things that > "aren't correct". Basically, don't do this. I agree. Patch 1 fixes a real problem, patch 2 "fixes" a problem found with code inspection. Though, it would be great if you could review patch 2. > > It isn't true that the PHY specific driver will be probed before DSA > initialises - consider the case where the DSA driver is built-in but > the PHY specific driver is modular and on the not-yet-mounted rootfs. > That would result in the generic PHY driver being used even when the > PHY specific driver were to be loaded later - and thus only basic > standard 802.3 PHY behaviour will be supported. > > That's not specific to mt7530, it applies to everything that uses > phylib. It isn't something that really warrants "bug fixing" in each > and every driver. That makes sense. But there's a special case with the MT7530 DSA subdriver and mediatek-ge driver. The PHY driver is needed for the PHYs to function properly. So the DSA subdriver forces mediatek-ge to be selected [1]. So the PHY driver could only be compiled as a module when the DSA subdriver is also compiled so. And that designates mediatek-ge as a dependency for the DSA subdriver, if I understand correctly. [1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=fb4bb62aaac715e50c7c007714af19a2698db88b