Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3661430rwb; Fri, 30 Sep 2022 06:45:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6d3TAY9EqY8MQ3kyTCyeuLfMtGl7G5dwZCI5fNZzGOSIFCK6kkyn1lGSiA5YSE5phse2e0 X-Received: by 2002:a05:6a00:13a5:b0:542:4a6d:9a1e with SMTP id t37-20020a056a0013a500b005424a6d9a1emr9293437pfg.43.1664545537959; Fri, 30 Sep 2022 06:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664545537; cv=none; d=google.com; s=arc-20160816; b=HirxBybRqyP+moYLY35I9IQ4bdGnnaeuI+DTAWAEI5S1M3QaBG19p6huB+MDzm2mf0 KSOvgQ7Y58P0/SUI38PVgjvlCZ8yhldvmg5PaSzWIvFgACgoDlvEB6j2NEgWDKc4kR7O TjgsECowWuCI2DltErrsSav52DV3X6+jjAr83Gl5KX858PPZh75GaqqSygXmjQJQvc3x XaOD9Lb9V57AFOevzeS1tE7/xqMVYuJ+N7fESldwz2rjBv/L+Cv4Zbszyvc1V6/Z56Qj 1FlvFDRQ/xLWaeYTKiQJk5FIPgGJs11qfWDDGztWbsjt1J9C7dCOrvLvYE0tW2UU7qfq uRQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=RrgY8BMdhMjdszYq+NYuIXb7NkW0sj1dWEJ5/2y5aJ8=; b=eGo1WF82O55LewxR6US7UZA/kXJ+5sUhIb72RYDWHotjZyyN9wcIgPoKv10cqXrb/k Cr6sYDVCVhgsz5dDeirSC9PwNUqG+t22reiAlNJU33Fomy0F4Z8IebjpITehdDvXhEMb 9FWER7o01cl8hFLGkix45Md4KhTipq5OnxAQiuNYyloLwuWoSd1zurqIoxIhPSRup9RJ A6NZu8s0p8a+8/Q0JxS0Minpc5L/stW8N9kx0ks+uM+PHKU5m99alGaCvsN2DKopB1X/ 8qx+sfAfQIEG3rfaAfivwsC5yURgseVkBPnK/C5wFTD6L4nUhF5Y9App+TWAzhjF6+Te eA+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q21-20020a631f55000000b0043ac3ec9d9esi2992510pgm.595.2022.09.30.06.45.28; Fri, 30 Sep 2022 06:45:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231431AbiI3NeY (ORCPT + 59 others); Fri, 30 Sep 2022 09:34:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230131AbiI3NeX (ORCPT ); Fri, 30 Sep 2022 09:34:23 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1472317C22B for ; Fri, 30 Sep 2022 06:34:21 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 28UDXgPM2027243, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36504.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 28UDXgPM2027243 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 30 Sep 2022 21:33:42 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36504.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 30 Sep 2022 21:34:08 +0800 Received: from localhost (172.16.20.103) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 30 Sep 2022 21:34:07 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH 2/2] wifi: rtw89: 8852c: rfk: correct miscoding delay of DPK Date: Fri, 30 Sep 2022 21:33:18 +0800 Message-ID: <20220930133318.6335-2-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220930133318.6335-1-pkshih@realtek.com> References: <20220930133318.6335-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.16.20.103] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: trusted connection X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Deterministic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 09/30/2022 13:14:00 X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIyLzkvMzAgpFekyCAxMToxNDowMA==?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36504.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Using mdelay() can work well, but calibration causes too much time. Use proper udelay() to get shorter time and the same result. Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c b/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c index 1e67a565a9e0c..b0672b906e7bc 100644 --- a/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c +++ b/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c @@ -1666,7 +1666,7 @@ static u8 _dpk_one_shot(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, ret = read_poll_timeout_atomic(rtw89_phy_read32_mask, val, val == 0x55, 10, 20000, false, rtwdev, 0xbff8, MASKBYTE0); - mdelay(10); + udelay(10); rtw89_phy_write32_clr(rtwdev, R_NCTL_N1, MASKBYTE0); rtw89_debug(rtwdev, RTW89_DBG_RFK, -- 2.25.1