From: Raj Kumar Bhagat <quic_rajkbhag@quicinc.com>
To: Krzysztof Kozlowski <krzk@kernel.org>, <ath12k@lists.infradead.org>
Cc: <linux-wireless@vger.kernel.org>, Kalle Valo <kvalo@kernel.org>,
"Rob Herring" <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
Jeff Johnson <jjohnson@kernel.org>,
<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
"Sowmiya Sree Elavalagan" <quic_ssreeela@quicinc.com>
Subject: Re: [PATCH v4 11/13] wifi: ath12k: Power up userPD
Date: Thu, 30 Jan 2025 00:04:16 +0530 [thread overview]
Message-ID: <89d1793e-069a-41b7-bf49-28da4acc7ea2@quicinc.com> (raw)
In-Reply-To: <bd3f7586-4119-47f5-bbf6-a43bd02088b8@kernel.org>
On 12/10/2024 8:22 PM, Krzysztof Kozlowski wrote:
> On 10/12/2024 08:41, Raj Kumar Bhagat wrote:
>> +
>> + time_left = wait_for_completion_timeout(&ab_ahb->userpd_ready,
>> + ATH12K_USERPD_READY_TIMEOUT);
>> + if (!time_left) {
>> + ath12k_err(ab, "UserPD ready wait timed out\n");
>> + ret = -ETIMEDOUT;
>> + goto err_fw2;
>> + }
>> +
>> + qcom_smem_state_update_bits(ab_ahb->spawn_state, BIT(ab_ahb->spawn_bit), 0);
>> +
>> + ath12k_info(ab, "UserPD%d is now UP\n", ab_ahb->userpd_id);
>
> Don't bug users with success messages. Your driver is supposed to be
> silent on success.
>
sure, will move this to ath12k_dbg() print.
>> +
>> +err_fw2:
>> + release_firmware(fw2);
>> +err_fw:
>> + release_firmware(fw);
>> + return ret;
>> +}
>> +
>> static void ath12k_ahb_init_qmi_ce_config(struct ath12k_base *ab)
>> {
>> struct ath12k_qmi_ce_cfg *cfg = &ab->qmi.ce_cfg;
>> @@ -557,6 +694,7 @@ static const struct ath12k_hif_ops ath12k_ahb_hif_ops_ipq5332 = {
>> .irq_enable = ath12k_ahb_ext_irq_enable,
>> .irq_disable = ath12k_ahb_ext_irq_disable,
>> .map_service_to_pipe = ath12k_ahb_map_service_to_pipe,
>> + .power_up = ath12k_ahb_power_up,
>> };
>>
>> static irqreturn_t ath12k_userpd_irq_handler(int irq, void *data)
>> diff --git a/drivers/net/wireless/ath/ath12k/ahb.h b/drivers/net/wireless/ath/ath12k/ahb.h
>> index 0999e2bbe970..0dbbbfd45eab 100644
>> --- a/drivers/net/wireless/ath/ath12k/ahb.h
>> +++ b/drivers/net/wireless/ath/ath12k/ahb.h
>> @@ -19,7 +19,15 @@
>> #define ATH12K_PCI_IRQ_CE0_OFFSET 3
>> #define ATH12K_ROOTPD_READY_TIMEOUT (5 * HZ)
>> #define ATH12K_RPROC_AFTER_POWERUP QCOM_SSR_AFTER_POWERUP
>> -
>
> Why? You just added this line in previous commits.
>
will take care in next version.
>> +#define ATH12K_AHB_FW_PREFIX "q6_fw"
>> +#define ATH12K_AHB_FW_SUFFIX ".mdt"
> Best regards,
> Krzysztof
next prev parent reply other threads:[~2025-01-29 18:34 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-10 7:41 [PATCH v4 00/13] wifi: ath12k: add Ath12k AHB driver support for IPQ5332 Raj Kumar Bhagat
2024-12-10 7:41 ` [PATCH v4 01/13] dt-bindings: net: wireless: describe the ath12k AHB module Raj Kumar Bhagat
2024-12-10 7:41 ` [PATCH v4 02/13] wifi: ath12k: fix incorrect CE addresses Raj Kumar Bhagat
2024-12-10 7:41 ` [PATCH v4 03/13] wifi: ath12k: refactor ath12k_hw_regs structure Raj Kumar Bhagat
2024-12-10 7:41 ` [PATCH v4 04/13] wifi: ath12k: add ath12k_hw_params for IPQ5332 Raj Kumar Bhagat
2024-12-10 7:41 ` [PATCH v4 05/13] wifi: ath12k: avoid m3 firmware download in AHB device IPQ5332 Raj Kumar Bhagat
2024-12-10 7:41 ` [PATCH v4 06/13] wifi: ath12k: Add hw_params to remap CE register space for IPQ5332 Raj Kumar Bhagat
2024-12-10 7:41 ` [PATCH v4 07/13] wifi: ath12k: add support for fixed QMI firmware memory Raj Kumar Bhagat
2024-12-10 14:43 ` Krzysztof Kozlowski
2024-12-10 17:00 ` Raj Kumar Bhagat
2024-12-11 8:52 ` Krzysztof Kozlowski
2024-12-10 7:41 ` [PATCH v4 08/13] wifi: ath12k: add AHB driver support for IPQ5332 Raj Kumar Bhagat
2024-12-10 14:47 ` Krzysztof Kozlowski
2025-01-29 18:28 ` Raj Kumar Bhagat
2024-12-10 7:41 ` [PATCH v4 09/13] wifi: ath12k: Power up root PD Raj Kumar Bhagat
2024-12-10 14:50 ` Krzysztof Kozlowski
2025-01-29 18:32 ` Raj Kumar Bhagat
2024-12-10 7:41 ` [PATCH v4 10/13] wifi: ath12k: Register various userPD interrupts and save SMEM entries Raj Kumar Bhagat
2024-12-10 7:41 ` [PATCH v4 11/13] wifi: ath12k: Power up userPD Raj Kumar Bhagat
2024-12-10 14:52 ` Krzysztof Kozlowski
2025-01-29 18:34 ` Raj Kumar Bhagat [this message]
2024-12-10 7:41 ` [PATCH v4 12/13] wifi: ath12k: Power down userPD Raj Kumar Bhagat
2024-12-10 7:41 ` [PATCH v4 13/13] wifi: ath12k: enable ath12k AHB support Raj Kumar Bhagat
2024-12-10 15:08 ` [PATCH v4 00/13] wifi: ath12k: add Ath12k AHB driver support for IPQ5332 Krzysztof Kozlowski
2024-12-10 15:12 ` Krzysztof Kozlowski
2025-01-28 9:16 ` Raj Kumar Bhagat
2025-01-28 9:20 ` Krzysztof Kozlowski
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=89d1793e-069a-41b7-bf49-28da4acc7ea2@quicinc.com \
--to=quic_rajkbhag@quicinc.com \
--cc=ath12k@lists.infradead.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jjohnson@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=kvalo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=quic_ssreeela@quicinc.com \
--cc=robh@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
all inboxes | Powered by JetHome®