linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
To: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Cc: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>,
	Andrey Shevchenko <ashevchenko@quantenna.com>,
	Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Subject: [PATCH v2 1/9] qtnfmac: support EBUSY errcode for QLINK protocol
Date: Mon, 14 Jan 2019 09:39:35 +0000	[thread overview]
Message-ID: <20190114093925.9061-2-sergey.matyukevich.os@quantenna.com> (raw)
In-Reply-To: <20190114093925.9061-1-sergey.matyukevich.os@quantenna.com>

From: Andrey Shevchenko <ashevchenko@quantenna.com>

Add support of EBUSY error code for remote procedures over QLINK protocol.

Signed-off-by: Andrey Shevchenko <ashevchenko@quantenna.com>
---
 drivers/net/wireless/quantenna/qtnfmac/commands.c | 2 ++
 drivers/net/wireless/quantenna/qtnfmac/qlink.h    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/drivers/net/wireless/quantenna/qtnfmac/commands.c b/drivers/net/wireless/quantenna/qtnfmac/commands.c
index 659e7649fe22..c2f085589f54 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/commands.c
+++ b/drivers/net/wireless/quantenna/qtnfmac/commands.c
@@ -72,6 +72,8 @@ static int qtnf_cmd_resp_result_decode(enum qlink_cmd_result qcode)
 		return -EADDRINUSE;
 	case QLINK_CMD_RESULT_EADDRNOTAVAIL:
 		return -EADDRNOTAVAIL;
+	case QLINK_CMD_RESULT_EBUSY:
+		return -EBUSY;
 	default:
 		return -EFAULT;
 	}
diff --git a/drivers/net/wireless/quantenna/qtnfmac/qlink.h b/drivers/net/wireless/quantenna/qtnfmac/qlink.h
index 8d62addea895..f9c7f87afaf8 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/qlink.h
+++ b/drivers/net/wireless/quantenna/qtnfmac/qlink.h
@@ -733,6 +733,7 @@ enum qlink_cmd_result {
 	QLINK_CMD_RESULT_EALREADY,
 	QLINK_CMD_RESULT_EADDRINUSE,
 	QLINK_CMD_RESULT_EADDRNOTAVAIL,
+	QLINK_CMD_RESULT_EBUSY,
 };
 
 /**
-- 
2.11.0


  reply	other threads:[~2019-01-14  9:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-14  9:39 [PATCH v2 0/7] qtnfmac: fixes and minor enhancements Sergey Matyukevich
2019-01-14  9:39 ` Sergey Matyukevich [this message]
2019-02-01 12:12   ` [PATCH v2 1/9] qtnfmac: support EBUSY errcode for QLINK protocol Kalle Valo
2019-01-14  9:39 ` [PATCH v2 2/9] qtnfmac: fix INTx interrupt handling Sergey Matyukevich
2019-01-14  9:39 ` [PATCH v2 3/9] qtnfmac: add support for 4addr mode Sergey Matyukevich
2019-01-14  9:39 ` [PATCH v2 4/9] qtnfmac: switch to 32bit values for RTS/FRAG thresholds Sergey Matyukevich
2019-01-14  9:39 ` [PATCH v2 5/9] qtnfmac: do not reject retry changes in driver Sergey Matyukevich
2019-01-14  9:39 ` [PATCH v2 6/9] qtnfmac: convert to SPDX license identifiers Sergey Matyukevich
2019-01-14  9:39 ` [PATCH v2 7/9] qtnfmac: add missing bss record to host scan cache Sergey Matyukevich
2019-01-14  9:39 ` [PATCH v2 8/9] qtnfmac: remove unused declarations Sergey Matyukevich
2019-01-14  9:39 ` [PATCH v2 9/9] qtnfmac: qtnf_cmd_send_with_reply cleanup Sergey Matyukevich

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=20190114093925.9061-2-sergey.matyukevich.os@quantenna.com \
    --to=sergey.matyukevich.os@quantenna.com \
    --cc=ashevchenko@quantenna.com \
    --cc=igor.mitsyanko.os@quantenna.com \
    --cc=linux-wireless@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).