netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: javier@dowhile0.org
Cc: steve.glendinning@smsc.com, eballetbo@iseebcn.com,
	ben@decadent.org.uk, netdev@vger.kernel.org
Subject: Re: [PATCH v2 2/2] net/smsc911x: Check if PHY is in operational mode before software reset
Date: Tue, 03 Jan 2012 20:24:33 -0500 (EST)	[thread overview]
Message-ID: <20120103.202433.812126500710199359.davem@davemloft.net> (raw)
In-Reply-To: <1325633779-6159-2-git-send-email-javier@dowhile0.org>

From: Javier Martinez Canillas <javier@dowhile0.org>
Date: Wed,  4 Jan 2012 00:36:19 +0100

> SMSC LAN generation 4 chips integrate an IEEE 802.3 ethernet physical layer.
> The PHY driver for this integrated chip enable an energy detect power-down mode.
> When the PHY is in a power-down mode, it prevents the MAC portion chip to be
> software reseted.
> 
> That means that if we compile the kernel with the configuration option SMSC_PHY
> enabled and try to bring the network interface up without an cable plug-ed the
> PHY will be in a low power mode and the software reset will fail returning -EIO
> to user-space:
> 
> root@igep00x0:~# ifconfig eth0 up
> ifconfig: SIOCSIFFLAGS: Input/output error
> 
> This patch disable the energy detect power-down mode before trying to software
> reset the LAN chip and re-enables after it was reseted successfully.
> 
> Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>

Applied.

  reply	other threads:[~2012-01-04  1:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-03 23:36 [PATCH v2 1/2] net: phy: smsc: Move SMSC PHY constants to <linux/smscphy.h> Javier Martinez Canillas
2012-01-03 23:36 ` [PATCH v2 2/2] net/smsc911x: Check if PHY is in operational mode before software reset Javier Martinez Canillas
2012-01-04  1:24   ` David Miller [this message]
2012-01-04  1:24 ` [PATCH v2 1/2] net: phy: smsc: Move SMSC PHY constants to <linux/smscphy.h> David Miller

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=20120103.202433.812126500710199359.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=ben@decadent.org.uk \
    --cc=eballetbo@iseebcn.com \
    --cc=javier@dowhile0.org \
    --cc=netdev@vger.kernel.org \
    --cc=steve.glendinning@smsc.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).