Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp769136ybj; Tue, 5 May 2020 07:17:55 -0700 (PDT) X-Google-Smtp-Source: APiQypJtCo7Y18jrNBIZ+eLMls9btaJTZ4x3RImIWMc/iS+PyKlNQdEMDujZ5GNiLANJxqO7hsGj X-Received: by 2002:a17:906:4810:: with SMTP id w16mr2852863ejq.226.1588688274879; Tue, 05 May 2020 07:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588688274; cv=none; d=google.com; s=arc-20160816; b=y2BX2HdiqZOBpgdX/odNjkAnnPPDN7koEQU0DEjS8MoqYwD7xI+PArOPJ/3Y/PLoxw zaxc2FiEBOjqF6z3IDlOAoxRPFGaH+uevsqOpYuz9Aavsk53Bf40X3Lc+f6LT4lX0z/P dHYlRoQyAMUZLWver+LtGSoSvG/GLZyDLLzwFXxSszuCAllx6jm8/DbhK1MuKkDDCLQY NUQDm77E/8kENlUAOMArc5fOLE+DglW1rS9VHYoUy08S1y6tx4fVL5wrZaF4Ol6Iv5lw YgpXK5yLUiLBNba4g2rtzCeOAUD5HTbUciVmcIzFhrz9kBPl3/r65toirMN98i7c633p tRcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=fdoZKYWwzmbTC9roYGP98Wl4XADF/WVoWTu6mol/mP4=; b=StlAiN7r2MqC6NBrqDp34JO/rWbnCzqqHm3TB2VL2GrHc8GOCdw2emCmpLRDreEB55 iILeqHw3rO96oYT6Tfg4h0jiCUQGGzSv84DsGeG5qUM43ux9wKNwYQ6ssmRkP04QKwTP Vq4dxROcb8Ot88Fv4A1x25VuEHtXuwyFoSWQsB2VBUGpt2O/iTJ30Oacku9NNywHI5sc lNBAxbAh+mbqifhydVZrbC6CVndXPwQN/2At4cU3NG/gk1USv6j1qn+Lo9xOTCEJDZWu m8iDenGDsaDg7HFgBE8csu+hwwqx1KT2tAp6wHNUp8gb0zgRcKGrIrUKWOxgz2yingSg Z+jw== 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 n24si1213857ejg.142.2020.05.05.07.17.20; Tue, 05 May 2020 07:17:54 -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 S1729736AbgEEOPI (ORCPT + 99 others); Tue, 5 May 2020 10:15:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729704AbgEEOO5 (ORCPT ); Tue, 5 May 2020 10:14:57 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5E49C061A0F for ; Tue, 5 May 2020 07:14:57 -0700 (PDT) Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1jVyLX-0001Ge-AY; Tue, 05 May 2020 16:14:55 +0200 Date: Tue, 5 May 2020 16:14:55 +0200 From: Sebastian Andrzej Siewior To: yhchuang@realtek.com Cc: kvalo@codeaurora.org, pkshih@realtek.com, linux-wireless@vger.kernel.org, briannorris@chromium.org, kevin_yang@realtek.com Subject: Re: [PATCH 28/40] rtw88: 8723d: Add shutdown callback to disable BT USB suspend Message-ID: <20200505141455.k2mk7tmuiujfv2sh@linutronix.de> References: <20200417074653.15591-1-yhchuang@realtek.com> <20200417074653.15591-29-yhchuang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200417074653.15591-29-yhchuang@realtek.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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? > Signed-off-by: Ping-Ke Shih > Signed-off-by: Yan-Hsuan Chuang Sebastian