[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e47f71de375b44a9a3ff3a585a3ee628@realtek.com>
Date: Thu, 23 Mar 2023 02:28:07 +0000
From: Ping-Ke Shih <pkshih@...ltek.com>
To: Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
"linux-wireless@...r.kernel.org" <linux-wireless@...r.kernel.org>
CC: Yan-Hsuan Chuang <tony0620emma@...il.com>,
Kalle Valo <kvalo@...nel.org>,
Ulf Hansson <ulf.hansson@...aro.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
Chris Morgan <macroalpha82@...il.com>,
"Nitin Gupta" <nitin.gupta981@...il.com>,
Neo Jou <neojou@...il.com>,
Jernej Skrabec <jernej.skrabec@...il.com>,
Larry Finger <Larry.Finger@...inger.net>
Subject: RE: [PATCH v3 4/9] wifi: rtw88: main: Add the {cpwm,rpwm}_addr for SDIO based chipsets
> -----Original Message-----
> From: Martin Blumenstingl <martin.blumenstingl@...glemail.com>
> Sent: Tuesday, March 21, 2023 5:35 AM
> To: linux-wireless@...r.kernel.org
> Cc: Yan-Hsuan Chuang <tony0620emma@...il.com>; Kalle Valo <kvalo@...nel.org>; Ulf Hansson
> <ulf.hansson@...aro.org>; linux-kernel@...r.kernel.org; netdev@...r.kernel.org;
> linux-mmc@...r.kernel.org; Chris Morgan <macroalpha82@...il.com>; Nitin Gupta <nitin.gupta981@...il.com>;
> Neo Jou <neojou@...il.com>; Ping-Ke Shih <pkshih@...ltek.com>; Jernej Skrabec <jernej.skrabec@...il.com>;
> Larry Finger <Larry.Finger@...inger.net>; Martin Blumenstingl <martin.blumenstingl@...glemail.com>
> 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 <martin.blumenstingl@...glemail.com>
Reviewed-by: Ping-Ke Shih <pkshih@...ltek.com>
> ---
> 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
Powered by blists - more mailing lists