From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 71D3E3C4542 for ; Sun, 23 Aug 2026 12:37:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787488663; cv=none; b=ugYuwIwjZQWJQTDwYy0TjCaolJz+cSyoChCLdX9hPqkHwaaL5xsu5fabgisqWxbUyf6La4UWBU7VSKX8VOn7Zt/igrghuDLwdMvP5V49gYQnyDWaZkMxVG9yrQ0I2gKRTQ0VXHVh0RDSEO3q50+jfpqPVHoRTjGTHBURoYPF2OI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787488663; c=relaxed/simple; bh=XaOpaGXMPr9YkCRAQJOKJig23iwcq1i3BikLgYLofvk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Hhb8MYtj1aj5IZLzE6pnUAehVqMl+SFiv2vQg/CeGinl7jrvQT6333ahfqZrdFUgWlRrkV8iGIWMn5W0WyEqNDanxwhjaklmrCfNZjf1WjDEQyO9APERN9QElp5FZPLo03/Au7FFGvatvyRjlBvhBp1ejEt8kDHhX8KJTl/woSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lex.la; spf=pass smtp.mailfrom=lex.la; dkim=pass (2048-bit key) header.d=lex.la header.i=@lex.la header.b=PboOZ/t/; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=lex.la Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lex.la Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lex.la header.i=@lex.la header.b="PboOZ/t/" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-c15d3cd51b2so391483266b.3 for ; Sun, 23 Aug 2026 05:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lex.la; s=google; t=1787488660; x=1788093460; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=XaOpaGXMPr9YkCRAQJOKJig23iwcq1i3BikLgYLofvk=; b=PboOZ/t/pC1cfMAFXkeGwnUP7ZE8oeGDGwN18RTZcobNpGhqqNWg5USVOCxrg10rxZ FL4fy2xXg/EEl2uC0BJ+hZiG4BitkrZ/9URCe+AHkalwYjxaXcttE/L6YKgAGtRtvsI0 nzPQlWEPHAfmzfARwHoYRnqHQbIoE7fKYo+ia+iSPi9DmTg+ar7vd/I50QmBWC/zB6Be qepZojn4XG3XIVjHWeacP23Q8Hr+Oj03iyACLLMXGYMdHGTWWx/WZnshk2R5o2mk4fhZ kNi6Zy0oMwZbKVSi17WCc2vplCk/Gao0qtAXaj4LnEilJjM4I/YdZia6TiLxYn2+9j4M LP4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787488660; x=1788093460; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=XaOpaGXMPr9YkCRAQJOKJig23iwcq1i3BikLgYLofvk=; b=GXvqV7YIC2pSV9Au+gnT6CRUWfmIE65K6KyvmkWAGnTXniZT2pO8mWfqMjX8MyzAhN FT88afpGx23msgPPIE0Mc0GxsqfJFv3c+nqG5NX64r7pU7M/JDEqntD+C1vaBY7Tll4O c8XrbuZVPXvPtZpea3vIehPLLQeCYE0ugql73/bQsuow7lXLVkFp+uoeD5Mw6moHw+RH C1flLDGDYUr7kLXMUDbCbozWReeXGClzLbBjIGKHtzjk/HAHWL4J+Ek1dxFeVSqlSy0v MY9/zxc0ByLtJzQqQfqKwx5qP8JQdZZyXYhAGdk0GNMbJ1bqh6IPueHVAFGG7P7Ic3g8 RUfQ== X-Forwarded-Encrypted: i=1; AHgh+RolwhpX9vILIRMMyq/rwamQ53s+0UxiXGW7othT9IX8fbvJACXWsx03kmsKgi4h8vtj2CgHRUK+rjpGwQ0=@vger.kernel.org X-Gm-Message-State: AFuF++lSPVtoG/clkGaaW35lTNmLgqZsNL8FUW9xJig7prFFBGEIViIG M7ocSy9QVpHuU3rNRVz93cg3rSVWIsZeCbRhyXB0KtY2mdstb3zRXIWW2+YltkgOWsQ= X-Gm-Gg: AR+sD10KfNjaYP7TXKXWMvMIPTjJkQapszvAub0r5Ls/mv4LSANj041s0Yk+rCWQeyD S516DC42WN79csvBlOQCZ65ymmcs8LhXvLBpn2A0usn4SaR0sj0rNoOlSIaaVlgzLWk8YcykB7s H6ey9UVvChFLkvCSFtXR+jDzoV0pv+AyCx6SQ3APPzKBIyjx8s39w/zeuvhy1fS9cYF9sK98K2y WWPwJi9sIucHwRhlew7XjuBxt8nx7119XBY+JfTtZPvVqrgeL2l+rWKfysfg/96cKjHxMogIlXx bVl3eQ7/Xi3xJEdIjr57Y7W6wzK4pB895jDYhbAdpVGYtrN73UJCvPY38JU8KgWq6d61N9jCzGg CACmrFOWRUzBvwwyAbVXQ8FGtbALH4Y96L46kKZhOnDbkciKBM0VuUWxLXVnho5KvIsYrFWmeeA rcWugYa5pd2Jke1s6mapfIn12ih6txUa9Cni2ERQHPe/L9tV64 X-Received: by 2002:a17:906:9f8e:b0:c12:6d25:2c7a with SMTP id a640c23a62f3a-c2492621d0fmr1233591366b.17.1787488659081; Sun, 23 Aug 2026 05:37:39 -0700 (PDT) Received: from ownbook ([109.61.81.82]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c249606b696sm859023966b.7.2026.08.23.05.37.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 23 Aug 2026 05:37:38 -0700 (PDT) From: Aleksei Sviridkin To: Andrew Lunn Cc: Vladimir Oltean , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksei Sviridkin Subject: Re: [PATCH net-next 3/3] net: dsa: connect a late-arriving PHY at ifup Date: Sun, 23 Aug 2026 15:37:29 +0300 Message-ID: <20260823123729.74290-1-f@lex.la> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: <20260822155259.87146-1-f@lex.la> <20260822155259.87146-4-f@lex.la> <9557daed-f039-434a-ae64-ac849b9860be@lunn.ch> <20260823000549.6095-1-f@lex.la> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > How about making the DSA driver depend on the PHY. That would be much > simpler. I worked through both halves of that for OpenWrt, where one kernel image serves every board of a target, so every kilobyte lands on all of them. Built-in: the PHY driver itself is cheap, under 8k of text and data on arm64. The firmware still lives on the rootfs though, and a built-in driver probes from an initcall, before mount_root(), so blocking in config_init() until the firmware shows up deadlocks the boot. Putting the firmware in the kernel image costs 144k on every board of the target, and almost none of them have this PHY. Modules: that works, and the kernel gets smaller. OpenWrt already does it elsewhere, kmod-dsa-mv88e6xxx depends on kmod-phy-marvell. What stops me is that it moves the switch driver out of the kernel for every board of the target, and NFS root goes with it. That is a bigger change than I want to push on my own, and it gives up the case you asked about. Do you see a third option, or is the module direction the one you would take, with NFS root treated as acceptable to lose on boards like these? MODULE_SOFTDEP looks useful where dracut builds the initramfs, OpenWrt builds its own, so I am not sure it applies here.