On 1/31/20 10:29 AM, Dan Murphy wrote:
FlorianSorry I complete missed that and just focused on the patch, you should
On 1/31/20 11:49 AM, Florian Fainelli wrote:
On 1/31/20 7:11 AM, Dan Murphy wrote:I described this in the cover letter. And it is explained in the data
Set the speed optimization bit on the DP83867 PHY.OK, but why and how does that optimization work exactly?
This feature can also be strapped on the 64 pin PHY devices
but the 48 pin devices do not have the strap pin available to enable
this feature in the hardware. PHY team suggests to have this bit set.
sheet Section 8.4.6.6
consider not providing a cover letter for a single patch, and especially
not when the cover letter contains more information than the patch
commit message itself.
OK, but what if they disagree, are they consistently latched with Departing fromI was using the marvel.c as my template as it appears to have a separate
the BMSR reads means you possibly are going to introduce bugs and/or
incomplete information. For instance, you set phydev->pause and
phydev->asym_pause to 0 now, is there no way to extract what the link
partner has advertised?
status register as well.
Instead of setting those bits in the call back I can call the
genphy_read_status then override the duplex and speed based on the
physts register like below. This way link status and pause values can
be updated and then we can update the speed and duplex settings.
 Â ret = genphy_read_status(phydev);
ÂÂ Âif (ret)
ÂÂ ÂÂÂ Âreturn ret;
ÂÂ Âif (status < 0)
ÂÂ ÂÂÂ Âreturn status;
ÂÂ Âif (status & DP83867_PHYSTS_DUPLEX)
ÂÂ ÂÂÂ Âphydev->duplex = DUPLEX_FULL;
ÂÂ Âelse
ÂÂ ÂÂÂ Âphydev->duplex = DUPLEX_HALF;
ÂÂ Âif (status & DP83867_PHYSTS_1000)
ÂÂ ÂÂÂ Âphydev->speed = SPEED_1000;
ÂÂ Âelse if (status & DP83867_PHYSTS_100)
ÂÂ ÂÂÂ Âphydev->speed = SPEED_100;
ÂÂ Âelse
ÂÂ ÂÂÂ Âphydev->speed = SPEED_10;
respect to one another?