Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1741719 > unrolled thread

Re: [PATCH net] net: dsa: Fix network device registration order

Started byDavid Miller <davem@davemloft.net>
First post2017-09-28 19:20 +0200
Last post2017-09-28 19:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH net] net: dsa: Fix network device registration order David Miller <davem@davemloft.net> - 2017-09-28 19:20 +0200

#1741719 — Re: [PATCH net] net: dsa: Fix network device registration order

FromDavid Miller <davem@davemloft.net>
Date2017-09-28 19:20 +0200
SubjectRe: [PATCH net] net: dsa: Fix network device registration order
Message-ID<uuKDE-3l8-13@gated-at.bofh.it>
From: Florian Fainelli <f.fainelli@gmail.com>
Date: Mon, 25 Sep 2017 15:55:53 -0700

> We cannot be registering the network device first, then setting its
> carrier off and finally connecting it to a PHY, doing that leaves a
> window during which the carrier is at best inconsistent, and at worse
> the device is not usable without a down/up sequence since the network
> device is visible to user space with possibly no PHY device attached.
> 
> Re-order steps so that they make logical sense. This fixes some devices
> where the port was not usable after e.g: an unbind then bind of the
> driver.
> 
> Fixes: 0071f56e46da ("dsa: Register netdev before phy")
> Fixes: 91da11f870f0 ("net: Distributed Switch Architecture protocol support")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Applied and queued up for -stable.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web