From: James Minor <james.minor@ni.com>
To: linux-wireless@vger.kernel.org, ath6kl@lists.infradead.org
Cc: kvalo@qca.qualcomm.com, julia.cartwright@ni.com,
steve.derosier@lairdtech.com, James Minor <james.minor@ni.com>
Subject: [PATCH 3/3] ath6kl: configure SDIO when power is reapplied
Date: Mon, 3 Oct 2016 13:00:04 -0500 [thread overview]
Message-ID: <1475517604-17710-4-git-send-email-james.minor@ni.com> (raw)
In-Reply-To: <1475517604-17710-1-git-send-email-james.minor@ni.com>
When power is removed from the device, all of the SDIO settings
return to default. Fix that by reconfiguring after power is
applied.
Signed-off-by: James Minor <james.minor@ni.com>
Reviewed-by: Steve deRosier <steve.derosier@lairdtech.com>
---
drivers/net/wireless/ath/ath6kl/sdio.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c
index 8261e24..c2df075 100644
--- a/drivers/net/wireless/ath/ath6kl/sdio.c
+++ b/drivers/net/wireless/ath/ath6kl/sdio.c
@@ -75,6 +75,8 @@ struct ath6kl_sdio {
#define CMD53_ARG_FIXED_ADDRESS 0
#define CMD53_ARG_INCR_ADDRESS 1
+static int ath6kl_sdio_config(struct ath6kl *ar);
+
static inline struct ath6kl_sdio *ath6kl_sdio_priv(struct ath6kl *ar)
{
return ar->hif_priv;
@@ -526,8 +528,15 @@ static int ath6kl_sdio_power_on(struct ath6kl *ar)
*/
msleep(10);
+ ret = ath6kl_sdio_config(ar);
+ if (ret) {
+ ath6kl_err("Failed to config sdio: %d\n", ret);
+ goto out;
+ }
+
ar_sdio->is_disabled = false;
+out:
return ret;
}
--
1.9.1
prev parent reply other threads:[~2016-10-03 18:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1475510510-16906-1-git-send-email-james.minor@ni.com>
2016-10-03 18:00 ` [PATCH 0/3] Allow ath6kl to be restarted James Minor
2016-10-03 18:00 ` [PATCH 1/3] ath6kl: fix busreqs so they can be reused when sg is cleaned up James Minor
2016-10-06 7:15 ` [1/3] " Kalle Valo
2016-10-03 18:00 ` [PATCH 2/3] ath6kl: after cleanup properly reflect that sg is disabled James Minor
2016-10-03 18:00 ` James Minor [this message]
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=1475517604-17710-4-git-send-email-james.minor@ni.com \
--to=james.minor@ni.com \
--cc=ath6kl@lists.infradead.org \
--cc=julia.cartwright@ni.com \
--cc=kvalo@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=steve.derosier@lairdtech.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