Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4388285ioa; Wed, 27 Apr 2022 02:43:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWSFEys2VrApt/QZtHcUlmHPHvz7fHJ2NTOXXRvg00le05VjJbGPEulpxb8FhmblvCDEjv X-Received: by 2002:a63:115:0:b0:3ab:1c6c:c26b with SMTP id 21-20020a630115000000b003ab1c6cc26bmr14928320pgb.448.1651052616549; Wed, 27 Apr 2022 02:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651052616; cv=none; d=google.com; s=arc-20160816; b=xq2ffMuXEGGt61GG8T+X/z2aoMhH1uzhmheKYtV2eknxdstH5APnutaUkjDesi4BMZ 9wuwlvB6adcaZDxSmD4TRUujp0yZbJP3Hoht288j31PM2+anZnU6CM4L3va+D6lQzQQm PmqQ1zFoJyL6Z97QSeGK3HcK/M1GSUeA1IQDdhYebw0TUax1X5NIOuUSwf7mSOLKEOrY RZ9ASUPzjZzRKcWmdsZcta3vumGoMUouiobj/hhzoEWqFDg5XN8C4Owgjg5y/ZpaUgdo jwJSu4IJ2VjkWRlHV1SOicqZ3cKnK+VAU4j5SAtKxFKDno2vQSzxc/24RlMy6t9nSmOW Krdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=+sFBYq7EX6YuUCEwN0OBN2CQOfQIzzZR0PLI2e14udI=; b=OpVnPyYvnkaa88Qz/tV3yYsKwuBT6ASCrJE1e7kMRNtqmVh/ZVnIrJuCtczGHD1Oz1 n80Zh9bTREpA74wvFRRKbdLzv6Ch7vkCe4fWMvy5MxZEYbgAAGmchGBtZ7nu+s11n9WW YbZyBta++mwwxHTLHoer++g1i5wHiphjpoUnalXgUQN3EVjZdChWGAIh55j9Cxzy2CQl bXlC+3V+urKw3PqqGjmOuP1ZfUw1xqzuMQEdy4SYrMbL77sbHGveg3ejt1bOiViIb5pt i4GoqOnOqz3p8R8//nHiX6LVn2KyjPVTbjaa4d54GDytDjiKNV7Lcks3q+GlCOigDfUE l/6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="NssHRyF/"; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l129-20020a632587000000b00398989698d4si958205pgl.647.2022.04.27.02.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 02:43:36 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="NssHRyF/"; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D6AAF27C160; Wed, 27 Apr 2022 02:18:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242049AbiD0FBc (ORCPT + 67 others); Wed, 27 Apr 2022 01:01:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238018AbiD0FBc (ORCPT ); Wed, 27 Apr 2022 01:01:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78C296E8EE for ; Tue, 26 Apr 2022 21:58:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2B9A4B82489 for ; Wed, 27 Apr 2022 04:58:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AFDBC385A7; Wed, 27 Apr 2022 04:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651035499; bh=Ts2XD2XsA73WLoBZTjEFo55IHoMaLFjcRnd0f858bnE=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=NssHRyF/bau6XIVo6yYSC3qxFTbfjaaqHgQZGub63MR05UJXgZjkDIDETxgIg/pj5 7dKiKq8QXfUEp2qrcL9wOBZ6ZV8//O1nmcsQ2O+orfSroY1XWpjLbIUsWLQNgRq/iI KI28wTAyhP3OYckyvOXG+O2vsedeqESP+Fg/HYL4k+9dCqybNgunECpAJI3sZ3HH7n gQFvYhXaQDauhg6pxFvGoIbcvkULfICWT5xTxaB33bKaZywr6G/Hi+FrnDODEhO2qy PBP4kNPdkUSe1+BBzudkDYsSxUt2b2reV6cAu/LnlNsIB70S8Ac8a4vdjlPgZQXQ20 JyfKYchaYYZwA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] rtw88: use the correct bit in the REG_HCI_OPT_CTRL register From: Kalle Valo In-Reply-To: References: To: Kevin Lo Cc: Ping-Ke Shih , linux-wireless@vger.kernel.org User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <165103549637.18987.9142437749277361997.kvalo@kernel.org> Date: Wed, 27 Apr 2022 04:58:18 +0000 (UTC) X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE 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 Kevin Lo wrote: > 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; Patch applied to wireless-next.git, thanks. fc6234d7e2e3 rtw88: use the correct bit in the REG_HCI_OPT_CTRL register -- https://patchwork.kernel.org/project/linux-wireless/patch/YmLAzuyPr0P4Y6BP@ns.kevlo.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches