Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3580735rdb; Wed, 27 Dec 2023 12:02:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1wipp50NHHTn0HLbK7qDY1mpzVdm9K5NMt3PGDi/w//Nut+B4+DoEASq7JCOJORzeCVGX X-Received: by 2002:a05:6a20:1601:b0:195:ef30:1077 with SMTP id l1-20020a056a20160100b00195ef301077mr3805288pzj.88.1703707359195; Wed, 27 Dec 2023 12:02:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703707359; cv=none; d=google.com; s=arc-20160816; b=l+XdgXwN+2PmgjePLcJ/rWgUC+amDUIoutAnt/Q0HshCb5bxvcxp0yXWUpXJjgH48u bGKBGukvtqYLNlB+0RHDhOwaTnu5p5qaDiw+r4+zPrZ9LeH5sQHWsq9vGB2hNwhSNgUH xcbb3jP08pKJwp1KkHtGTgLB8qUHLuBki5c6yakwVcrqJ9iKTEYCUG8p2XbwXVr9ocmG e7/+EGT8qfLJv9bxWFOgNtjMQ3ERYDGW4gzdLPunqZ6v7uanqK4IeelgcvtjtQh7DcFs VRxlrAHoXXHHGU1qtJEkvGWaTBS990rhLeF+GdwdqVxA1drik+qZsoQZvwqVEmEnXpUd tgCQ== ARC-Message-Signature: i=1; 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=F/knE1RdGvxQU+ZfFNTNGYvbGggyDmP5kq99ZSddVPc=; fh=BWdA4uV5B4wM3akyTQlpsk6cq7H5cyUO371RsL20Uys=; b=MzMndS9rAnGY1Q9cGK6mMgJsbi2J64Tzl92m8XFZ7BwpU25VYDJWnnEsXhFpvgFzph QpQw+D5OohK31wFMLKK5tQzSAFgkw+V8F9Wy2L6ui5RZ7N0/QmBTJ4Ex5e7i/Xh+XJhv exkCo5/7M20ygnIiIiLDV+3EcqHF29dgXZ+Z6Ttck4bxcUx7HQF3Q9UbZR7Tdzs/Y871 qpEc/n+u+zby3nO5DWjczjnA9WleZEYrPvaU2nYngDiA9r1+UcI1UtyTQZB2/7/Z+aRI +ZyFWcG/Cb3XVrSN0kU6mBrjGGAw1NtebrwhpxtfRhHHC5U0Bn4Cn3OwjP1iNF6TSOQJ 30jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dAwEygAu; spf=pass (google.com: domain of linux-kernel+bounces-12235-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12235-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. [147.75.48.161]) by mx.google.com with ESMTPS id by30-20020a056a02059e00b005ce035519d0si7925626pgb.592.2023.12.27.12.02.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 12:02:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12235-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=@gmail.com header.s=20230601 header.b=dAwEygAu; spf=pass (google.com: domain of linux-kernel+bounces-12235-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12235-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 72DDBB22547 for ; Wed, 27 Dec 2023 20:02:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07A3947F58; Wed, 27 Dec 2023 20:02:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dAwEygAu" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 C88B747A57; Wed, 27 Dec 2023 20:02:22 +0000 (UTC) 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-wm1-f46.google.com with SMTP id 5b1f17b1804b1-40d4a222818so21858235e9.0; Wed, 27 Dec 2023 12:02:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703707341; x=1704312141; 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=F/knE1RdGvxQU+ZfFNTNGYvbGggyDmP5kq99ZSddVPc=; b=dAwEygAu//qGGg1PtSr1rdYP/JW5IFE/fw/Jq03EGjH2nz99lXKQmRYKsjCLOBZUz6 vr9iRAW3+rGVWzGBD0ubJQnoJniRe5PKr3R31p9iNbEIuh6kr5pZmaZAFTuA232Zxr3q bQOBGK2etx4WPqN+jCZpAylnZS7Mt93OWJ+hiIok5ukLPGVPm5iNfCV9XlQyH96FI9lK PO3m0M0lGkf3J1GTuM+nNrDS8CZtn0/N2ZexMbqBH1+H7qdtFffV9mMSC8TTMSYv35/y 8c5Y6NEmFVEuuNUFfT8BIVyMkRCP8BsoylKTR2yW8L4GxQ14fccdUIN4wIm+ZsNgvDyU cs4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703707341; x=1704312141; 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=F/knE1RdGvxQU+ZfFNTNGYvbGggyDmP5kq99ZSddVPc=; b=kjEY3qUEhsp2Z1t1bqYQEGdpz+bFDRgBb4aKUO3dgOmpSqB4O307eHisioMM4WZ5sZ gHH0EUyMfQm/oyaWkKL/wNnjkp9GcB2SrMbFcFWNtqvk+XRCtInlPcn0YB/v0kniofu1 LhL6DmNB7wqF+wNiz8iH+mXKsYmpwQJMWMdfQQOshUm2c1HF/pZL7UXJ8hTOaKzNjA06 7RiLnZRNC+Uh0yMdJNLJGSLnSHok2yuhqIyQf0N3oGfTBCmBgBkLcP1lzGLnKtQCGqef gyB4Qikmf3ASgqNyjHfLi3E3Qw7Fs+owH2RatgBXtbfyGo2v4flVux0Z2tOZ46KY9DZU RylA== X-Gm-Message-State: AOJu0YyHmie19YiOwBj6+bC6HqLDFBe7oXZy230Qo8eLJIIX64/KIFRs AitGx7cuEZPXOMMA3dpQvVY= X-Received: by 2002:a05:600c:4503:b0:40d:3eb8:580f with SMTP id t3-20020a05600c450300b0040d3eb8580fmr4726111wmo.14.1703707340716; Wed, 27 Dec 2023 12:02:20 -0800 (PST) Received: from skbuf ([188.25.254.72]) by smtp.gmail.com with ESMTPSA id m19-20020a05600c4f5300b0040d5b849f38sm5739904wmq.0.2023.12.27.12.02.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 12:02:20 -0800 (PST) Date: Wed, 27 Dec 2023 22:02:17 +0200 From: Vladimir Oltean To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , David Bauer , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next] net: dsa: mt7530: register OF node for internal MDIO bus Message-ID: <20231227200217.kdltxpmhvlp6z4cd@skbuf> References: <20231220173539.59071-1-arinc.unal@arinc9.com> <20231220173539.59071-1-arinc.unal@arinc9.com> <20231221151607.ujobhh4aet4obxdz@skbuf> <6600c6b1-2230-4963-940c-8b95a01750fd@arinc9.com> <20231227191154.6jkqdlqdxciidpfw@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, Dec 27, 2023 at 10:51:08PM +0300, Arınç ÜNAL wrote: > I didn't realise ds->user_mii_bus is also used to store irq mapping for > each PHY. It needs to, if the MDIO bus does not have an OF description through which PHYs can have an 'interrupts' property. But if there is an OF description for the MDIO bus and the PHYs, I think it is strange to expect PHYs to have interrupts if they aren't described in OF. > Should we agree that user_mii_bus is needed for all cases or make > another way to store the irq mappings? I looked at the upstream device trees: - users of arch/mips/boot/dts/ralink/mt7621.dtsi - arch/arm/boot/dts/mediatek/mt7623n-bananapi-bpi-r2.dts - arch/arm/boot/dts/mediatek/mt7623n-rfb-emmc.dts - arch/arm/boot/dts/mediatek/mt7623a.dtsi - arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts - arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts - arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts - arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts and without exception, none of these have the MDIO bus described in OF. I'm not sure about other device trees. But it may well be that the situation where "MDIO buses present in OF need an IRQ mapping for their PHYs" does not need to be handled.