From: Andrew Lunn <andrew@lunn•ch>
To: Tao Ren <taoren@fb•com>
Cc: Florian Fainelli <f.fainelli@gmail•com>,
Heiner Kallweit <hkallweit1@gmail•com>,
"David S . Miller" <davem@davemloft•net>,
Arun Parameswaran <arun.parameswaran@broadcom•com>,
Justin Chen <justinpopo6@gmail•com>,
Vladimir Oltean <olteanv@gmail•com>,
netdev@vger•kernel.org, linux-kernel@vger•kernel.org,
openbmc@lists•ozlabs.org
Subject: Re: [PATCH net-next v2] net: phy: broadcom: add 1000Base-X support for BCM54616S
Date: Fri, 2 Aug 2019 16:50:11 +0200 [thread overview]
Message-ID: <20190802145011.GH2099@lunn.ch> (raw)
In-Reply-To: <20190801235839.290689-1-taoren@fb.com>
> +static int bcm54616s_read_status(struct phy_device *phydev)
> +{
> + int err;
> +
> + err = genphy_read_status(phydev);
> +
> + /* 1000Base-X register set doesn't provide speed fields: the
> + * link speed is always 1000 Mb/s as long as link is up.
> + */
> + if (phydev->dev_flags & PHY_BCM_FLAGS_MODE_1000BX &&
> + phydev->link)
> + phydev->speed = SPEED_1000;
> +
> + return err;
> +}
This function is equivalent to bcm5482_read_status(). You should use
it, rather than add a new function.
Andrew
next parent reply other threads:[~2019-08-02 14:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190801235839.290689-1-taoren@fb.com>
2019-08-02 14:50 ` Andrew Lunn [this message]
2019-08-02 19:52 ` [PATCH net-next v2] net: phy: broadcom: add 1000Base-X support for BCM54616S Tao Ren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190802145011.GH2099@lunn.ch \
--to=andrew@lunn$(echo .)ch \
--cc=arun.parameswaran@broadcom$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=f.fainelli@gmail$(echo .)com \
--cc=hkallweit1@gmail$(echo .)com \
--cc=justinpopo6@gmail$(echo .)com \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=olteanv@gmail$(echo .)com \
--cc=openbmc@lists$(echo .)ozlabs.org \
--cc=taoren@fb$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox