Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 944DDC433F5 for ; Thu, 21 Apr 2022 13:30:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385870AbiDUNdg (ORCPT ); Thu, 21 Apr 2022 09:33:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358404AbiDUNdb (ORCPT ); Thu, 21 Apr 2022 09:33:31 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6986918340 for ; Thu, 21 Apr 2022 06:30:41 -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=PxUmZ2CxHLIu9mwYA1zs6hKOX8cIVgW8NkKgnMjC/Ys=; b=0FA+/5/4W4+gov+D5ZdX3J/E6j YLL3ZD4hNIHd/agJ2OFGYyI26S2p2f0au0H5MJSVLUsJcVndF4aWdsJmM5dHeTnNs93hY1MHFDgH2 UG6kgnBcaiAXBC7vqHwGe4x6JYrAXI3pNfsSnmhfMRVHBqcrkUs29S2mZKQjpNb9rbMY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nhWtK-00Go5U-JP; Thu, 21 Apr 2022 15:30:38 +0200 Date: Thu, 21 Apr 2022 15:30:38 +0200 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Josua Mayer , netdev@vger.kernel.org, alvaro.karsz@solid-run.com, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Subject: Re: [PATCH v2 3/3] ARM: dts: imx6qdl-sr-som: update phy configuration for som revision 1.9 Message-ID: References: <20220410104626.11517-1-josua@solid-run.com> <20220419102709.26432-1-josua@solid-run.com> <20220419102709.26432-4-josua@solid-run.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > The only other ways around this that I can see would be to have some > way to flag in DT that the PHYs are "optional" - if they're not found > while probing the hardware, then don't whinge about them. Or have > u-boot discover which address the PHY is located, and update the DT > blob passed to the kernel to disable the PHY addresses that aren't > present. Or edit the DT to update the node name and reg property. Or > something along those lines. uboot sounds like the best option. I don't know if we currently support the status property for PHYs. Maybe the .dtsi file should have them all status = "disabled"; and uboot can flip the populated ones to "okay". Or maybe the other way around to handle older bootloaders. Andrew