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

2015-11-02 Thread shh.xie
From: Shaohui Xie When probing devices-in-package for a c45 phy, device zero is the last device to probe, however, if driver reads 0 from device zero, c45_ids->devices_in_package is set to '0', the loop condition of probing will be matched again, see codes below: for (i = 1;i < num_ids && c45_id

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

2015-11-02 Thread David Miller
From: Date: Tue, 3 Nov 2015 12:27:33 +0800 > From: Shaohui Xie > > When probing devices-in-package for a c45 phy, device zero is the last > device to probe, however, if driver reads 0 from device zero, > c45_ids->devices_in_package is set to '0', the loop condition of probing > will be matched