From: Johannes Stezenbach <js@sig21.net>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH v2 0/7] alx: small fixes/cleanups
Date: Tue, 25 Jun 2013 23:01:02 +0200 [thread overview]
Message-ID: <20130625210102.GA18495@sig21.net> (raw)
In-Reply-To: <1372185503-24705-1-git-send-email-johannes@sipsolutions.net>
On Tue, Jun 25, 2013 at 08:38:16PM +0200, Johannes Berg wrote:
> Thanks to Ben's review mostly, here are some fixes/cleanups in
> alx. I'm seriously considering removing WoWLAN as I have no use
> for it and am not too motivated to debug it, anyone else want
> to try debugging? :)
One thing I noticed is alx_select_powersaving_speed() will return 0
when there is no link but leaves *speed uninitialized.
Then __alx_shutdown() prints e.g.
alx 0000:03:00.0 eth0: wol: ctrl=3, speed=FFFF8801
In this case the
alx_write_phy_reg(hw, ALX_MII_IER, 0);
is skipped in alx_select_powersaving_speed().
However, it should still be done in alx_pre_suspend()
when WOL is disabled. But it might be we need to move
the alx_clear_phy_intr() in __alx_shutdown() down.
I'm also not sure why alx_get_phy_link() reads MII_BMSR
twice, but the old driver from compat-wireless-3.6.8-1-snpc
also does it, it seems deliberate.
Unless someone beats me to it I will try to debug
on the weekend.
BTW, it is WoLAN not WoWLAN :-)
Thanks,
Johannes
next prev parent reply other threads:[~2013-06-25 21:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-25 18:38 [PATCH v2 0/7] alx: small fixes/cleanups Johannes Berg
2013-06-25 18:38 ` [PATCH v2 1/7] alx: treat flow control correctly in alx_set_pauseparam() Johannes Berg
2013-06-25 18:38 ` [PATCH v2 2/7] alx: fix 100mbit/full duplex speed translation Johannes Berg
2013-06-25 19:32 ` Joe Perches
2013-06-25 18:38 ` [PATCH v2 3/7] alx: remove NET_CORE Kconfig select Johannes Berg
2013-06-25 18:38 ` [PATCH v2 4/7] alx: make sizes unsigned Johannes Berg
2013-06-25 18:38 ` [PATCH v2 5/7] alx: separate link speed/duplex fields Johannes Berg
2013-06-25 18:38 ` [PATCH v2 6/7] alx: fix MAC address alignment problem Johannes Berg
2013-06-25 18:38 ` [PATCH v2 7/7] alx: fix ethtool support code Johannes Berg
2013-06-25 21:01 ` Johannes Stezenbach [this message]
2013-06-29 17:20 ` [PATCH v2 0/7] alx: small fixes/cleanups Johannes Berg
2013-06-29 18:56 ` Johannes Stezenbach
2013-06-26 0:11 ` David Miller
2013-06-29 16:53 ` Johannes Berg
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=20130625210102.GA18495@sig21.net \
--to=js@sig21.net \
--cc=johannes@sipsolutions.net \
--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;
as well as URLs for NNTP newsgroup(s).