Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1643146rdb; Thu, 25 Jan 2024 01:39:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsDOsNvNtwEgaSa49caCfDqRUhfAp8i7QT1apa1MwuLFwJqZ5B1h1BD4BaFbtjCLavVxui X-Received: by 2002:a05:6870:2188:b0:214:54b9:7cd with SMTP id l8-20020a056870218800b0021454b907cdmr600253oae.111.1706175540460; Thu, 25 Jan 2024 01:39:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706175540; cv=pass; d=google.com; s=arc-20160816; b=kVQ1tWdt8aVQarJdQkCF0ysvQWYx/jzHHH/d3SHOgrK9nXaDJq35Bk+3YQ8LWQ6alw WUMYpFM7uOTVRmts0A24Wabp6+j54S4eFZdN5l8v2mpG23hqpRIKxwymSHpEdj/d5W+K khBOYVFd7nsqianq9BC1nLFQQZ/9qDTsEx//ZBOGDzcybeO+ZgH8p0gQYlzaffvtmYlR LfBT88ogc2GFlJctjbPVuwHDbui3JzFmnHbwm45s+BSQ4pPBClxmSxqD7ln7/h3er7Hf awGSfDDWuXUQDrPdLI3COP2i5EC67np+1QroLNfRtqP2PUL88H09LMu3X3aXrD6/IaMC fJyw== 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=MOVBMzL6UNqR3dH+kMM9JTuFe/LvTcnh2ksCh4OpNI4=; fh=XARzwfee1Oq/bF6EUoAKlQNkjS2iDllWo1riLGwy14g=; b=pWyPiAlIUroWwxnD0CJFsc/jcW4uebMf65GG3jNmRIN6lVX/gfx7RRDOvyAyh6Scli kb7muvU2dbrIq3VQIvvlKQG0Ezel0QnT6IvNC6AOOcMzaarsKh42ZiScz/7D16tEzgff LiWCLSOSyDb7Zf4SxWoZbNdUmQ+VKVfZbqwc5Z4DFpcb+lP6Om3ymaw97Gixsan69q5H IGnaqOSyq079Jd8/THc7dCzcoknaFYpeeaeKJ8BfDcWs17bu5s3RaYi/OERyD/+cSYiT E6tynhlTT0d+tnmkpio1DOcv0fDw5Y7xhb2SpX9Ad6NWSM6Ok1QgJhQx0bidT294BDgE VXig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZmadJnP1; 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-38224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 c6-20020a63d506000000b005cddb4051ffsi13168199pgg.25.2024.01.25.01.38.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 01:39:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38224-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=@gmail.com header.s=20230601 header.b=ZmadJnP1; 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-38224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38224-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5B21CB21DA2 for ; Thu, 25 Jan 2024 09:06:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C01C1B970; Thu, 25 Jan 2024 09:00:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZmadJnP1" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 F037F1B94F; Thu, 25 Jan 2024 09:00:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706173253; cv=none; b=KzY8+dZAtuecX1spDjGokjhEIkwaA+KDtclRwBYYJiG0ZAnIHeFXBGEgL3vo9lYP71vMK2ioeECcFmoz2hwRApbYZ/AlceDWmPFbw+3nEGDzJpIUErYHIipjseGWSvGSReuu39ELxsewCniCRb4nM8Pr85bWQHlJb9oZxmC0b+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706173253; c=relaxed/simple; bh=LoxX9dBFXRpqezdseXqTieo5vgHDE3MP1dCNWiKdj1A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ds4/b4J27JhBoWGu27k8iMpC26r53v5lQnH+7bBdKz3ZFzU1YMHI9diwfXXrFPWSHmHFXrei4iqhOoofnNKI1b86Kbc+s9BLBbfFs7WybMo0j2E3X0rea+UCQ0rk1VJq3bSdecA6kX/4Y1s0BygA5ppYaE/JtMqTrMQpnNI17lc= 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=ZmadJnP1; arc=none smtp.client-ip=209.85.208.170 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-lj1-f170.google.com with SMTP id 38308e7fff4ca-2cd33336b32so86647331fa.0; Thu, 25 Jan 2024 01:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706173249; x=1706778049; 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=MOVBMzL6UNqR3dH+kMM9JTuFe/LvTcnh2ksCh4OpNI4=; b=ZmadJnP17HBHCqDQ9VD6hIdz4fO0nMZfPHXcFwznsiLJo4dlmxqX5O1Og6AycqNkkj w/1EDibcTD+WfYIMtueSvYlqlGYZb1/2AEkXY/dVGlb9+jTVQHNJkaYTf/UdfoBk3Gbt ZY1WN7dGb4pStVIAN9w/XOrfVZCp/wIgNs4jxP/vKnDHYrcBcAB5nMUPxjWcX8ek6pTI PcZMJrHgLzowAoGKrZwF9frktYD4RNiIjD8zATCWNgJOo0tp9Gng6KetHH/5frd6dl5T 8dE1M3bRBg+aDckFXDlJ4W976lheg2ZkM9eUm/oj72hhh5/M2xcRfiJCvpUpu/lFdGpH KM7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706173249; x=1706778049; 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=MOVBMzL6UNqR3dH+kMM9JTuFe/LvTcnh2ksCh4OpNI4=; b=bF7YmQnR7hxkl04WHTi4EOIdSjrBTFGhTcLL0RaTNAbc8zPfHVw/s1t2pEhcy4IvQ5 ZR8NazaubtcKsMgbCw7I95PVNg/QFrRSYgLzl7s++WKzDUx9x/zWllwooFadeSlQ/nF6 oWzyL+omJFafg9TeteVI9+LoPwPL0kC7H7xwbO+j/4H7R9ULxUgX1fAJXdaeHCdf9Oqg a/WX2sHi5qXYSX+H1gJLaDkt5/VPX5nOrMhPddTNgKEaNVhkuaCmSPWtgLU5+4aPiJ21 vF6pIkeHpkagyALjmvVsu7Zh85wKsbC9tISZfK38ewInA7w5lj7nB/PVfuJIQwdd02pO 1LYA== X-Gm-Message-State: AOJu0YxUtPbTb4l6NkWCcWBeljICblhRRYJ+tOZcnFb4NHk6OhORQQ8H Vd6FJdtvO/wBdKmnxNiQKL9ePcx4I1oEuxQb8vIOMcLL5gSPamCB X-Received: by 2002:a2e:a271:0:b0:2cd:7830:5796 with SMTP id k17-20020a2ea271000000b002cd78305796mr357550ljm.5.1706173249070; Thu, 25 Jan 2024 01:00:49 -0800 (PST) Received: from skbuf ([188.25.255.36]) by smtp.gmail.com with ESMTPSA id u11-20020a056402110b00b00558aa40f914sm16938831edv.40.2024.01.25.01.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 01:00:48 -0800 (PST) Date: Thu, 25 Jan 2024 11:00:46 +0200 From: Vladimir Oltean To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , 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, 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: <20240125090046.jyggdontwkhthqjh@skbuf> References: <20240122053348.6589-1-arinc.unal@arinc9.com> <20240122053348.6589-1-arinc.unal@arinc9.com> <20240123154431.gwhufnatxjppnm64@skbuf> 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: On Wed, Jan 24, 2024 at 08:30:11AM +0300, Arınç ÜNAL wrote: > On 23.01.2024 18:44, Vladimir Oltean wrote: > > 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. > > 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. > > Arınç Well, Luiz is copied, he can ack or nack if so.