Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp799577ybt; Wed, 24 Jun 2020 11:29:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB7BWkkRvWHN3txsuVbWN2rxOCGD6fGR+lMZ6qM6URaFvgXdjhgLggc2+En6xOEnrTKRlG X-Received: by 2002:a05:6402:1d97:: with SMTP id dk23mr9702091edb.1.1593023343373; Wed, 24 Jun 2020 11:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593023343; cv=none; d=google.com; s=arc-20160816; b=eWqADR70krNHRyl9+6VdeS6ko9M/1AjPH3vP2dTbamJJDdTokjjnNPp3zB1dH/0uF1 XYUOTxBgUj/UYF20xT+sLCyL/cZL4iNgZh1J7DuMNU78B+fN20HE8h2wSYP4GU0XqOr9 WuU34frDdqaeVTyDVaqgSQuuCA+pq8Pfp9/zTTnjdzXTybpzvXUDBz2oCOyZRr4tSdyT Agn8rxyols8onfxHOj6fErZHvI6D82szz/MW3+/0X27i1j/f6jHHbAjl122Mum8fLBGD QmTl9FnCZKPv9VpsmAG9rmTWYVHUn2QosGAJZ3q88f3FVfYOmk0aLQhT+Eyr3MqWSCT4 zhEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=mXOnJzYRXh6gx3KlxwDaSuqC9krmwofcKwscj+zT24c=; b=K0QHA+eDOW3cKlJ1z4xCBS6rCWT39cdIKTeSUiEpTCWsD49INOki7wdApqp5/qt2AD D3Vf1Wb55b3PocQ8Flh+2708uai8rRVlJAg5CBlz4zsUPgcBaHb0OVWbQEVR+L3/xgIc YUSjP6EZM+uBOg8FJcEKgliYvaw8GL7DfCGKqTT8GR+QUk0X5QjQRYNjR4+T7PQNKRC6 4ZxVd7uHI9z2o6aoHyQ3e8vblDEMKgGq3oKNlBH0rxRL1YiVq8NtdQl8XbOC2zE/JNoK q2RSVTnr4odyNwo1gTaiKuvFFA/osMZ8XZbcgC4YcVHPM7nmQwFmkW0e29UCyDVesBIE YIVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 ec14si1210742ejb.391.2020.06.24.11.28.39; Wed, 24 Jun 2020 11:29:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405998AbgFXS1j (ORCPT + 99 others); Wed, 24 Jun 2020 14:27:39 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:40802 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404995AbgFXS1j (ORCPT ); Wed, 24 Jun 2020 14:27:39 -0400 Received: from marcel-macbook.fritz.box (p5b3d2638.dip0.t-ipconnect.de [91.61.38.56]) by mail.holtmann.org (Postfix) with ESMTPSA id A3F1FCECDB; Wed, 24 Jun 2020 20:37:30 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH v2] Bluetooth: btusb: Reset port on cmd timeout From: Marcel Holtmann In-Reply-To: <20200624111128.v2.1.Ibae403db54245c458d14297f1892c77c5055da41@changeid> Date: Wed, 24 Jun 2020 20:27:37 +0200 Cc: Rocky Liao , BlueZ , ChromeOS Bluetooth Upstreaming , linux-usb@vger.kernel.org, linux-pm@vger.kernel.org, Johan Hedberg , linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20200624111128.v2.1.Ibae403db54245c458d14297f1892c77c5055da41@changeid> To: Abhishek Pandit-Subedi X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Abhishek, > QCA_ROME sometimes gets into a state where it is unresponsive to > commands. Since it doesn't have support for a reset gpio, reset the usb > port when this occurs instead. > > Signed-off-by: Abhishek Pandit-Subedi > --- > On Chromebooks with this chipset, we encountered cmd_timeout after > running suspend stress test for hundreds of iterations. Without > a recovery mechanism, continued cmd_timeout failures eventually caused > the suspend stress test to fail. > > This change will just reset the port that the Bluetooth chip is on when > cmd_timeout is encountered. At the very least, the driver will unload > and stop affecting suspend. It doesn't seem to restore the BT controller > to a good state however (this still requires a power cycle). > > Changes in v2: > - Renamed btusb_generic_usb_cmd_timeout to btusb_qca_cmd_timeout > - Updated commit note > > drivers/bluetooth/btusb.c | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) patch has been applied to bluetooth-next tree. Regards Marcel