Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4874394imu; Tue, 8 Jan 2019 07:44:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN4EU2XiIjTOa4/Du/Wfc8NNESYniCAQ0uIy99E/4DCtLqBCjbmz5h5VXLuopVFJNtbN1Gvh X-Received: by 2002:a17:902:4523:: with SMTP id m32mr2236119pld.53.1546962247658; Tue, 08 Jan 2019 07:44:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546962247; cv=none; d=google.com; s=arc-20160816; b=ngrODd1qL0Z6uxk/HiJyMnV4rYD+9+u3WTn8U8Iv7bu++Ci+LTILPui/t+YcIBzbhR 1uPkKNjb4tQ6I1dsJ/7LFqcaYtvFprqkXqnEPe/498l8gXWrpON8oA1eccStXVlxO9jb khbAG4Wku9hmDIQ2ucnjm2p1vVptMyHp6qFQFmyzhuV3TPGfqTS7hOWa/6Ilg75qp3YJ j8jPaEXvaxFhV0M+wf9LO6VgrTD28UFskYCisxZcevp48Du7DbnL+oeVozzBiXTl2M+B JRKAHLOOJO/exFK/xCuWq/wyb4zjXDa69kbf6/bZ9j43x9Qwxs80fRMF1whxtSl+06g+ Y/VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=T2ChRXnEsbTqxMuov+FvHNHiMwrC3x8jVx5V5plHzoc=; b=KQbU9TDi4Wd+8iP1cacnu25TyD3AY4dM9U3Idc1bRRSUpcZSyGlQoCMePIu1OUX5Hu wPVkvv3sbybcVgvHSr9htH9X2MCO8q2dJUUYM6zsPFSO0l79TCD8vZ99uLjhCrrwiEkc u/Dvz+KEUddVXSLza/tm8BcFAoIKM3jiF2m1fM7eQZ23jhm3eJFI8mW0/kJNGsihrWyZ NchtN7BNKjBT5p1KXZ0ENtg9HDwjcbtaUOrSYfaCSPXWmbuvbaGsHHO9jUvj5i6TZmpk tzofWYqE9ypdsgrOak99uHk0oVgzZzeG2LIb+QtXrk2HFt8JbO4zPeuh5r7EwzsjnTS2 577Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mrkiTLj3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10si44785771pgl.209.2019.01.08.07.43.52; Tue, 08 Jan 2019 07:44:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mrkiTLj3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729054AbfAHPmA (ORCPT + 99 others); Tue, 8 Jan 2019 10:42:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:40048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728123AbfAHPmA (ORCPT ); Tue, 8 Jan 2019 10:42:00 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 56B2D20883; Tue, 8 Jan 2019 15:41:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546962119; bh=gL3eZlgLiao5BI/NFvLeEEo4CLqKI7dbNQXD+1fOR3Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mrkiTLj3tC7qP75D5SPWVakCMMbc9xutG8o16tlYH4FbZWp9AI+F3x97OSbz0VgSk +7afYSER1cNT7gzG3GpvYH4eiq3vNgVmIWyTda4wtsxy/S6oX89MnsXVsAfAr+mres pMJ2CS97qjX48GFnmAMY0Tg/koTykM92dp7V0rZo= Date: Tue, 8 Jan 2019 16:41:57 +0100 From: Greg KH To: Kai-Heng Feng Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] USB: Don't enable LPM if it's already enabled Message-ID: <20190108154157.GA20561@kroah.com> References: <20181203102643.22690-1-kai.heng.feng@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181203102643.22690-1-kai.heng.feng@canonical.com> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 03, 2018 at 06:26:43PM +0800, Kai-Heng Feng wrote: > USB Bluetooth controller QCA ROME (0cf3:e007) sometimes stops working > after S3: > [ 165.110742] Bluetooth: hci0: using NVM file: qca/nvm_usb_00000302.bin > [ 168.432065] Bluetooth: hci0: Failed to send body at 4 of 1953 (-110) > > After some experiments, I found that disabling LPM can workaround the > issue. > > On some platforms, the USB power is cut during S3, so the driver uses > reset-resume to resume the device. During port resume, LPM gets enabled > twice, by usb_reset_and_verify_device() and usb_port_resume(). > > So let's enable LPM for just once, as this solves the issue for the > device in question. > > Also consolidate USB2 LPM functions to usb_enable_usb2_hardware_lpm() > and usb_disable_usb2_hardware_lpm(). I thought I asked for this to be two different patches. One that does the "consolidation", and then one that fixes the bug. You are mixing two different things here together, making it harder to review. Can you please break this up and send a patch series, with the correct "Fixes:" tag added to the second patch that actually fixes the issue? thanks, greg k-h