Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6968452rwl; Wed, 22 Mar 2023 19:30:33 -0700 (PDT) X-Google-Smtp-Source: AK7set+wXxob0kOJQYy8vmYeYfS7av2Muy5hAZWz/OJj7/8pdybmRYtOzDfz9Gdb8uNsy9t66Dx7 X-Received: by 2002:a17:906:3b12:b0:88a:1ea9:a5ea with SMTP id g18-20020a1709063b1200b0088a1ea9a5eamr9005859ejf.65.1679538633067; Wed, 22 Mar 2023 19:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679538633; cv=none; d=google.com; s=arc-20160816; b=gctw4W95MFxpk0gXuDi2WQ/+tRZZlKMxsntB39jUNzA4nf/v3HJ7nKjh1L/0wjFJ8a /OGmeORhfdnJt6uVIkSYlb7ydg39rp0OTlsH4CGkYkgWn2TruD/JJRvZ5WlPq7YkmcpL 0OtB57ZHxN63HPywOGqURBKJK0V/2tR3L9prQAAGv4mv1A85+5BxOMfwxE//a56KXXu0 62kFkjJTLT8JAiqYLrXXrjgC7plJms6hJvkImwUB4IGrudORiRnBWgTQL/iNFtHMHV9O HYTh+f5Ih3cWBZ37Xcqwz1xW+HGc4LMhkPSlin9P3ZxSQAwsKYOPBMNGnBN0qualBtNL zdfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=D8oMkmgOoHOxuy1TzvRinHb3m9BCza+eq0F/QzaXg1M=; b=tp5sbLR0DOT0nlEb+HGbGonRaot9B3z8QrRum7G+NkBm13nXH5sOBc5YL4c5Scyjz8 XsnJNE4PmjW4GA6lB80av0hAlGOEpcJwRZum/ziGcznlLPAfng7yTYbNt/GygcWsa3x1 REq4CocikUzDp98k2OHrrtauPfcGhJNjDg4upiC2stcRDXCboshoOSYJEaxvZigCakbN eJ6YdD2EkuhOurSSQF5f0jCyMomigPHIgVCTlefNrFomFw5f3D9fUW0u/IBzwggCVGCI J1EJ/7FwWDsdSo469gfNlx0vtZkiFimnLvBqBUHgtjnnuoxcelffbaZ+tUEPzgh6qjam tUNw== 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 cw13-20020a170906c78d00b0092be69b4288si9314044ejb.381.2023.03.22.19.30.18; Wed, 22 Mar 2023 19:30:33 -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 S229870AbjCWC22 convert rfc822-to-8bit (ORCPT + 60 others); Wed, 22 Mar 2023 22:28:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjCWC20 (ORCPT ); Wed, 22 Mar 2023 22:28:26 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A81EA6E90; Wed, 22 Mar 2023 19:28:25 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 32N2RriZ6005274, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 32N2RriZ6005274 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Thu, 23 Mar 2023 10:27:53 +0800 Received: from RTEXMBS06.realtek.com.tw (172.21.6.99) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Thu, 23 Mar 2023 10:28:08 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Mar 2023 10:28:07 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::b4a2:2bcc:48d1:8b02]) by RTEXMBS04.realtek.com.tw ([fe80::b4a2:2bcc:48d1:8b02%5]) with mapi id 15.01.2375.007; Thu, 23 Mar 2023 10:28:07 +0800 From: Ping-Ke Shih To: Martin Blumenstingl , "linux-wireless@vger.kernel.org" CC: Yan-Hsuan Chuang , Kalle Valo , Ulf Hansson , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-mmc@vger.kernel.org" , Chris Morgan , "Nitin Gupta" , Neo Jou , Jernej Skrabec , Larry Finger Subject: RE: [PATCH v3 4/9] wifi: rtw88: main: Add the {cpwm,rpwm}_addr for SDIO based chipsets Thread-Topic: [PATCH v3 4/9] wifi: rtw88: main: Add the {cpwm,rpwm}_addr for SDIO based chipsets Thread-Index: AQHZW3PmFH0pXiFra0+q+akkUuPTRK8Hpy0g Date: Thu, 23 Mar 2023 02:28:07 +0000 Message-ID: References: <20230320213508.2358213-1-martin.blumenstingl@googlemail.com> <20230320213508.2358213-5-martin.blumenstingl@googlemail.com> In-Reply-To: <20230320213508.2358213-5-martin.blumenstingl@googlemail.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS06.realtek.com.tw, 9 x-kse-attachmentfiltering-interceptor-info: no applicable attachment filtering rules found x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: =?us-ascii?Q?Clean,_bases:_2023/3/22_=3F=3F_11:29:00?= x-kse-bulkmessagesfiltering-scan-result: protection disabled Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-ServerInfo: RTEXH36505.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=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 > -----Original Message----- > From: Martin Blumenstingl > Sent: Tuesday, March 21, 2023 5:35 AM > To: linux-wireless@vger.kernel.org > Cc: Yan-Hsuan Chuang ; Kalle Valo ; Ulf Hansson > ; linux-kernel@vger.kernel.org; netdev@vger.kernel.org; > linux-mmc@vger.kernel.org; Chris Morgan ; Nitin Gupta ; > Neo Jou ; Ping-Ke Shih ; Jernej Skrabec ; > Larry Finger ; Martin Blumenstingl > Subject: [PATCH v3 4/9] wifi: rtw88: main: Add the {cpwm,rpwm}_addr for SDIO based chipsets > > Initialize the rpwm_addr and cpwm_addr for power-saving support on SDIO > based chipsets. > > Signed-off-by: Martin Blumenstingl Reviewed-by: Ping-Ke Shih > --- > Changes since v2: > - none > > Changes since v1: > - none > > > drivers/net/wireless/realtek/rtw88/main.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c > index b2e78737bd5d..cdc4703ead5f 100644 > --- a/drivers/net/wireless/realtek/rtw88/main.c > +++ b/drivers/net/wireless/realtek/rtw88/main.c > @@ -18,6 +18,7 @@ > #include "debug.h" > #include "bf.h" > #include "sar.h" > +#include "sdio.h" > > bool rtw_disable_lps_deep_mode; > EXPORT_SYMBOL(rtw_disable_lps_deep_mode); > @@ -1785,6 +1786,10 @@ static int rtw_chip_parameter_setup(struct rtw_dev *rtwdev) > rtwdev->hci.rpwm_addr = 0x03d9; > rtwdev->hci.cpwm_addr = 0x03da; > break; > + case RTW_HCI_TYPE_SDIO: > + rtwdev->hci.rpwm_addr = REG_SDIO_HRPWM1; > + rtwdev->hci.cpwm_addr = REG_SDIO_HCPWM1_V2; > + break; > case RTW_HCI_TYPE_USB: > rtwdev->hci.rpwm_addr = 0xfe58; > rtwdev->hci.cpwm_addr = 0xfe57; > -- > 2.40.0