Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp481000rdb; Thu, 1 Feb 2024 14:33:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNAL2DXnTpWqVkplE1zrR5BTVjj9SvrGUmxBSDfre0rRqB9PR0gEkoEeqULdSzCAfgSKb3 X-Received: by 2002:a05:6402:204c:b0:55e:bc29:6fcb with SMTP id bc12-20020a056402204c00b0055ebc296fcbmr87037edb.10.1706826810923; Thu, 01 Feb 2024 14:33:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706826810; cv=pass; d=google.com; s=arc-20160816; b=prAhUzMC+5B4CUR2MyV98a9KZY5pgh8+hbnsCLnvneXwLZiUicMzAKWWUr1sO0DEqG gluDY3RCiFyYSdWZqjNiELp7S5rw48t7OdUXesmbaEFrmtSpbZFwo/s2jS7gUrpnkyt7 VtJ/1feFecIwVklsu8FOnfvcR4ITdNN7yQbiLlNr3D9jxbkxFv7NtpEWBibhOEDbQGKy 8/9K0qw03AsfOg6ek/Z94sb52U3dkOwYI4549hHTWpnQrYoHBrbne/Stn/eFXUPHDDl4 5ggOLqOiRdq1EUrlRqGDAnxISU4+vRwo4zxmIDVD6NDtwNVTLPDPQzUQ2+mEL3EHUS+r aGqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aOoVJvNlIyAZpSKQW2nK0aJiflX1kuB/bEqUHjK+UFc=; fh=x5q8kYNnPqhyY+CNX3PhKXJiv8OhUh2pQvG7DbKDURc=; b=wTTOW9fGy1iZxkheP/U9WF73eXqNiGFzPNCbdzVTkMLtSOTDdIcv9REl8WDbvqns3H 0DvlSx6Ug8HbI8+HLaZIDjJ1ZfxWcKt4G6yBWxmPhNkq8AETnmtoDKyfB8Ius639OKW9 9MjEr4x52RG0cc0dDpyCEhvwfkk6/78gLD4B75shc4Ozl5HVlK0y39BcVXW7GZPgX1aT STJTfbNkqcgi4XLzg7OihuvycSaAt4EjwpjAgD9jT1XjmvG0069mp+rfQtV4JFNuAvTT 9whDOtvvLdzYg2HNTd8CpxICYsr1sfI/Kcpegm5tcF7xNeuZj0Fg9/K6Knp7p7lh54m3 W0/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GlC3sZBI; 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-48946-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48946-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCVtN7OD3y32PNzuoaWXBJWXczwSDb1NBN0Ob/IRDYlr75825ZuRLJuHXpvVnd9ZUDMObayU9WFJ1skrnDHhwBh8Vg5Y4yIJHVM0id5yDA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a24-20020a509b58000000b0055f1b68c8e7si229161edj.674.2024.02.01.14.33.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:33:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48946-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=GlC3sZBI; 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-48946-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48946-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 4DDC81F2401E for ; Thu, 1 Feb 2024 22:33:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0D854120F; Thu, 1 Feb 2024 22:33:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GlC3sZBI" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 6C21836134; Thu, 1 Feb 2024 22:33:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706826800; cv=none; b=NdbwvVWm7vZr7Zl9uToTMUwPIQocH6ojQ6ZtxOl4K9BNRiE7ieASs3Vpi5M+Aw5EyII3ajGSApUru7s2LUXevtDtU/zJSPWimyWfvGnHwi+evfPFiXN5e4zei/VeGKLNRxYLMVsOSIzeS960KlPU5NCsunwHu0wCPno6GRze2mg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706826800; c=relaxed/simple; bh=UIZFij3vX2Sso0FDouOwGC3iXhnc2OgUMZXke142ft4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mpT7MWyiOX2XPms6RPFjIYDRJQsxVTmTKjmZ+q7iV+vAwicvEemeBvMlElGVNnCFXiGIboGbVjJ3MoYbK1Tv7sqKL3ZYQ18CzV+1U+pv9JDvoIPXu3EpAyEt1pgRbhjk3KFE4z4y/X2peyak4jDSOtzkj9ua6Cl7Qw4Imrn3TA0= 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=GlC3sZBI; arc=none smtp.client-ip=209.85.167.50 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-f50.google.com with SMTP id 2adb3069b0e04-51134755d9cso271323e87.0; Thu, 01 Feb 2024 14:33:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706826796; x=1707431596; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=aOoVJvNlIyAZpSKQW2nK0aJiflX1kuB/bEqUHjK+UFc=; b=GlC3sZBIkTxI3T0f05RnM9zjR7JSEqtkxR0qok1Zg9hrpveDTH0mJ7OPlpQFoRevS5 JgT9lov37e1wO1je1nZDznRWieX9NlXf8wXzR684AQJTnIzwEGbtuvEY1lFUq8Uq2Rk9 NfeiT1NIMDSWTjC41wVBOkq5/sL75/3hnRLlgw+wOPYiLHeFap5C2ZWSPK8Vy3b5UzvW +Be6uM4foIKIQTHO6LDqSc53hXajjBLarXprLreZMN0ROMPHITUyEx2Zz5v+MNqWPTqW 0Sfjv1PFU1+3vkVM8/+NSjXuMis+2ATfb641CYWbUDeW2rOfptN1YGEy0TzxYN5XYjNG mA2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706826796; x=1707431596; h=in-reply-to: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=aOoVJvNlIyAZpSKQW2nK0aJiflX1kuB/bEqUHjK+UFc=; b=mHotg2xHQA5mEnmz4dVvYywPA7cHB6aTIwuoGcvVLvO3UqqugTnxM3tvaPvDYTJ3D6 mQQmKjHMw1TUj6LMt7YcS57USedMgry1CBFlmzYMUX6Dnh4rYUg44iZ13XxEQQ0uUNkX jYxsKFGBlk9CX2TrFrH62j/8B1P/6MLzQwO1x7S3GYPPl2vEdI7LYcmyiCFOiS7BLi4v rMYJ62Ys3wCGOunQ8vDoBnxqeY8IcZMM2XYz8rpMDJsLTC1OXoWbPlYrT/xd2m1ZEK/1 +ftsQzYkqQ0J/1ezSH+NOUgKRwS07R9NzO3C4jFmx9ZbUDEzj+0+5IoC5TedwwBu32L9 ibUA== X-Gm-Message-State: AOJu0YwS/+RCoKD9LyoALAPcNfOvdP/9olBH3p5kFx8KAzERArwceQJe u4sX+kCBAHzgjax+uuSDXD+F8CqvvzcqaBPv/+AhBpM/+la/G836wuqs0QThb0SpPA== X-Received: by 2002:ac2:430d:0:b0:511:351d:6acc with SMTP id l13-20020ac2430d000000b00511351d6accmr185356lfh.15.1706826796151; Thu, 01 Feb 2024 14:33:16 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUdUJyzuPJo0Xs64tfoHzHILjdDsgoPZ+i791+q/qxxpm0ZBcGxWDv384AIbMKsd+5bPvLIQvbalXcUlmIws4jipCbm23IVIAtlnkIeZxcQw67jgvFUSO0vwl6GQ2b2WvopIDROIIxp6kY3Yl/9+TfD74QdjLGxlNPbu47jxKs/cvtqAw7P4X227wXPoFnuCDvxwE0L+IMpPw30ejEJlWVpAKJrRuOYCc92Yudz9m4KCNfOHK9CCuOmd9O8PDldWCc6P0FLNY1UTK8+1tyycvbmUhV7/IYi+FN86iHCrTrQNfrAR9oEdVH/ddf1YTmX8saHBCspqSxdNsjTJNXFOuY8JTpWTCo= Received: from skbuf ([188.25.173.195]) by smtp.gmail.com with ESMTPSA id hd34-20020a17090796a200b00a36f314daa6sm224233ejc.46.2024.02.01.14.33.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:33:15 -0800 (PST) Date: Fri, 2 Feb 2024 00:33:13 +0200 From: Vladimir Oltean To: Luiz Angelo Daros de Luca Cc: Linus Walleij , Alvin =?utf-8?Q?=C5=A0ipraga?= , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v5 08/11] net: dsa: realtek: clean user_mii_bus setup Message-ID: <20240201223313.6inu6l6cwg4krapz@skbuf> References: <20240130-realtek_reverse-v5-0-ecafd9283a07@gmail.com> <20240130-realtek_reverse-v5-0-ecafd9283a07@gmail.com> <20240130-realtek_reverse-v5-8-ecafd9283a07@gmail.com> <20240130-realtek_reverse-v5-8-ecafd9283a07@gmail.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=us-ascii Content-Disposition: inline In-Reply-To: <20240130-realtek_reverse-v5-8-ecafd9283a07@gmail.com> <20240130-realtek_reverse-v5-8-ecafd9283a07@gmail.com> On Tue, Jan 30, 2024 at 08:13:27PM -0300, Luiz Angelo Daros de Luca wrote: > Remove the line assigning dev.of_node in mdio_bus as subsequent > of_mdiobus_register will always overwrite it. > > As discussed in [1], allow the DSA core to be simplified, by not > assigning ds->user_mii_bus when the MDIO bus is described in OF, as it > is unnecessary. > > Since commit 3b73a7b8ec38 ("net: mdio_bus: add refcounting for fwnodes > to mdiobus"), we can put the "mdio" node just after the MDIO bus > registration. > > [1] https://lkml.kernel.org/netdev/20231213120656.x46fyad6ls7sqyzv@skbuf/T/#u > > Signed-off-by: Luiz Angelo Daros de Luca > --- Reviewed-by: Vladimir Oltean