[U-Boot] [PATCH v2] drivers/net/phy: add fixed-phy / fixed-link support
Hannes Schmelzer
hannes at schmelzer.or.at
Tue Mar 21 20:31:26 UTC 2017
On 03/21/2017 09:00 PM, Joe Hershberger wrote:
> On Tue, Mar 21, 2017 at 2:34 PM, Hannes Schmelzer
> <hannes at schmelzer.or.at> wrote:
>> On 03/21/2017 07:26 PM, Joe Hershberger wrote:
>> Hi Joe,
>>
>> many thanks for your input, i will do some rework and send v3.
>> But a few words about my doing below.
>>> On Tue, Mar 21, 2017 at 4:30 AM, Hannes Schmelzer <oe5hpm at oevsv.at> wrote:
>>>> From: Hannes Schmelzer <hannes.schmelzer at br-automation.com>
>>>>
>>>> This patch adds support for having a "fixed-link" to some other MAC
>>>> (like some embedded switch-device).
>> (....)
>>>> + priv->duplex = fdtdec_get_bool(gd->fdt_blob, ofnode,
>>>> "full-duplex");
>>>> + priv->pause = fdtdec_get_bool(gd->fdt_blob, ofnode, "pause");
>>>> + priv->asym_pause = fdtdec_get_bool(gd->fdt_blob, ofnode,
>>>> "asym-pause");
>>>> +
>>>> + /* set this for preventing stack doing some unary reset */
>>> Please clarify this comment.
>> During startup phy_reset(...) is called from phy_connect_dev(...) to reset
>> the connected phy.
>> This isn't done here due to 2 points:
>> a) reset of a fixed link is unary
> Are you meaning to say unnecessary? Or do you mean unary (i.e. only
> _one_ reset?)
Yes, thats what i wanted to say ;-)
>
>> b) reset would fail since the code wants to write mii registers to not
>> physically existing device.
> This is a much better reason to put in the comment.
>
> Maybe change the comment to "Fixed-link phy must not be reset by core phy code"
Okay, changing the comment and sending v4.
More information about the U-Boot
mailing list