From: Andrew Lunn <andrew@lunn.ch>
To: Frank de Brabander <debrabander@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>,
Heiner Kallweit <hkallweit1@gmail.com>,
netdev@vger.kernel.org
Subject: Re: [PATCH] phy/marvell: prevent unneeded page switching
Date: Tue, 19 Feb 2019 14:19:09 +0100 [thread overview]
Message-ID: <20190219131909.GM14879@lunn.ch> (raw)
In-Reply-To: <1550560893-2445-1-git-send-email-debrabander@gmail.com>
On Tue, Feb 19, 2019 at 08:21:33AM +0100, Frank de Brabander wrote:
> marvell_read_status() no longer first switches to the fiber page, instead
> looks at the already active register page first. In case the link is down,
> switches to the other (fiber/copper) register page.
>
> Unneeded register page switching of the Marvell 88E1510 PHY can cause
> the ethernet driver to register a link down & up event.
Hi Frank
I think the page change itself is unlikely to cause a link down/up.
It seems more likely there is something else going on here. The wrong
page being read, fibre page being read when there is no support for
fibre, etc.
Do you get link down/up reported when you read the temperature sensor?
That also causes a page change?
I think i would first start by adding locking to
marvell_read_status().
phy_select_page() takes a lock before changing the page.
phy_restore_page() releases the lock. Use those around reading the
status.
Andrew
prev parent reply other threads:[~2019-02-19 13:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-19 7:21 [PATCH] phy/marvell: prevent unneeded page switching Frank de Brabander
2019-02-19 13:19 ` Andrew Lunn [this message]
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=20190219131909.GM14879@lunn.ch \
--to=andrew@lunn.ch \
--cc=debrabander@gmail.com \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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