Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp133456ybj; Wed, 6 May 2020 13:21:50 -0700 (PDT) X-Google-Smtp-Source: APiQypKzPgPweJIzjYbVV03F/otUVRLoXdZnDDRX5ocvJutjZb6Rte2rdqadSOSQTKC/APrswjon X-Received: by 2002:a05:6402:22d5:: with SMTP id dm21mr8459469edb.275.1588796510217; Wed, 06 May 2020 13:21:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588796510; cv=none; d=google.com; s=arc-20160816; b=dKW/72+6hzs/XjcyeO0CkLBvf9Fe5jnjRl91zHD65RovRY5eIeDxuFYXJWCiCEsJsJ oymP7Qgb9d1g9MIKoxvMiZ3HQTXFx0jvgAOMRWhA/9+0V2zK01e4FhdksyzFGdDTRc7P Sv1S9UNbBqOIaxKsG+i0vsqC16jdhzqZEHWiteu1B4H57yFqdw93qEK88SpCJ29d0xUb 5X4MVIZjn+Fo2TLvPcbGlQM07zrwHKpT9nf/POSqoseGfA9E6fQbyzxXM7C6O6Geb1dB gYS/fqODbJef73H+SENE9crTN0nficlJC8x1Iq/bX4D2cwptGC0yq0mlCA86O3C4z/la sZQQ== 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=oBcRG3T6pO9SUGIvx6hJkA38LN9Fx8VhtcdbetaJDY8=; b=s99eHBC9oLAqvAHNPVfNPnkqJT5vtAf3In1FvEQ7m48EiiSIm3aIJ2g54ySWFtLqfW ztugHHjOgb8fDdKFPrIoca1Rk6eunu4Q5fjmGVmg8TAzarY1jPSVbRIRPvLSj9K2pOk+ z6QpeANqm2OqvPgMkXyNSLdBqhX3yeOkf8WQCw/gMG5B/KRKBr6ZvhMmVwOcFxZxylG/ DuG9GHdNC21PllekquAOVdRoRBIdh0Xh9J1xOcbetb+vT/LHO8NpZlQxODdsqptmqMva WlMFoAwbvqFmqtJN4m2hkMUx+SKcM/OTA/gfdYVkURx8iLcjKR0iXt92zATbFN5wh2Qd UzEQ== 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 cb14si1688870edb.529.2020.05.06.13.21.25; Wed, 06 May 2020 13:21:50 -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 S1727857AbgEFUBe (ORCPT + 99 others); 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