From: David Miller Subject: Re: [PATCH net] net: phy: ensure PHY is powered up when reading ID registers Date: Mon, 07 Jan 2019 07:18:58 -0800 (PST) Message-ID: <20190107.071858.919470138587464515.davem@davemloft.net> References: <68d8022b-493a-1c9a-72c2-2f16df835fab@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: f.fainelli@gmail.com, andrew@lunn.ch, netdev@vger.kernel.org To: hkallweit1@gmail.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:56676 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729384AbfAGPTA (ORCPT ); Mon, 7 Jan 2019 10:19:00 -0500 In-Reply-To: <68d8022b-493a-1c9a-72c2-2f16df835fab@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Heiner Kallweit Date: Sat, 5 Jan 2019 14:21:03 +0100 > During a bug analysis we came across the fact that there's no guarantee > that reading from the ID registers returns a valid value if PHY is > powered down. When reading invalid values we may load no or the wrong > PHY driver. Therefore let's play safe and power up the PHY before > reading the ID registers in case PHY is powered down. > > Suggested-by: Florian Fainelli > Signed-off-by: Heiner Kallweit There are several concerns still being discussed with this patch. I personally don't like the idea that this can leave the PHY powered up fully on a misprobe, and the unexpected power draw that might create. Anyways, I'm marking this as changes requested. If anything, some more discussion should be added to the commit message even if the patch itself remains the same. There has been a lot of enlightening information in that thread, and at least in a condensed state that needs to end up in the commit message. Thanks.