Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82933C28CBC for ; Wed, 6 May 2020 20:01:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 678562075E for ; Wed, 6 May 2020 20:01:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727857AbgEFUBe (ORCPT ); Wed, 6 May 2020 16:01:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbgEFUBe (ORCPT ); Wed, 6 May 2020 16:01:34 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAE3BC061A0F for ; Wed, 6 May 2020 13:01:33 -0700 (PDT) Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1jWQEU-0002mg-0L; Wed, 06 May 2020 22:01:30 +0200 Date: Wed, 6 May 2020 22:01:29 +0200 From: Sebastian Andrzej Siewior To: Tony Chuang Cc: "kvalo@codeaurora.org" , Pkshih , "linux-wireless@vger.kernel.org" , "briannorris@chromium.org" , Kevin Yang Subject: Re: [PATCH 28/40] rtw88: 8723d: Add shutdown callback to disable BT USB suspend Message-ID: <20200506200129.suid6lfkdwuoapzl@linutronix.de> References: <20200417074653.15591-1-yhchuang@realtek.com> <20200417074653.15591-29-yhchuang@realtek.com> <20200505141455.k2mk7tmuiujfv2sh@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-05-06 02:35:21 [+0000], Tony Chuang wrote: > > On 2020-04-17 15:46:41 [+0800], yhchuang@realtek.com wrote: > > > From: Ping-Ke Shih > > > > > > Without this patch, wifi card can't initialize properly due to BT in USB > > > suspend state. So, we disable BT USB suspend (wakeup) in shutdown callback > > > that is the moment before rebooting. To save BT USB power, we can't do this > > > in 'remove' callback. > > > > So you can't initialize the USB part because it is in suspend and the > > only way to avoid it to disable it on the PCI side. That means you don't > > see it enumerated on the USB bus at all? > > Yes, if we don't disable it on PCI side, then the USB part cannot be > probed on USB bus. We talk here about USB's runtime-suspend / autosuspend? If so, are you aware of commit 7ecacafc24063 ("Bluetooth: btusb: Disable runtime suspend on Realtek devices") or is this an attempt to get rid of this change in favour of this one (so that the device can enter suspend-mode)? Sebastian