From: Andrew Lunn <andrew@lunn.ch>
To: Igor Russkikh <igor.russkikh@aquantia.com>
Cc: "David S . Miller" <davem@davemloft.net>,
netdev@vger.kernel.org, David Arcari <darcari@redhat.com>,
Pavel Belous <Pavel.Belous@aquantia.com>,
Nadezhda Krupnina <Nadezhda.Krupnina@aquantia.com>,
Simon Edelhaus <simon.edelhaus@aquantia.com>
Subject: Re: [PATCH net 3/4] net:ethernet:aquantia: Fix transient invalid link down/up indications
Date: Thu, 21 Sep 2017 17:38:19 +0200 [thread overview]
Message-ID: <20170921153819.GH27589@lunn.ch> (raw)
In-Reply-To: <6c8d54cad231f22ba46e08d3ec0fe9d6fcef7468.1505915085.git.igor.russkikh@aquantia.com>
On Thu, Sep 21, 2017 at 01:53:41PM +0300, Igor Russkikh wrote:
> Due to a bug in aquantia atlantic card firmware, it sometimes reports
> invalid link speed bits. That caused driver to report link down events,
> although link itself is totally fine.
>
> This patch ignores such out of blue readings.
>
> Signed-off-by: Pavel Belous <Pavel.Belous@aquantia.com>
> Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
> ---
> drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c
> index 4f5ec9a..ab5d3cb 100644
> --- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c
> +++ b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c
> @@ -351,8 +351,7 @@ int hw_atl_utils_mpi_get_link_status(struct aq_hw_s *self)
> break;
>
> default:
> - link_status->mbps = 0U;
> - break;
> + return -1;
Hi Igno
Please use a proper error code.
Andrew
next prev parent reply other threads:[~2017-09-21 15:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-21 10:53 [PATCH net 0/4] net:ethernet:aquantia: Atlantic driver bugfixes and improvements Igor Russkikh
2017-09-21 10:53 ` [PATCH net 1/4] net:ethernet:aquantia: Setup max_mtu in ndev to enable jumbo frames Igor Russkikh
2017-09-21 15:36 ` Andrew Lunn
2017-09-22 7:24 ` Igor Russkikh
2017-09-21 10:53 ` [PATCH net 2/4] net:ethernet:aquantia: Fix Tx queue hangups Igor Russkikh
2017-09-21 11:19 ` Yunsheng Lin
2017-09-21 14:31 ` Igor Russkikh
2017-09-21 10:53 ` [PATCH net 3/4] net:ethernet:aquantia: Fix transient invalid link down/up indications Igor Russkikh
2017-09-21 15:38 ` Andrew Lunn [this message]
2017-09-21 10:53 ` [PATCH net 4/4] net:ethernet:atlantic: fix iommu errors Igor Russkikh
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=20170921153819.GH27589@lunn.ch \
--to=andrew@lunn.ch \
--cc=Nadezhda.Krupnina@aquantia.com \
--cc=Pavel.Belous@aquantia.com \
--cc=darcari@redhat.com \
--cc=davem@davemloft.net \
--cc=igor.russkikh@aquantia.com \
--cc=netdev@vger.kernel.org \
--cc=simon.edelhaus@aquantia.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