Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp561801rdb; Tue, 23 Jan 2024 07:52:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHH6mY5XjhEJIR6v6OXsBlVfKLRvcw6/Rr9mKLVDWO01FZvu1iGWkkCNhM0SSAOoFdrlN2z X-Received: by 2002:a17:906:b217:b0:a2b:cf2b:504e with SMTP id p23-20020a170906b21700b00a2bcf2b504emr29484ejz.147.1706025132855; Tue, 23 Jan 2024 07:52:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706025132; cv=pass; d=google.com; s=arc-20160816; b=r7Z0HGCjIzYJmqeZfbBP38jGBuJKPsfqRFi47bL7msVISY1MJTbapWWWQjvHGlj1Fb fGxLtZATweSmmTnnUNdnDsTtKz3AQ3PfVWMnQyj43X+uNV4I46spg+GNHChdo0Ha6XqV JvFhWgrenL1F1WvQHLqA1Xir1gnbJGQ8N4O1GzPVUyHWPKVszP60XzaXIXuMAGxkiyvm 3ENfbjB0G5iwrF7PkdVmFEbyaZvK0Dwqk53HX3satMDbW0pe2kdocXUx7aQgMWBhllEQ ryKKHqlyMaXojE0AxOVdKXbIjF0RVJecq1JmOU2wjcXx0MubRsPXbMpMcQJATWR705ht hx/Q== 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:dkim-signature; bh=uyKGGaXH67qi8vCo0maX5/zi228Y+OGFXkTPJDuBuaU=; fh=HRRtFlALr75M3AgkzeECCZ+D21n9DlrvBW2+inLZdt4=; b=Uv+GTn/k1mmsFcZIzEyes2lbtQ17Oji5gH++v14G6jwitUHpwRue2ACnWWSgYCyl9k YZoiAGWO/Usj0OwhBEcTL/BnVI8VpE5CJGSYrbDGs/ANeL4gp6FyBpwCLxjGy1fnZzvo fmj6Ql0so93W4dg/71uPBzHUo3DyXr8WB1OZdNFaS24XbDfnOzHI15v2UWer6SecMVLO gZ5vH4daSRe985SFWOMvZKD0FazA+CgwdntOzJP+DwkY5blG+a1qzTvxHIeP4XN4s8x9 MVcJk6C5SqqWeVLlhYR4r1d1XWh+vlW1bF0FGVJjNuJkHPIQjfAmcXhCjeS1grlNY9o6 ndXQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="fB/DiWid"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35586-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 y10-20020a1709063daa00b00a290aa01744si11273144ejh.736.2024.01.23.07.52.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:52:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35586-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=@gmail.com header.s=20230601 header.b="fB/DiWid"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35586-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 F0C781F23DA6 for ; Tue, 23 Jan 2024 15:51:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13C0D6BB29; Tue, 23 Jan 2024 15:44:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fB/DiWid" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2EA06BB4A; Tue, 23 Jan 2024 15:44:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706024683; cv=none; b=f1A6UX24eLgMWP7KShHbUGdXYYo5f37io6c5VF+OizmHuncpGhOyNjN3UDwC4N8KL6YcR6fcNrm9/nXtNelbFXAxFB0VY8FtUtcS9yfL2zVqN9mG+MVWZzSQ6lC6RbY8NLgNnz3rr8hkWs81n2gxfoL44JnuHSBLzFyPvaiV7sQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706024683; c=relaxed/simple; bh=rVS8jGbR1XkYYdRYiPqWd3eo7KWQ9uoG2lTEv7reHhc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VkQToUSmZ0d6nVHVqJvoUHrxUZwZ3e47uw7OlYfKVHTVBcjj+e7sfJg26eGdyHE9Jx4qMvWvqrk7/3B+GTek+msY+oo5R5uN0KjqPa237gWfJIEN0pGKV4ZZj5TmX2ADyYSQZB2uZ7pEuvKnNiq3pQluNEWlPQ2dmOmj1KG+d3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fB/DiWid; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-50eabfac2b7so5608743e87.0; Tue, 23 Jan 2024 07:44:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706024674; x=1706629474; 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=uyKGGaXH67qi8vCo0maX5/zi228Y+OGFXkTPJDuBuaU=; b=fB/DiWidXcfoGe+tqkkxStXuslmPJHkl8TwlP9TmNeukffaZuvABIaVpxIqSgwMqr9 P7k7qN+N/XyK7t787EZ3DQesEEm6QkILlrIE4GpSgoC4juvJ5nVIKdeINmGzZ/2OH/iv jDjn3ttUyNYTEGKYL0egvNlsDNWyyRb6Rf3VBS+4aRy5/10x1Y5elwzBgBbo4lle9hqA 6eHTifJPhSWgIwohEMXfo0/xvZKBujgqFLUuRvulusT/UT8cw9mFZLoRHf65OiAK4qCC DnfwiqnycBuULJHc+GxBqs1HZBGNqqvGwczd+udUB+4fwhDpSjMgQBTSQuwT+BY8t6ON twKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706024674; x=1706629474; 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=uyKGGaXH67qi8vCo0maX5/zi228Y+OGFXkTPJDuBuaU=; b=vdBMkCumAs1lJaUHT6gBXtPjNr9tIo9MLoQqwgOcKHKfb5wT+FMcLtvRkZeVbeLBbw YonfIzJN6ACkU/lGplYnudYfyp6DLyc+XLqZdcn6sEC9lFjssTjwx88GwKqvjx3YQhi8 1LE9xoJId/WMYp6kyrLW0R/Aa55JR1xK4xsN1ZwUIBPdOCUb0xv4hNwPDLaf56aG72We cBhOnUAlvOWRamstbfZFCsslCQkaR1FD/QhFkjCrZrdMENlzPp/FDmsYjTeuO1ygcP5t XlqHWRV5wRaZ9pXcsMBaYKsmr0+rgGZ4cUtqfLZGu3OQLvVyKcx5jnm2yhY4thu786L5 CY2w== X-Gm-Message-State: AOJu0Yzxm8k/ATojyEMj/cChwrV5AGsbhTry66bW7kiWevYand17vqWp K/kcaMhkUrkyTnFGpdsiMl1JkMUHl/H0K9yynvc88mz4UjO8Ltq5 X-Received: by 2002:a05:6512:ac2:b0:50f:1502:79e5 with SMTP id n2-20020a0565120ac200b0050f150279e5mr3271350lfu.14.1706024674068; Tue, 23 Jan 2024 07:44:34 -0800 (PST) Received: from skbuf ([188.25.255.36]) by smtp.gmail.com with ESMTPSA id vb5-20020a170907d04500b00a28aba1f56fsm158225ejc.210.2024.01.23.07.44.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:44:33 -0800 (PST) Date: Tue, 23 Jan 2024 17:44:31 +0200 From: Vladimir Oltean To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Luiz Angelo Daros de Luca , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Alvin =?utf-8?Q?=C5=A0ipraga?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: dsa: remove OF-based MDIO bus registration from DSA core Message-ID: <20240123154431.gwhufnatxjppnm64@skbuf> References: <20240122053348.6589-1-arinc.unal@arinc9.com> <20240122053348.6589-1-arinc.unal@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: <20240122053348.6589-1-arinc.unal@arinc9.com> <20240122053348.6589-1-arinc.unal@arinc9.com> On Mon, Jan 22, 2024 at 08:33:48AM +0300, Arınç ÜNAL wrote: > These subdrivers which control switches [with MDIO bus] probed on OF, will > lose the ability to register the MDIO bus OF-based: > > drivers/net/dsa/b53/b53_common.c > drivers/net/dsa/lan9303-core.c > drivers/net/dsa/realtek/realtek-mdio.c > drivers/net/dsa/vitesse-vsc73xx-core.c > > These subdrivers let the DSA core driver register the bus: > - ds->ops->phy_read() and ds->ops->phy_write() are present. > - ds->user_mii_bus is not populated. > > The commit fe7324b93222 ("net: dsa: OF-ware slave_mii_bus") which brought > OF-based MDIO bus registration on the DSA core driver is reasonably recent > and, in this time frame, there have been no device trees in the Linux > repository that started describing the MDIO bus, or dt-bindings defining > the MDIO bus for the switches these subdrivers control. So I don't expect > any devices to be affected. 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.