Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6968028rwl; Wed, 22 Mar 2023 19:30:06 -0700 (PDT) X-Google-Smtp-Source: AK7set//Qa00HUcF3IwvXFSr+W9+e6+sHcnoYwI9CXl2owkL79vJBk+b5lpYNma2S2R+CB4I0+dm X-Received: by 2002:a05:6402:12da:b0:4fb:1b0d:9f84 with SMTP id k26-20020a05640212da00b004fb1b0d9f84mr8910020edx.6.1679538606433; Wed, 22 Mar 2023 19:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679538606; cv=none; d=google.com; s=arc-20160816; b=rFXow+2f5Qp0WrtAWnB1k8Uf918v2MnfHDr8usKA8IHovwZdN5t88cRHDLkCi0OMUC ekkXl1nfmkUlQNW6r1Ua6KtSNZP33y36+rRlfDWSTJo0bbAYZ6QC86fk7XAi5kBGO8pN kDSOwqJey7FG+tdVqOk2+yhtWB0g+GV5Cwe9vLpHyjagcXtTSSDgchM5bw/oshJ3S490 bDoUsosTLqkbCBcUdd+4a9ZnbjQCPnMf/OnVO//I8vWeiwEX3mDk2Q55Dh4f1J17ufqZ IDJw5Qjy6Rlw2y+HgFqwwwhx+o7KeCQD0XgHXw26rabGv1pbBLhruY8ZJDLO76ixTsJQ TYDg== 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=nb7VDvGtUd61Q2lm+4R8vYY88TsKHKFvuKmWtNaakLo=; b=t+NU+oF1jGc4BIH5fHuPA9wiWpho1nDttOawJTqQKb5qDzlV0GGGQLUAVPIBaL9ywG lpYt/8vXQSE+beskm0VUn4z8j0g+6bOtnUJmi/pEri+ScBcb+dz3Jae6JE7QQvQAgVLW OH+mOWuAnOXaTIwcX1zrMfdDcATkdhE8Y7TcdbYbwLqos2aGcBeRVx3T17DqHqwfK400 08aXRhU7WyU3i/GI4bfYvTfeC0XusfAaA8ijMPTOASCQdy7SOMJvuMGumXFR/P/w4JOS qnAJJwcXVr1BIURcWjp7iHCppbTuQHlamXWk9l5IlT/3t0N+NiyrpQ5I0cRXsWY91jIE mIEw== 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 g12-20020aa7c58c000000b004fd23c8cf1esi8011034edq.52.2023.03.22.19.29.51; Wed, 22 Mar 2023 19:30:06 -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 S229836AbjCWC1o convert rfc822-to-8bit (ORCPT + 60 others); Wed, 22 Mar 2023 22:27:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjCWC1n (ORCPT ); Wed, 22 Mar 2023 22:27:43 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4175976A5; Wed, 22 Mar 2023 19:27:42 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 32N2RANx8004889, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 32N2RANx8004889 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Thu, 23 Mar 2023 10:27:10 +0800 Received: from RTEXMBS02.realtek.com.tw (172.21.6.95) by RTEXH36506.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.2507.17; Thu, 23 Mar 2023 10:27:25 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS02.realtek.com.tw (172.21.6.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 23 Mar 2023 10:27:24 +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:27:24 +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 3/9] wifi: rtw88: mac: Support SDIO specific bits in the power on sequence Thread-Topic: [PATCH v3 3/9] wifi: rtw88: mac: Support SDIO specific bits in the power on sequence Thread-Index: AQHZW3PlqLj+UWfFjEGFnKGBTGPw0a8Hpt5g Date: Thu, 23 Mar 2023 02:27:24 +0000 Message-ID: References: <20230320213508.2358213-1-martin.blumenstingl@googlemail.com> <20230320213508.2358213-4-martin.blumenstingl@googlemail.com> In-Reply-To: <20230320213508.2358213-4-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: RTEXMBS02.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 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 3/9] wifi: rtw88: mac: Support SDIO specific bits in the power on sequence > > Add the code specific to SDIO HCI in the MAC power on sequence. This is > based on the RTL8822BS and RTL8822CS vendor drivers. > > Co-developed-by: Jernej Skrabec > Signed-off-by: Jernej Skrabec > Signed-off-by: Martin Blumenstingl Reviewed-by: Ping-Ke Shih > --- > - add sdio.h include in patch 2 already (instead of patch 3) as > suggested by Larry Finger (thank you!) so the build doesn't break > during bisect > - only set RTW_FLAG_POWERON when applying the power on sequence was > successful (thanks for the suggestion Ping-Ke!) > - fix smatch false positive "uninitialized symbol 'imr'" in > rtw_mac_power_switch() by initializing imr to 0. Thanks for spotting > this and for the suggestion Ping-Ke! > > Changes since v1: > - only access REG_SDIO_HIMR for RTW_HCI_TYPE_SDIO > - use proper BIT_HCI_SUS_REQ, BIT_HCI_RESUME_RDY and BIT_SDIO_PAD_E5 > macros as suggested by Ping-Ke > > [...]