From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 499D6C0218F for ; Wed, 29 Jan 2025 18:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:CC:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=i8zo7JP0yu8porO7pBG/6wKxZHbPij8pNRsbn09HkVA=; b=jC+JQJVXMfidTKo0+it6PsFlXU 8jdkCP8hllViKLB2FcTJdqTVJ/iDaFa8hEXr07s37/qAZU2Ui+YcEvxpvMgU1/Nvj7LQKKJFf1BmO ndQY/vcLMYELKMWJHZ3Rr4YadG1cx/JuFAFDqAqg3zJVKsEbXSDqjKAM7uIr/Ey7+kita+921kCXG QzX6BK0lUQMeTcpw4Po4JqCFbTa1tnDrNV9jfWdwFCo0oAY1xz4tXNXGyjkvRDFPdY0292REs2jap XerL4IR/7TOCCqRtqjxv2+465O0dY93/8meTItAFXkb/9kzBfggumQfFlS2rr5bkxI+g8ze6V+PDB 80iAkTJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tdCtU-00000007cT3-05eU for ath12k@archiver.kernel.org; Wed, 29 Jan 2025 18:34:32 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tdCtR-00000007cRQ-0VjJ for ath12k@lists.infradead.org; Wed, 29 Jan 2025 18:34:31 +0000 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50T97Mkt026772; Wed, 29 Jan 2025 18:34:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= i8zo7JP0yu8porO7pBG/6wKxZHbPij8pNRsbn09HkVA=; b=VmYAGITog1yjxjQH /doPScrIR6R0P5J3Vgldr/Wpegcf9n0ahHStaae2Ot/bikqblvv94mUsgtA2eE7n XGIAR9Y5LRX4Z8mMJfxOl+Mgu5DYB5yuJVhri50LJaeFfnaxhe645e+juAgTifMR LGGHtmwp8xk63w+SOEPdQvvFxm4u2IaUA9pQ3WqDK3JkH5NnZJhjIGVYKJuv/qC0 FrcLowm0oC+Nhn0xxxll1hCRHi29SoQUY+/NUMB1vHgpRskDq6YVn5nTCGVswXKF n6FEMPwl5+Dcm40RpfaksoJQsoQRWVhNdRhpGzcWh89ENJ50DKQfM6T7FswlLUJB 3GT2Xg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44fhdq94dp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Jan 2025 18:34:25 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 50TIYOsl003725 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Jan 2025 18:34:24 GMT Received: from [10.216.5.143] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 29 Jan 2025 10:34:20 -0800 Message-ID: <89d1793e-069a-41b7-bf49-28da4acc7ea2@quicinc.com> Date: Thu, 30 Jan 2025 00:04:16 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 11/13] wifi: ath12k: Power up userPD To: Krzysztof Kozlowski , CC: , Kalle Valo , "Rob Herring" , Krzysztof Kozlowski , "Conor Dooley" , Jeff Johnson , , , "Sowmiya Sree Elavalagan" References: <20241210074159.2637933-1-quic_rajkbhag@quicinc.com> <20241210074159.2637933-12-quic_rajkbhag@quicinc.com> Content-Language: en-US From: Raj Kumar Bhagat In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: LYZIGWQfRlwNFzD2LCXk7-6V5cRhKSDJ X-Proofpoint-GUID: LYZIGWQfRlwNFzD2LCXk7-6V5cRhKSDJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-29_04,2025-01-29_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501290146 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250129_103429_283191_286D1D11 X-CRM114-Status: GOOD ( 14.59 ) X-BeenThere: ath12k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath12k" Errors-To: ath12k-bounces+ath12k=archiver.kernel.org@lists.infradead.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