Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp729880lqt; Tue, 19 Mar 2024 01:52:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJoKVse0c0G6VWu57H8sgELOtpErLubs81z2AO/pUad0j4zzOE7V+Cd+tw9aCr7cvG+pY7zcu/2t4UvE8LIIq9UGlwhDI2DNyyOu7H3A== X-Google-Smtp-Source: AGHT+IFN3AQRqc02YD5evCV1nV9fHdWBhXTSzFyTi77fBXUeYQKSsmc1QXhFI7cZfxMMTb4+TOfs X-Received: by 2002:a05:6358:d596:b0:17c:2ce0:f55 with SMTP id ms22-20020a056358d59600b0017c2ce00f55mr8935613rwb.19.1710838331167; Tue, 19 Mar 2024 01:52:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710838331; cv=pass; d=google.com; s=arc-20160816; b=RYlH1HJXaHwDwt4QwnG+ZbzOxBb9bvv1u2ysVDR+8Borxcp2OQpk8gWogBH5LHR5c/ bztjJUAWXMjMONcDVNz1OYzv1pxVbUoZeB+q8NQX5qCGeUIN5Ovuow8kJBrUpNJYvPUB ktmwsMLDoNLjAOWHYtoHykh4SXsLmgYmCs7x1r8W0xhVbb+IMp9SVWsI2GPBd4iBMWGi WRD/zCg2LiBhK0glmNydEA9J8ZOpYdMo7noSFlTy8GBoarEs2xZmmh8XKxkT5l7GOdB3 RQItm2bSNq1yKBwKEWPPAsck2t5QAoR9YfL2yRZ6ms+MvnjKKLYAoCwCw9uabNMbR+tM pj4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=pzxTTNJ7RGBG1EwIfr7Uv2mWk/VNxpAAre6JLd+MBYA=; fh=Hxn8gmulL62AWCLyxU2z6u2rTPKiyylBwTx4KPEOUqQ=; b=ZY5SFSPc61y7r+YZpmJ3dddI7BvYg6MCp8zumRqRJgOywCdIlhJYudGD1sloK6oeUo dhlilMsDp0pUEmNNtUhhJwSjSGqcrCPeo1KuvYlL4WtAabs1oNm+TmV1khds1HwvQ+W1 7g2A5qxQBJXUg+z2uQEQUyrNtwvMA6v3AiVLXa/0V3dkoxVCcL9N0WA1sgfogYrmpCrt bS6u4xrOdWL4fhI05THccf1NOOSO8x0vHrNXV7dS0+86tOvxWBAghrQPja51ssYwfYsi 9F58OUeidEX1ZfPvKLhy8Np+Ecd82qA/TeDpJ6dUSr+DpD3+6QD3usLCd7XQ6DCmFlPG VBeg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=L+cA3WDI; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-107267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107267-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b125-20020a636783000000b005dc84ba3c3asi9845476pgc.287.2024.03.19.01.52.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 01:52:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=L+cA3WDI; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-107267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107267-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 D562BB20ECB for ; Tue, 19 Mar 2024 08:52:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35FEB50A6A; Tue, 19 Mar 2024 08:51:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="L+cA3WDI" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 015A957885; Tue, 19 Mar 2024 08:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710838316; cv=none; b=qVz83FrR84sJc5tOiKdHJpyPwD7qrE82+BZqmrjV7zq/n7fm9HvVzUu9BcGXutt5dM4hFGvDEbqNn63LsDhISLQGdzDBSKlpzbj+COMkrAMkITXtzhKzPZ72YMeEmakL1ADlLiunW1E0VBhkkEThk/pnuNVcAI3j3LMcFW5ZloY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710838316; c=relaxed/simple; bh=wuxCjLjSB2jlZEFQiE2k3zJd7M5XOeVOZ5qvT43RcPg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eRfa13NsFWGl51DNxwtttNDXRouIedLatxbfoeAsMtLz/lIfNxCOFT3kBMyMdGfQ6mSkdr36ZcMNeEhYUSzavujzikfNWFkfzrPyxs1c4EF0gUhzswF8uRncngyermF+U8aKh/iKkaniMhljLwLfvGVv0jbw6krE5jucVel99sA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=L+cA3WDI; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pzxTTNJ7RGBG1EwIfr7Uv2mWk/VNxpAAre6JLd+MBYA=; b=L+cA3WDIuvNv3pd07MyuAFUHdE bUnMujB1dWr3VDxyopxRNunmzdxex/DngYmYCw26JIN6VVZys5ZENoLXSp06OoAepJHywuVjSRtQR q4mPtLmUjwr+OFf0EOWJGEi4dlblWmWhzpE+p4PnnOPlkIDypghXQqYJfKck8AXvU70QQwcH1NMC5 ZD/PqijIpLD8Ab4FASCcbININHlboZ+oJThmBHGjGmPDdAx8CLnRH5n095WV1RFu6vHAVJlsxGqAU wHxotJENlMfR+6wmMWTFsanUG37K+nMzSZr1NFXkWsCFxnj2T8sVL7b9YGENVN0H79dR8UvLPuqOa BWSO75zA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:43748) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rmVC2-0005AX-0Y; Tue, 19 Mar 2024 08:51:34 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rmVBz-0001ac-FP; Tue, 19 Mar 2024 08:51:31 +0000 Date: Tue, 19 Mar 2024 08:51:31 +0000 From: "Russell King (Oracle)" To: John Ernberg Cc: Maxime Chevallier , Wei Fang , Shenwei Wang , Clark Wang , NXP Linux Team , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Andrew Lunn Subject: Re: [PATCH net v3 2/2] net: fec: Suspend the PHY on probe Message-ID: References: <20240306133734.4144808-1-john.ernberg@actia.se> <20240306133734.4144808-3-john.ernberg@actia.se> <20240306190539.4ab9f369@device-28.home> <9490ed31-dede-4a14-9c62-5ef83e30593a@actia.se> 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=us-ascii Content-Disposition: inline In-Reply-To: <9490ed31-dede-4a14-9c62-5ef83e30593a@actia.se> Sender: Russell King (Oracle) On Tue, Mar 19, 2024 at 08:37:44AM +0000, John Ernberg wrote: > There is also a case where the phy driver module is not automatically > loaded, in cases where request_module() fails, either due to the > userspace helper feature being compiled out or other reasons, and the > module is loaded manually later. I suspect for reasons like these the > genphy probe happens so late. My solution here doesn't cover non-loaded > modules either, but this could maybe be covered by moving phy_suspend() > to phy_probe(). Unless there is an even more clever way to go about it > which I can't see from inexperience. Note that in the case where the PHY driver module is loaded late, phy_probe() won't be called for the PHY until that happens. I would say if one wants a platform to behave with minimal power consumption, that is something that has to be done across the software stack, and that includes the boot firmware. So, if one wants the PHY to be in a low power state at boot time, then firmware needs to ensure that happens. Trying to shoe-horn that into the kernel isn't going to work because we get to decide what to do with the PHY way too late (due to PHY drivers being modular and on the rootfs.) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!