Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3213494iob; Sun, 1 May 2022 09:51:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz5w/cmWdwJJz1jqoGyq+lThXz5En3Y9cKqHR1MCZIXgeXYPkAVw1xnx0YumnQ62cfiP7k X-Received: by 2002:a05:651c:1191:b0:24f:155d:1f26 with SMTP id w17-20020a05651c119100b0024f155d1f26mr5857322ljo.421.1651423881323; Sun, 01 May 2022 09:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651423881; cv=none; d=google.com; s=arc-20160816; b=fMcs9AbkdQSmnCJa91SIm8gBr9fD0ynmIkKaf9gqK5RGqgvwk13ZiNvjqfqXpQBYSx ogT6yqQQ25Tiz+fF33I5GpbwY0f9RrbIACiMsoeRzdrOznBpT+jrPxkKo4ElW2TrCXoh UhOK4WzcVWIpxM9y2hwiluOIeXJCjGbcYwXD7OfJOuDKTx2mebgyP55eouQ36uLK4t8H 8trrTHmxU031nSupnRdR4Lfxzkc1RTaoZCgdWepYm4ShGy+/2iZQaPt5yyrhQ6VV+if+ 2BWaQjPJ2BJGJXVacemQ8flI8urONsgHRduwZgax1bpooYed1lCTXeHEcdBWysgZMpFo eZ5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dF1mmmBFDNP9HWUd+hs6Y1pIJYTO0dyqrecodlt1PlQ=; b=CN2KeRj3G27rCP+cnwOQI4CDeoH1zQLkqo1J37pkbMGN4wkKZxmXQXhBhpJYSMApuV mGSY07G9kPHmvjuIPWFgb8faEfEhMTEQuCvP0YSXA0ilvUlqmMbb9dkkIpSfLFGPY2wM LfME5mGv/15FweRu+ibz+mJ/RaHillBS3/BOOD8bw6FLI1tMCYmWk6HsdJlVeUq2jFS+ guJRoh2pXRWyZ5GauM0bQdeuEkUP/2WN09FKpfGAky7rmmIZVnOgV8nB1uLVNB2fLS01 WF2xTbWv3xl209LNCgV8LHN7XKsQ3DqukyhIaPyIeaBSpfdlEwZi2+S27AfbMrhD1plX UY+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=cPQi1qAZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 187-20020a2e09c4000000b0024db89ecda7si11462679ljj.487.2022.05.01.09.50.55; Sun, 01 May 2022 09:51:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=cPQi1qAZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383184AbiD3QwK (ORCPT + 99 others); Sat, 30 Apr 2022 12:52:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383169AbiD3QwH (ORCPT ); Sat, 30 Apr 2022 12:52:07 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2142D98F43; Sat, 30 Apr 2022 09:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=dF1mmmBFDNP9HWUd+hs6Y1pIJYTO0dyqrecodlt1PlQ=; b=cPQi1qAZcGQGUaPBAA7ghyhZsu Kcj5E+qhh+Ka31F5l28xtkVKVJQ3WGtzmP+mAt3Y6l3OkZav8CDmsVKs26eQRc6xgABrD2gBmgQdz O/KxPtyROLauJBpg8XWEecq5bH+Q0Y6kq4adMNJrmbbRYSFsIZ3ilsdZK+dsnFTKkWv4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nkqGq-000eX6-Uo; Sat, 30 Apr 2022 18:48:36 +0200 Date: Sat, 30 Apr 2022 18:48:36 +0200 From: Andrew Lunn To: Peter Geis Cc: "Russell King (Oracle)" , Heiner Kallweit , "David S. Miller" , Jakub Kicinski , "open list:ARM/Rockchip SoC..." , Linux Kernel Network Developers , Linux Kernel Mailing List Subject: Re: [PATCH v1] net: phy: fix motorcomm module automatic loading Message-ID: References: <20220228233057.1140817-1-pgwipeout@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 30, 2022 at 12:31:27PM -0400, Peter Geis wrote: > On Sat, Apr 30, 2022 at 11:52 AM Andrew Lunn wrote: > > > > > Good Morning, > > > > > > After testing various configurations I found what is actually > > > happening here. When libphy is built in but the phy drivers are > > > modules and not available in the initrd, the generic phy driver binds > > > here. This allows the phy to come up but it is not functional. > > > > What MAC are you using? > > Specifically Motorcomm, but I've discovered it can happen with any of > the phy drivers with the right kconfig. > > > > > Why is you interface being brought up by the initramfs? Are you using > > NFS root from within the initramfs? > > This was discovered with embedded programming. It's common to have a > small initramfs, or forgo an initramfs altogether. Yes, i do that all the time. But then it is up to me to ensure i have all the code i need built into the kernel. > Another cause is a > mismatch in kernel config where phylib is built in because of a > dependency, but the rest of the phy drivers are modular. > The key is: > - phylib is built in > - ethernet driver is built in > - the phy driver is a module > - modules aren't available at probe time (for any reason). This 'for any reason' is what i'm trying to get at. It is not the kernel which builds the initramsfs. It is not the kernels problem if the modules it needs are missing, it is my fault for not telling the intramfs tools to include the modules needed to actually boot the machine. Andrew