RE: [PATCH] net: phy: fix a bug in get_phy_c45_ids

2015-11-02 Thread Shaohui Xie
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, November 02, 2015 1:14 AM > To: shh@gmail.com > Cc: netdev@vger.kernel.org; f.faine...@gmail.com; Xie Shaohui-B21989 > Subject: Re: [PATCH] net: phy: fix a bug in get_phy_c45_ids

Re: [PATCH] net: phy: fix a bug in get_phy_c45_ids

2015-11-01 Thread David Miller
From: Date: Thu, 29 Oct 2015 17:09:37 +0800 > From: Shaohui Xie > > When probing devices-in-package for a c45 phy, device zero is the last > device to probe, in a rare situation which driver can read a '0' from > the device zero, thus c45_ids->devices_in_package is set to '0', so the > loop con