Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1328246ybk; Sat, 16 May 2020 07:55:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyb7fSCv29BMYzop5T5Z4azR0wnSZp0u82P8aHbR/PsL7VzGmZkmFSMnryRff7Nfp22uiQZ X-Received: by 2002:aa7:d284:: with SMTP id w4mr6902736edq.223.1589640905674; Sat, 16 May 2020 07:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589640905; cv=none; d=google.com; s=arc-20160816; b=yDg2a9/Ip9zFGSsSwZxlxuJaUMlguRZdmGVG9MvPNdEAapGVetBVkDzS1tnF1GGGQ9 OTol/bYyvxqAT44f21hh7+sBPJOy81Vobl8FMnp+ilI7r3/1IKMrvjeWm1jfSFcuslOQ EYnf0SmiVTExSGd8tCEXBawnCUdzzdcxL+J4A79W4n4I4PAI9MbrJ/j8k+UsKwQAZiqZ 6AUlRgWI2LNQCI1DVo4Ri/cF7x/nNj+Urz6zVGsMBIG6vl8zN5aOCZ1bKm4kFPWWs8Ad 5WvMv9Fz8l43xqAcBnkKrBl1dYxFqpwigPCSMY4vh2L8R6FuQpDq/CD3M2M7Xk3S1Wn+ Gt5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/R7FZYkm1h1RF7Ix3tmJeVhft6oJaaHI7tvAfInMsS4=; b=jzn4o3chBTGvWKzkG7IB47CpoZiMDwkuy0dcQOa4hFHvi9oLhYC6Dtp++1Q+CRtjWZ DXwJWMdRVWhjj5ZAHkMtrIT//D2z2FPeYDxs/fIeAA6SLdnFYSNsRuu1j4tPnnyRQeqD lA6uQi4Vn5VzwS4mqaocfjHZNxQeoe8ZVEKLFEe7uA6Gtd6Xo2PkN3AeS2x2N/NANnlU 7xglwPfCIwWnBKuspEEuLTcSli9+537sklcUKKyETal/5Ko1Z60jK1AUk3SeKTxTaiYf 0jvrnxeNsCGYETm8/uQ6vtEXnJWbieEJTzMCvsAo7d2Sr+4s637OpEBkV5N4ffUaE5z4 +7mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si3611912edc.577.2020.05.16.07.54.21; Sat, 16 May 2020 07:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726536AbgEPOiL (ORCPT + 99 others); Sat, 16 May 2020 10:38:11 -0400 Received: from mail.kevlo.org ([220.134.220.36]:60397 "EHLO ns.kevlo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbgEPOiL (ORCPT ); Sat, 16 May 2020 10:38:11 -0400 Received: from ns.kevlo.org (localhost [127.0.0.1]) by ns.kevlo.org (8.15.2/8.15.2) with ESMTPS id 04GEIN8V009604 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 16 May 2020 22:18:23 +0800 (CST) (envelope-from kevlo@ns.kevlo.org) Received: (from kevlo@localhost) by ns.kevlo.org (8.15.2/8.15.2/Submit) id 04GEINcF009603; Sat, 16 May 2020 22:18:23 +0800 (CST) (envelope-from kevlo) Date: Sat, 16 May 2020 22:18:22 +0800 From: Kevin Lo To: Tony Chuang Cc: "linux-wireless@vger.kernel.org" Subject: Re: [PATCH] rtw88: no need to set registers for SDIO Message-ID: <20200516141822.GA9585@ns.kevlo.org> References: <20200515061153.GA15714@ns.kevlo.org> <9ba0e2a24a82436b9fe2595d86afccbc@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ba0e2a24a82436b9fe2595d86afccbc@realtek.com> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, May 15, 2020 at 06:16:55AM +0000, Tony Chuang wrote: > > Kevin Lo writes: > > Subject: [PATCH] rtw88: no need to set registers for SDIO > > > > There's no need to set SDIO related registers when powering up/down the chip. > > > > Signed-off-by: Kevin Lo > > --- > > diff --git a/drivers/net/wireless/realtek/rtw88/rtw8723d.c > > b/drivers/net/wireless/realtek/rtw88/rtw8723d.c > > index b517af417e0e..5e0b7999bc8a 100644 > > --- a/drivers/net/wireless/realtek/rtw88/rtw8723d.c > > +++ b/drivers/net/wireless/realtek/rtw88/rtw8723d.c > > @@ -2092,16 +2092,6 @@ static const struct rtw_pwr_seq_cmd > > trans_carddis_to_cardemu_8723d[] = { > > RTW_PWR_INTF_ALL_MSK, > > RTW_PWR_ADDR_MAC, > > RTW_PWR_CMD_WRITE, BIT(3) | BIT(7), 0}, > > - {0x0086, > > - RTW_PWR_CUT_ALL_MSK, > > - RTW_PWR_INTF_SDIO_MSK, > > - RTW_PWR_ADDR_SDIO, > > - RTW_PWR_CMD_WRITE, BIT(0), 0}, > > - {0x0086, > > - RTW_PWR_CUT_ALL_MSK, > > - RTW_PWR_INTF_SDIO_MSK, > > - RTW_PWR_ADDR_SDIO, > > - RTW_PWR_CMD_POLLING, BIT(1), BIT(1)}, > > {0x004A, > > RTW_PWR_CUT_ALL_MSK, > > RTW_PWR_INTF_USB_MSK, > > I don't think we should remove SDIO part in the power sequence. > The power sequence parse will recognize the HCI interface. So the > SDIO settings will not be applied at all. We can keep them here until > the SDIO module is added and supported. Well, I thought only usb devices will be supported by rtw88. I'm happy to see rtw88 SDIO support, thanks. > Yen-Hsuan