You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.6 KiB
70 lines
2.6 KiB
From 45221782c63e029f476065b425dea7235d74614c Mon Sep 17 00:00:00 2001
|
|
From: Igor Russkikh <irusskik@redhat.com>
|
|
Date: Fri, 6 Nov 2020 18:38:09 -0500
|
|
Subject: [PATCH 112/139] [netdrv] net: atlantic: Replace ENOTSUPP usage to
|
|
EOPNOTSUPP
|
|
|
|
Message-id: <1604687916-15087-113-git-send-email-irusskik@redhat.com>
|
|
Patchwork-id: 338534
|
|
Patchwork-instance: patchwork
|
|
O-Subject: [RHEL8.4 BZ 1857861 112/139] net: atlantic: Replace ENOTSUPP usage to EOPNOTSUPP
|
|
Bugzilla: 1857861
|
|
RH-Acked-by: David Arcari <darcari@redhat.com>
|
|
RH-Acked-by: John Linville <linville@redhat.com>
|
|
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
|
|
Bugzilla: http://bugzilla.redhat.com/1857861
|
|
|
|
commit e35df2186580885c59886452c9b33f02f57ab91f
|
|
Author: Mark Starovoytov <mstarovoitov@marvell.com>
|
|
Date: Fri Jun 26 21:40:33 2020 +0300
|
|
|
|
net: atlantic: Replace ENOTSUPP usage to EOPNOTSUPP
|
|
|
|
This patch replaces ENOTSUPP (where it was used by mistake) with
|
|
EOPNOTSUPP.
|
|
|
|
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
|
|
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
|
|
Signed-off-by: Igor Russkikh <irusskik@redhat.com>
|
|
|
|
Cc: David Arcari <darcari@redhat.com>
|
|
Cc: Igor Russkikh <irusskik@redhat.com>
|
|
Signed-off-by: Jan Stancek <jstancek@redhat.com>
|
|
---
|
|
drivers/net/ethernet/aquantia/atlantic/aq_nic.c | 2 +-
|
|
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
|
|
index 321c9abd909c..d75694e9a162 100644
|
|
--- a/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
|
|
+++ b/drivers/net/ethernet/aquantia/atlantic/aq_nic.c
|
|
@@ -1172,7 +1172,7 @@ int aq_nic_set_loopback(struct aq_nic_s *self)
|
|
|
|
if (!self->aq_hw_ops->hw_set_loopback ||
|
|
!self->aq_fw_ops->set_phyloopback)
|
|
- return -ENOTSUPP;
|
|
+ return -EOPNOTSUPP;
|
|
|
|
mutex_lock(&self->fwreq_mutex);
|
|
self->aq_hw_ops->hw_set_loopback(self->aq_hw,
|
|
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 1d9dee4951f9..bf4c41cc312b 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
|
|
@@ -217,7 +217,7 @@ static int hw_atl_utils_soft_reset_rbl(struct aq_hw_s *self)
|
|
|
|
if (rbl_status == 0xF1A7) {
|
|
aq_pr_err("No FW detected. Dynamic FW load not implemented\n");
|
|
- return -ENOTSUPP;
|
|
+ return -EOPNOTSUPP;
|
|
}
|
|
|
|
for (k = 0; k < 1000; k++) {
|
|
--
|
|
2.13.6
|
|
|