From patchwork Fri Apr 22 14:50:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Lo X-Patchwork-Id: 565214 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B01EC433F5 for ; Fri, 22 Apr 2022 14:55:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1449008AbiDVO6j (ORCPT ); Fri, 22 Apr 2022 10:58:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1449031AbiDVO6c (ORCPT ); Fri, 22 Apr 2022 10:58:32 -0400 X-Greylist: delayed 280 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 22 Apr 2022 07:55:38 PDT Received: from mail.kevlo.org (mail.kevlo.org [220.134.220.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0241B5AA61 for ; Fri, 22 Apr 2022 07:55:38 -0700 (PDT) Received: from localhost (ns.kevlo.org [local]) by ns.kevlo.org (OpenSMTPD) with ESMTPA id 62f7c6f5; Fri, 22 Apr 2022 22:50:54 +0800 (CST) Date: Fri, 22 Apr 2022 22:50:54 +0800 From: Kevin Lo To: Ping-Ke Shih Cc: linux-wireless@vger.kernel.org Subject: [PATCH] rtw88: use the correct bit in the REG_HCI_OPT_CTRL register Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Write the BIT_USB_SUS_DIS bit rather than BIT_BT_DIG_CLK_EN to the REG_HCI_OPT_CTRL register for fixing failure to PCIe power on. Signed-off-by: Kevin Lo Acked-by: Ping-Ke Shih diff --git a/drivers/net/wireless/realtek/rtw88/mac.c b/drivers/net/wireless/realtek/rtw88/mac.c index d1678aed9d9c..caf2603da2d6 100644 --- a/drivers/net/wireless/realtek/rtw88/mac.c +++ b/drivers/net/wireless/realtek/rtw88/mac.c @@ -75,7 +75,7 @@ static int rtw_mac_pre_system_cfg(struct rtw_dev *rtwdev) switch (rtw_hci_type(rtwdev)) { case RTW_HCI_TYPE_PCIE: - rtw_write32_set(rtwdev, REG_HCI_OPT_CTRL, BIT_BT_DIG_CLK_EN); + rtw_write32_set(rtwdev, REG_HCI_OPT_CTRL, BIT_USB_SUS_DIS); break; case RTW_HCI_TYPE_USB: break;