Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp915509rdb; Tue, 23 Jan 2024 21:30:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHISG8tD5fdGaIX4ElmcAQzJ0V/lHKwXe435SqHTWdtD4unQEPs5gDT6vzCPof1k6/JwceQ X-Received: by 2002:a17:906:d504:b0:a30:d01a:4187 with SMTP id cq4-20020a170906d50400b00a30d01a4187mr455028ejc.35.1706074234456; Tue, 23 Jan 2024 21:30:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706074234; cv=pass; d=google.com; s=arc-20160816; b=ujPQZ81Bo/WywkUwlSS0v/E4+1F5+BPNdAoZj7UG/vnJBCwaYTl12/fAytP4T4P/TQ /OlXRPnFKpAdN5Wo6tX9tDG0k3tIdqdBbMMfA9ck9ZLrrQKRw2xPKLoE4dGGrDxisWee +1XaKzl7qxvKLXgYOXEo5JYorZkmaxjgzibUg67/emtE/o9OIlyZBgSfhV+eBUqxBZdU p4IUjFgZkd5N+64qs8/qgL5nYdXq3DP7CErSa/q6r9I1TbrvU0H4MswhLMryZ+G2xcXh GRy+8KsbywN6ct/c0BbwCZFxAtU1UtrImFlgOyY/M3L9gRY8ExkuyB/x7NngRYMy9aYv VFbA== 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=YJwnEn/ClBtP3ilO+FcGRGFqim9G1t0Q9eGcA2ndZV0=; fh=u8QAwQXE+qX4L3StzN2J42jNU65M0vM64xKhl/EvinU=; b=EfCI2mZ5uS+xdEmayxiosiAu603WMbRqsgkMVeiaqcfTb2QuSj/AOtTbD/wYsLmyPe BhOoeFuGSjy8H9NUArV0lQs4TsJThmR034SI5gdIk6l9Qg+B5OyQWG+i1+YxERnyT3K2 SqurT0NRSx7FwLavj/gkdqwCASBEVa66ex9xvC5htQTbs5/BHYzv4kP1NjNdev09uPi7 sh038ryet23jUl6inumUhzqKnpoLcmdn82NnULOOmdHWxVyjDvCM4jXH3ecOWRJLupC3 kK2W3hUFqeKa/Etyp5M/azDQcdcCntIJcaZYtjjpIY9JYfdfK63xkJctuqae6oge4g4Z jWSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=K24ejKLW; 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-36470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36470-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 g12-20020a170906c18c00b00a30a66f39d9si1798981ejz.935.2024.01.23.21.30.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 21:30:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36470-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=K24ejKLW; 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-36470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36470-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 37CC51F28EF3 for ; Wed, 24 Jan 2024 05:30:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABD84E575; Wed, 24 Jan 2024 05:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="K24ejKLW" 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 15B55E541; Wed, 24 Jan 2024 05:30:19 +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=1706074222; cv=none; b=S4aYuLpEZu/AV5VpwMm+YE9EZPr9YWxXj7W7+7rROk+4sOOX//BfE1x56PIuF3WH21Zl4eRBpjJEWcd0DHvKGYc7FhME7hcFdJ/7cgqG4GkiHFleAG49nYPLfGu4U3vAuxxnqXLDxlkmMPq1T8olb8Yqyk8bBGhE3skbTy/Xdu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706074222; c=relaxed/simple; bh=FQavcIPjhmoM51UmzOB2B4P5+FJvpLKv8uux6tSCgXc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=f2Ejo+jmGEweoivwGHzdjRMx0fhCfSLW05j7imUt58RGE+GWXoe1hGuZUnDWQHlGIVDodr6srpjgfI7jVOwos2GonnvCUwdKF4WHgLYQnAQ1sf+S76ISHGf/56VTVqbvTjhgN1Rwt+Mh5rxsNLrY+0pGaEYcCldkOAlqkp0KjFY= 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=K24ejKLW; 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 96D081C0006; Wed, 24 Jan 2024 05:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1706074217; 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=YJwnEn/ClBtP3ilO+FcGRGFqim9G1t0Q9eGcA2ndZV0=; b=K24ejKLWtJLlFjyyw0WHOi7giHVPRfjCB0ExU2rC+g7FxNU8TDZY4ATBHzDeTbTDoppakj UAxBAlaE2+sgZkGna7eSp7xhbv2b7ak/PhvhPSziMG2a+R85HOQiJHmzlCgacNXqiDNbm+ fMWFa9gcdtfeJVae+RZhL0MAbefpXIag5WsSstVHUFtLhnIsAK7kF1JIANGY5xtb9pHyX4 cqrogJO+iiECfZcAHJecGOTD4Oq66z4ItswEPb+ZCOmvwy4qmG2LgOhAubWURbn90fRwr3 8425xyQ2s1tYUbl3cZv0g7zeG5guBwgTmc5ztrUn/6tlFlX0yWqYW9GBFAMdtA== Message-ID: Date: Wed, 24 Jan 2024 08:30:11 +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 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, =?UTF-8?Q?Alvin_=C5=A0ipraga?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240122053348.6589-1-arinc.unal@arinc9.com> <20240122053348.6589-1-arinc.unal@arinc9.com> <20240123154431.gwhufnatxjppnm64@skbuf> Content-Language: en-US From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20240123154431.gwhufnatxjppnm64@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: arinc.unal@arinc9.com 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ç