Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdb6e483 authored by James Minor's avatar James Minor Committed by Kalle Valo
Browse files

ath6kl: configure SDIO when power is reapplied



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: default avatarJames Minor <james.minor@ni.com>
Reviewed-by: default avatarSteve deRosier <steve.derosier@lairdtech.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent db14b18a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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;
}