* [PATCH 1/2] ath10k: set the UART baud rate to 19200
@ 2013-09-03 12:24 Bartosz Markowski
2013-09-03 12:24 ` [PATCH 2/2] ath10k: remove obsolete INIT STATUS definitions Bartosz Markowski
2013-09-06 9:52 ` [PATCH 1/2] ath10k: set the UART baud rate to 19200 Kalle Valo
0 siblings, 2 replies; 3+ messages in thread
From: Bartosz Markowski @ 2013-09-03 12:24 UTC (permalink / raw)
To: ath10k; +Cc: linux-wireless, Bartosz Markowski
When configuring the host_interests over BMI, set the UART
baud rate to 19200. This is valid for QCA988X_2.0 devices.
Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
---
drivers/net/wireless/ath/ath10k/core.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c
index 2dd39a8..2c1d2d7 100644
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -435,6 +435,13 @@ static int ath10k_init_uart(struct ath10k *ar)
return ret;
}
+ /* Set the UART baud rate to 19200. */
+ ret = ath10k_bmi_write32(ar, hi_desired_baud_rate, 19200);
+ if (ret) {
+ ath10k_warn("could not set the baud rate (%d)\n", ret);
+ return ret;
+ }
+
ath10k_info("UART prints enabled\n");
return 0;
}
--
1.7.10
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] ath10k: remove obsolete INIT STATUS definitions
2013-09-03 12:24 [PATCH 1/2] ath10k: set the UART baud rate to 19200 Bartosz Markowski
@ 2013-09-03 12:24 ` Bartosz Markowski
2013-09-06 9:52 ` [PATCH 1/2] ath10k: set the UART baud rate to 19200 Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Markowski @ 2013-09-03 12:24 UTC (permalink / raw)
To: ath10k; +Cc: linux-wireless, Bartosz Markowski
There's no functional changes. Just a small cleanup.
Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
---
drivers/net/wireless/ath/ath10k/wmi.h | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h
index 08860c4..40fcf05 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.h
+++ b/drivers/net/wireless/ath/ath10k/wmi.h
@@ -763,14 +763,6 @@ struct wmi_service_ready_event {
struct wlan_host_mem_req mem_reqs[1];
} __packed;
-/*
- * status consists of upper 16 bits fo int status and lower 16 bits of
- * module ID that retuned status
- */
-#define WLAN_INIT_STATUS_SUCCESS 0x0
-#define WLAN_GET_INIT_STATUS_REASON(status) ((status) & 0xffff)
-#define WLAN_GET_INIT_STATUS_MODULE_ID(status) (((status) >> 16) & 0xffff)
-
#define WMI_SERVICE_READY_TIMEOUT_HZ (5*HZ)
#define WMI_UNIFIED_READY_TIMEOUT_HZ (5*HZ)
--
1.7.10
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/2] ath10k: set the UART baud rate to 19200
2013-09-03 12:24 [PATCH 1/2] ath10k: set the UART baud rate to 19200 Bartosz Markowski
2013-09-03 12:24 ` [PATCH 2/2] ath10k: remove obsolete INIT STATUS definitions Bartosz Markowski
@ 2013-09-06 9:52 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2013-09-06 9:52 UTC (permalink / raw)
To: Bartosz Markowski; +Cc: ath10k, linux-wireless
Bartosz Markowski <bartosz.markowski@tieto.com> writes:
> When configuring the host_interests over BMI, set the UART
> baud rate to 19200. This is valid for QCA988X_2.0 devices.
>
> Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Thanks, both patches applied.
To first patch I added this:
kvalo: found during code review, there should not be any functionality
changes
--
Kalle Valo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-06 9:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03 12:24 [PATCH 1/2] ath10k: set the UART baud rate to 19200 Bartosz Markowski
2013-09-03 12:24 ` [PATCH 2/2] ath10k: remove obsolete INIT STATUS definitions Bartosz Markowski
2013-09-06 9:52 ` [PATCH 1/2] ath10k: set the UART baud rate to 19200 Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox