Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp920851rdb; Fri, 9 Feb 2024 05:23:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW0ZXvnS85w0jgNsdJbYJ2yiOfR5bx3XLSD01iCG+BDh4YjT7hbyJ2JST59LwyUSUHVFTeA07U0u6dVXXMeS8HCciNCZ7P7NDzq05EPqA== X-Google-Smtp-Source: AGHT+IGcsvbnEZBQaTjRNwLE/ovbnzjYykl9qNBeoku90o34NbjJBmvWhhPlEZZ2iqq8bCl+lh0K X-Received: by 2002:a05:6870:3286:b0:21a:f13:98bd with SMTP id q6-20020a056870328600b0021a0f1398bdmr1713071oac.34.1707485019540; Fri, 09 Feb 2024 05:23:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707485019; cv=pass; d=google.com; s=arc-20160816; b=pCD8Xs5Vh4P+5cMvVzRjxKCxz5avHY9jp4o2AbXj4EsdReIUo+UuIJoXYSNkkaq4Cl lnw5zJ/sAdgHvqTpmueasjTiJ93RyFZ729hzZJCQ2sFScWG4Z8qQ1N7xYtN/2S66V83q VsRZH7ONLGPcIsNNE5m67m0Ee2z9Jumtao/Zw9UC92fADO0fB01xNTlGG5CTdfj5u223 0ITgIlJsp8nOugr/lMQ+NrDyUkua2C3ejJ4OuS3k5FI1Mb+tWT0Nrq3OJAI5HCOtcJ+b wk8XS6wwyA9rvbEppJeuL8uE5VVYEdKyJHGJ8SnKif5XCzmdEidSrYqL7LjepY1uHpuI oE6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=449r/RUz6LocfxD8zQc0jYXaYXqGJOsiyBdFbqy3Nuc=; fh=qlcq59tA+arXDJ69fzDLL+fEDyYT6LG+SiJn/5iic+o=; b=ZHBjfoDi/avdwgluLeGGS0U1TFpvjiwtfRMd6jmMzjgVOaQLD16R7G5qSWGhekHk2X wNnlxueBrNdDOy89CYd4MwAxpKd+DcPQOa/akP/PgTiQmhXevFQXdlZyWIbidv615e0D w4DvhsLHmL23xSPPkIl+gtke5mt0BgZb1MppwtLE7Uh9dkE23MpVsJMll22qmEG7ljCC zjURyvlz+OqMVohH2TVd5qy1JJRIJbT7BZDe0Px6ecI0g7G1VtIAYoTU/PV9AGHnCWZk r9jZkLhChbSu4SIAc5qKw+MzZmhTopn8WGmABeHYxF2rqHN3PIdO3+rBSF7rhPlFsqYn b6wA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wkOQyAU7; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-59354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCW5t6+O7T8nCPosIirVzKz4ojfFFe944U1Sl4QO2poCQdcqsLe3aT9Hgu5yFfRvjeet9BVFVhM2wvvQ3/M327KURfyCooeArQ47Dn7Wvw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m8-20020a633f08000000b005cdffe116d0si1693055pga.532.2024.02.09.05.23.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 05:23:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wkOQyAU7; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-59354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 79ECCB255B4 for ; Fri, 9 Feb 2024 13:22:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E66DB38388; Fri, 9 Feb 2024 13:22:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wkOQyAU7" Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (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 BD51B374F6 for ; Fri, 9 Feb 2024 13:21:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707484920; cv=none; b=uBR/OqzA8ApHbCFPDzdw17Aoohz8rYb1WGBPkhoYA+9zVPrBGtQ6sY4acbsANzijtNTjB2mQlYv6/0D+XW8t6UlwHAqGRiDTsoRorm+FNuzv5kNZZrpfwxA59EwvXgwdoatm1xIwij/Ha3oivKNQcT3MwYnC1htV3B8KPx+4zFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707484920; c=relaxed/simple; bh=449r/RUz6LocfxD8zQc0jYXaYXqGJOsiyBdFbqy3Nuc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=q8UMelnTTocD5sn+mFIT86YS5e8u7mYhh3a64EPiVHLUJJP6WSjozCnBhbHgRtT9yJ72FyAuPGCODXKqGv9jwUvFVCnM40nwRtESuvNR1AVnvuZ95wlCziCIQ+LQgASl6/ZY+CaNjjzCPxRiHv4V0QQN0+dcUt7UyyFXzcsUTlk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=wkOQyAU7; arc=none smtp.client-ip=209.85.128.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-60498c31743so9358147b3.3 for ; Fri, 09 Feb 2024 05:21:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707484917; x=1708089717; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=449r/RUz6LocfxD8zQc0jYXaYXqGJOsiyBdFbqy3Nuc=; b=wkOQyAU7m/ysIU9IrkUlYRBbRDZLaRzdMGbnPURlOwhyb6EIGc0G1+rCMssgnIQz7M EWy1JxlzVPVlfcxKsYq311uKbHTgwj409iNdoNNKsnEtVU8zyIayfEi2eUq8joSsIUtv CxWMS6hfkomUcGrgLqrO0uE3bQNMfXNoWuFar1NQXh1yV/dG+mqaT8lAu1EhfQZ3dKcD ZC6Xz87SBz9LYV0IZuPPqO6PSqxrDsS7U96gqTebBoFWEFpwQsusAA7xETz5c+lsFvOM Hft/lRistIN/QlTcTjWfTEcpJe70rMXBT//Vjbs9p8jLFVMrNsTNc4f987PJJZakKXcL D9Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707484917; x=1708089717; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=449r/RUz6LocfxD8zQc0jYXaYXqGJOsiyBdFbqy3Nuc=; b=V7tfATl0EK0oLvr831J2GwSKWYvMmvLH3ltGDZUbhs5zG38jxJgsBjO1l5sY/u8pE9 QAFTryrWQSiNj+36zUPP8pYmByT6EhF6KKK4M7S9DNaVhFiI/Bpq1Z6zEQjY5H/4Hg4w +8iEVXUcxG8DqlEjXdJtm+IuFspcx56UTYdsykBhzAIRCDlu+n0kCjvqw2ZUHKou+HFb oJeKdGUc7HmL/gTMej0iM5u27UIdBNZFTK2r+24g4Y7Lhkw2dqBo53qlWtrEaXqhiltr mbKYF5X31HFeGL+80C4rDj/1r1l6i2Qm6Om8D+QOCByCII5VqCg/68PeHLINNQRQFu7V JO3w== X-Forwarded-Encrypted: i=1; AJvYcCWMMXs/1jSXp9pw6B/gQF+M+zD7aEPbmIuCyXrhcFqljJC6PSinfOflNwrykNxNuZnrPv3uqKsk/zo5/XmmPNHzj/5gbbZcSctJ9RO8 X-Gm-Message-State: AOJu0YyO+H3dAlN+ALTIpg6eqbd/xseFk0wz/uxEj2xrXBG8MdijmcDg MOqHYhisdonDr25OrpPJKpWpMSJE6p80HZ7kb989B94KoGocSzckM7J/42DBz80Vx4sdtfQLolD HwLqxvgaIZ9qpqcaG2QcA+EinugAqUpkSK7M+cw== X-Received: by 2002:a0d:db4a:0:b0:600:39bf:495f with SMTP id d71-20020a0ddb4a000000b0060039bf495fmr1606509ywe.2.1707484917624; Fri, 09 Feb 2024 05:21:57 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240209-realtek_reverse-v6-0-0662f8cbc7b5@gmail.com> <20240209-realtek_reverse-v6-8-0662f8cbc7b5@gmail.com> In-Reply-To: <20240209-realtek_reverse-v6-8-0662f8cbc7b5@gmail.com> From: Linus Walleij Date: Fri, 9 Feb 2024 14:21:46 +0100 Message-ID: Subject: Re: [PATCH net-next v6 08/11] net: dsa: realtek: clean user_mii_bus setup To: Luiz Angelo Daros de Luca Cc: =?UTF-8?Q?Alvin_=C5=A0ipraga?= , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 9, 2024 at 6:04=E2=80=AFAM 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 Reviewed-by: Linus Walleij Yours, Linus Walleij