Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp472031rdb; Mon, 29 Jan 2024 07:53:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYxOMDwi3u7OPFedU8vKhcPAa0EF94Gh/zo7mmaPNN7zHCZcRBJwehN+YotX/AG9Gg/18a X-Received: by 2002:a17:906:22d5:b0:a35:e5bf:9a44 with SMTP id q21-20020a17090622d500b00a35e5bf9a44mr1204236eja.67.1706543615203; Mon, 29 Jan 2024 07:53:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706543615; cv=pass; d=google.com; s=arc-20160816; b=yeiu8LK9hn8WMMgYF4SxGVa8hLtZ8NNOSLO3AgLnnyk1g3MDxweav2jgxA+DvAtnj4 ZIDRi9XtgqPOPbtmKKmAdfcw6BFy6GlD5AIfqmKHKR3Jyu+wE+BWPCbBvhXqCUnyMAY7 Bl1U2xEfouynjcz6ximD2QGeZBzPc5PT6YbblUoCmUPERQ1Twe7SuJsqLgOxxDyVDsLV pJW91Wt9XEpNxiluF9ftq/65cBjVM6TGlRoB8fxvahY8IhRrQlIMJuvLolZ+CzdrMKdR lPIKPPpjv0IBpWp6keavIgLbdSbSHrWyTiKuudCsNpJpLKSddxv4cLbKzum/E/TyIeEy U9kw== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=vv3PMf4fY1pbuKUa1JNM5dOu/R0kOpxjHd38nxGZDWA=; fh=tH3+jlH+oPWH/eYtdpEDttMVFnlVoy1nr/2L1kcDp3M=; b=U9PcgZzsVxkZcyfZSe+4soPeY+oFSeX40g3I+fRFErfFdN4EssExGESja7TWTZCDsm nY13OdOarzn/xCvEmHGwISVVpvNdCHbHDPw6NvCwKasmuh8oxA+3L/oNZx5JJtRADdHJ jQMxzNYwZeDsGASjgJ6xkNd+8RavsVjmKTEjjKZLfgckOvMh0KL0IViUzSFZ3PFfRkI1 GmzZbCFMhe19E5f8ixvk/5XGoV0rYu+sldpXHa5EXiP9bZQhLxv591NBzwRM5g6ML4mT MRvNVIaHVKL35gBWhWZ7fdEptrJ+MkqsHfUAUa7meTsID0vCPhXkL+92CUlb3KRCT48a hVmg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b="Pz/YiQMU"; 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-43038-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ap5-20020a17090735c500b00a317f391ad4si3709890ejc.56.2024.01.29.07.53.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 07:53:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43038-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; dkim=pass header.i=@arinc9.com header.s=gm1 header.b="Pz/YiQMU"; 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-43038-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43038-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CB2CB1F2270E for ; Mon, 29 Jan 2024 15:53:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91CEB15530E; Mon, 29 Jan 2024 15:53:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="Pz/YiQMU" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 10721154BEE; Mon, 29 Jan 2024 15:53:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706543604; cv=none; b=nxoohPkgrH7dzteHcfq6UzC0lIvbjZh9qlOipYsIZ306O3rkOp1SOFpjo55XnuJzGhl35G8jjGBfoINlUInUz+fpxG4BNeZ4oXPoTu7O3+cm+n/jds6Hmjpln4XnAI+Aoqp5Z4Avu/bZ0bTC5/l7Zt0gj4WCr9ImhQnU2wdrFds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706543604; c=relaxed/simple; bh=30B39kt2T6fIrtx/54G2x6YGaUHwJVG+0+8CunFDuQQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oawA0RiC4RC4KuHXO02cntqd8co7x8uakGmhUjENXZe6WHCTdcl+xzl4BLm/5gSwyZusi4UjhV8HwPibVvWwCYdx+SeuP3XLTMiiMZOaaPzYzMAxHmq3/C/b7Ih7e+i9lHQtm6OKmbzfty5rnbsTOE3SmRa0q02u246DpX8e15E= 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=Pz/YiQMU; arc=none smtp.client-ip=217.70.183.199 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 D5BEBFF808; Mon, 29 Jan 2024 15:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1706543599; 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=vv3PMf4fY1pbuKUa1JNM5dOu/R0kOpxjHd38nxGZDWA=; b=Pz/YiQMUwq7eAJ8pYBk5TyOi+/JOofuX2tqg/171A9V9fvl9PCUR5DU2jGqjhgxuz9EaL/ ZF9oNMoq6rfUGmma3thDv5IDtaf8n3oe/0xsytwkEIt39HldGaWVj569aIs+wBVAYRI900 hbKPV/Y/Oe0S1HlalZHuNp+maibeeJ6xGktlxWkuZJtGTgOVg7JNUvlJg1QrGP/OVt3fiW FDUvL/RFxtbM92KW1SuGhIEE4V+S+7D0l4CzgzE4wwS+v4xOPLQCGSK6L6Hpq3rzhYVvtS gRA04HcmC3hn+vBVaOq9KASoKvRF0AKxhEKXlH8zubK9XWh3mFXTTxN51J8lSw== Message-ID: <816442dc-b420-4413-a29f-c73b95f1026b@arinc9.com> Date: Mon, 29 Jan 2024 18:53:15 +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] net: dsa: remove OF-based MDIO bus registration from DSA core To: Vladimir Oltean , Luiz Angelo Daros de Luca Cc: Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, =?UTF-8?Q?Alvin_=C5=A0ipraga?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240122053348.6589-1-arinc.unal@arinc9.com> <20240123154431.gwhufnatxjppnm64@skbuf> <20240129145632.d2mu6vbwcqhjpyty@skbuf> Content-Language: en-US From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20240129145632.d2mu6vbwcqhjpyty@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: arinc.unal@arinc9.com On 29.01.2024 17:56, Vladimir Oltean wrote: > On Sat, Jan 27, 2024 at 11:23:33PM -0300, Luiz Angelo Daros de Luca wrote: >>>> IIUC, Luiz made the original patch for the realtek switches. Shouldn't >>>> we wait until realtek registers ds->user_mii_bus on its own, before >>>> reverting? Otherwise, you're basically saying that Luiz made the DSA >>>> core patch without needing it. >>> >>> My findings point to that. Luiz made the patch to optionally register the >>> MDIO bus of the MDIO controlled Realtek switches OF-based. So it's not >>> necessary to wait. >> >> Back in the time when I wrote that code, with the phy_read/write in >> dsa_switch_ops, the OF node was only required to associate IRQ to each >> port. Until my patch to register its own mdiobus driver lands (I hope >> that happens before the next version), the port status will fall back >> to polling. I don't think it is a critical feature but I'll let the >> maintainers decide. ACK for me. >> >> Regards, >> >> Luiz > > It isn't really great that this loses IRQ support for Realtek internal PHYs, > especially since Arınç's commit message did not estimate this would happen. > > I don't see why this patch could not wait until you resubmit the realtek > consolidation set and it gets accepted. I agree. I didn't anticipate that realtek-mdio didn't set IRQs on PHYs for the MDIO bus registered non-OF-based. I'd much rather wait and then send v2 with the mention to realtek-mdio removed. Arınç