* [PATCH] ath11k:print firmware info during boot
@ 2019-05-07 9:44 Manikanta Pubbisetty
2019-05-07 9:47 ` Manikanta Pubbisetty
0 siblings, 1 reply; 4+ messages in thread
From: Manikanta Pubbisetty @ 2019-05-07 9:44 UTC (permalink / raw)
To: ath10k; +Cc: Manikanta Pubbisetty
Print fw info like version, time stamp and fw build info
during boot.
Signed-off-by: Manikanta Pubbisetty <mpubbise@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/qmi.c | 20 ++++++++++++++++----
drivers/net/wireless/ath/ath11k/qmi.h | 1 +
2 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/drivers/net/wireless/ath/ath11k/qmi.c b/drivers/net/wireless/ath/ath11k/qmi.c
index aca717c..f1b272d 100644
--- a/drivers/net/wireless/ath/ath11k/qmi.c
+++ b/drivers/net/wireless/ath/ath11k/qmi.c
@@ -1774,14 +1774,26 @@ static int ath11k_qmi_request_target_cap(struct ath11k_base *ab)
if (resp.soc_info_valid)
ab->qmi.target.soc_id = resp.soc_info.soc_id;
- if (resp.fw_version_info_valid)
+ if (resp.fw_version_info_valid) {
ab->qmi.target.fw_version = resp.fw_version_info.fw_version;
+ strlcpy(ab->qmi.target.fw_build_timestamp,
+ resp.fw_version_info.fw_build_timestamp,
+ sizeof(ab->qmi.target.fw_build_timestamp));
+ }
+
+ if (resp.fw_build_id_valid)
+ strlcpy(ab->qmi.target.fw_build_id, resp.fw_build_id,
+ sizeof(ab->qmi.target.fw_build_id));
ath11k_info(ab, "qmi target: chip_id: 0x%x, chip_family: 0x%x,"
- "board_id: 0x%x, soc_id: 0x%x, fw_version: 0x%x\n",
+ "board_id: 0x%x, soc_id: 0x%x\n",
ab->qmi.target.chip_id, ab->qmi.target.chip_family,
- ab->qmi.target.board_id, ab->qmi.target.soc_id,
- ab->qmi.target.fw_version);
+ ab->qmi.target.board_id, ab->qmi.target.soc_id);
+
+ ath11k_info(ab, "qmi fw_version: 0x%x fw_build_timestamp: %s fw_build_id: %s",
+ ab->qmi.target.fw_version,
+ ab->qmi.target.fw_build_timestamp,
+ ab->qmi.target.fw_build_id);
out:
return ret;
diff --git a/drivers/net/wireless/ath/ath11k/qmi.h b/drivers/net/wireless/ath/ath11k/qmi.h
index b017596..1781236 100644
--- a/drivers/net/wireless/ath/ath11k/qmi.h
+++ b/drivers/net/wireless/ath/ath11k/qmi.h
@@ -98,6 +98,7 @@ struct target_info {
u32 soc_id;
u32 fw_version;
char fw_build_timestamp[ATH11K_QMI_WLANFW_MAX_TIMESTAMP_LEN_V01 + 1];
+ char fw_build_id[ATH11K_QMI_WLANFW_MAX_BUILD_ID_LEN_V01 + 1];
};
struct ath11k_qmi {
--
2.7.4
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ath11k:print firmware info during boot
2019-05-07 9:44 [PATCH] ath11k:print firmware info during boot Manikanta Pubbisetty
@ 2019-05-07 9:47 ` Manikanta Pubbisetty
0 siblings, 0 replies; 4+ messages in thread
From: Manikanta Pubbisetty @ 2019-05-07 9:47 UTC (permalink / raw)
To: ath10k
On 2019-05-07 15:14, Manikanta Pubbisetty wrote:
> Print fw info like version, time stamp and fw build info
> during boot.
>
> Signed-off-by: Manikanta Pubbisetty <mpubbise@codeaurora.org>
> ---
> drivers/net/wireless/ath/ath11k/qmi.c | 20 ++++++++++++++++----
> drivers/net/wireless/ath/ath11k/qmi.h | 1 +
> 2 files changed, 17 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath11k/qmi.c
> b/drivers/net/wireless/ath/ath11k/qmi.c
> index aca717c..f1b272d 100644
> --- a/drivers/net/wireless/ath/ath11k/qmi.c
> +++ b/drivers/net/wireless/ath/ath11k/qmi.c
> @@ -1774,14 +1774,26 @@ static int
> ath11k_qmi_request_target_cap(struct ath11k_base *ab)
> if (resp.soc_info_valid)
> ab->qmi.target.soc_id = resp.soc_info.soc_id;
>
> - if (resp.fw_version_info_valid)
> + if (resp.fw_version_info_valid) {
> ab->qmi.target.fw_version = resp.fw_version_info.fw_version;
> + strlcpy(ab->qmi.target.fw_build_timestamp,
> + resp.fw_version_info.fw_build_timestamp,
> + sizeof(ab->qmi.target.fw_build_timestamp));
> + }
> +
> + if (resp.fw_build_id_valid)
> + strlcpy(ab->qmi.target.fw_build_id, resp.fw_build_id,
> + sizeof(ab->qmi.target.fw_build_id));
>
> ath11k_info(ab, "qmi target: chip_id: 0x%x, chip_family: 0x%x,"
> - "board_id: 0x%x, soc_id: 0x%x, fw_version: 0x%x\n",
> + "board_id: 0x%x, soc_id: 0x%x\n",
> ab->qmi.target.chip_id, ab->qmi.target.chip_family,
> - ab->qmi.target.board_id, ab->qmi.target.soc_id,
> - ab->qmi.target.fw_version);
> + ab->qmi.target.board_id, ab->qmi.target.soc_id);
> +
> + ath11k_info(ab, "qmi fw_version: 0x%x fw_build_timestamp: %s
> fw_build_id: %s",
> + ab->qmi.target.fw_version,
> + ab->qmi.target.fw_build_timestamp,
> + ab->qmi.target.fw_build_id);
>
> out:
> return ret;
> diff --git a/drivers/net/wireless/ath/ath11k/qmi.h
> b/drivers/net/wireless/ath/ath11k/qmi.h
> index b017596..1781236 100644
> --- a/drivers/net/wireless/ath/ath11k/qmi.h
> +++ b/drivers/net/wireless/ath/ath11k/qmi.h
> @@ -98,6 +98,7 @@ struct target_info {
> u32 soc_id;
> u32 fw_version;
> char fw_build_timestamp[ATH11K_QMI_WLANFW_MAX_TIMESTAMP_LEN_V01 + 1];
> + char fw_build_id[ATH11K_QMI_WLANFW_MAX_BUILD_ID_LEN_V01 + 1];
> };
>
> struct ath11k_qmi {
Send to wrong mailing list, please ignore the patch.
Thanks,
Manikanta
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ath11k:print firmware info during boot
2019-05-07 9:45 Manikanta Pubbisetty
@ 2019-05-13 14:46 ` Kalle Valo
0 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2019-05-13 14:46 UTC (permalink / raw)
To: Manikanta Pubbisetty; +Cc: ath11k
Manikanta Pubbisetty <mpubbise@codeaurora.org> wrote:
> Print fw info like version, time stamp and fw build info
> during boot.
>
> Signed-off-by: Manikanta Pubbisetty <mpubbise@codeaurora.org>
Patch applied to ath.git, thanks.
d6c9dfaafe99 ath11k:print firmware info during boot
--
https://patchwork.kernel.org/patch/10932695/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ath11k:print firmware info during boot
@ 2019-05-07 9:45 Manikanta Pubbisetty
2019-05-13 14:46 ` Kalle Valo
0 siblings, 1 reply; 4+ messages in thread
From: Manikanta Pubbisetty @ 2019-05-07 9:45 UTC (permalink / raw)
To: ath11k; +Cc: Manikanta Pubbisetty
Print fw info like version, time stamp and fw build info
during boot.
Signed-off-by: Manikanta Pubbisetty <mpubbise@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/qmi.c | 20 ++++++++++++++++----
drivers/net/wireless/ath/ath11k/qmi.h | 1 +
2 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/drivers/net/wireless/ath/ath11k/qmi.c b/drivers/net/wireless/ath/ath11k/qmi.c
index aca717c..f1b272d 100644
--- a/drivers/net/wireless/ath/ath11k/qmi.c
+++ b/drivers/net/wireless/ath/ath11k/qmi.c
@@ -1774,14 +1774,26 @@ static int ath11k_qmi_request_target_cap(struct ath11k_base *ab)
if (resp.soc_info_valid)
ab->qmi.target.soc_id = resp.soc_info.soc_id;
- if (resp.fw_version_info_valid)
+ if (resp.fw_version_info_valid) {
ab->qmi.target.fw_version = resp.fw_version_info.fw_version;
+ strlcpy(ab->qmi.target.fw_build_timestamp,
+ resp.fw_version_info.fw_build_timestamp,
+ sizeof(ab->qmi.target.fw_build_timestamp));
+ }
+
+ if (resp.fw_build_id_valid)
+ strlcpy(ab->qmi.target.fw_build_id, resp.fw_build_id,
+ sizeof(ab->qmi.target.fw_build_id));
ath11k_info(ab, "qmi target: chip_id: 0x%x, chip_family: 0x%x,"
- "board_id: 0x%x, soc_id: 0x%x, fw_version: 0x%x\n",
+ "board_id: 0x%x, soc_id: 0x%x\n",
ab->qmi.target.chip_id, ab->qmi.target.chip_family,
- ab->qmi.target.board_id, ab->qmi.target.soc_id,
- ab->qmi.target.fw_version);
+ ab->qmi.target.board_id, ab->qmi.target.soc_id);
+
+ ath11k_info(ab, "qmi fw_version: 0x%x fw_build_timestamp: %s fw_build_id: %s",
+ ab->qmi.target.fw_version,
+ ab->qmi.target.fw_build_timestamp,
+ ab->qmi.target.fw_build_id);
out:
return ret;
diff --git a/drivers/net/wireless/ath/ath11k/qmi.h b/drivers/net/wireless/ath/ath11k/qmi.h
index b017596..1781236 100644
--- a/drivers/net/wireless/ath/ath11k/qmi.h
+++ b/drivers/net/wireless/ath/ath11k/qmi.h
@@ -98,6 +98,7 @@ struct target_info {
u32 soc_id;
u32 fw_version;
char fw_build_timestamp[ATH11K_QMI_WLANFW_MAX_TIMESTAMP_LEN_V01 + 1];
+ char fw_build_id[ATH11K_QMI_WLANFW_MAX_BUILD_ID_LEN_V01 + 1];
};
struct ath11k_qmi {
--
2.7.4
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-05-13 14:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-07 9:44 [PATCH] ath11k:print firmware info during boot Manikanta Pubbisetty
2019-05-07 9:47 ` Manikanta Pubbisetty
2019-05-07 9:45 Manikanta Pubbisetty
2019-05-13 14:46 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.