From: David Miller <davem@davemloft.net>
To: zonque@gmail.com
Cc: netdev@vger.kernel.org, marek.belisko@gmail.com, ujhelyi.m@gmail.com
Subject: Re: [PATCH 1/2] net: phylib: add adjust_state callback to phy device
Date: Thu, 14 Nov 2013 16:32:07 -0500 (EST) [thread overview]
Message-ID: <20131114.163207.230147902479371528.davem@davemloft.net> (raw)
In-Reply-To: <1384376870-7810-1-git-send-email-zonque@gmail.com>
From: Daniel Mack <zonque@gmail.com>
Date: Wed, 13 Nov 2013 22:07:49 +0100
> Allow phy drivers to take action when the core does its link adjustment.
> No change for drivers that do not implement this callback.
>
> Signed-off-by: Daniel Mack <zonque@gmail.com>
So you're using this to reset the entire PHY via the reset bit in the
BMCR register when the link goes down.
But this is going to break things.
If the phy library previously programmed a non-autonegotiated static
link configuration into the BMCR register, your reset is going to
undo that.
Now the configuration phylib thinks the chip has and the one it
acutally does is out of sync.
I'm not applying these patches, sorry.
next prev parent reply other threads:[~2013-11-14 21:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-13 21:07 [PATCH 1/2] net: phylib: add adjust_state callback to phy device Daniel Mack
2013-11-13 21:07 ` [PATCH 2/2] net: phy: at803x: soft-reset PHY when link goes down Daniel Mack
2013-11-15 0:03 ` Sergei Shtylyov
2013-11-14 21:32 ` David Miller [this message]
2013-11-15 7:35 ` [PATCH 1/2] net: phylib: add adjust_state callback to phy device Daniel Mack
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=20131114.163207.230147902479371528.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=marek.belisko@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=ujhelyi.m@gmail.com \
--cc=zonque@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).