From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BED2EC61D85 for ; Tue, 21 Nov 2023 14:35:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234457AbjKUOfa (ORCPT ); Tue, 21 Nov 2023 09:35:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234014AbjKUOf1 (ORCPT ); Tue, 21 Nov 2023 09:35:27 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DD8FD56; Tue, 21 Nov 2023 06:35:24 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9156CC433C7; Tue, 21 Nov 2023 14:35:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700577323; bh=lzjdq+xR1tjd5//XRTySWMSukAT4qx2YCGmo6ZbzhGQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GXydgTaEmXbfaj7JDcggt+Bmu+BXvOM6FORELUn5GgCT9o2pfn+AgeulbjOZoVnC+ 7hZGdDBsd8q5EUCHWfWm7ZB8NSSRRr1qDELwQCSkXRDQvVP6Efa3cjQCFm92hYXJEL zPqzyaIU+kCTMnauyAQ0P2qfld2mFrXTi7z32RJQGyC9zxQHx60mKxQN2rDM0FoCCH tZZJDLv/+fSH71lA58r14TXL5FG1I7N+5kjD6KRub3cEUsl2fmPmaC6NI9fdtW1Vmd gdsaoIqqARCGnpLNH+7rjCdmx9JO6gLvZulebdC1IG5HvnYDUxH2NvP7Krg6g+kwPS 6XRUtHBa09OTQ== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r5Rqh-0005lu-0x; Tue, 21 Nov 2023 15:35:35 +0100 Date: Tue, 21 Nov 2023 15:35:35 +0100 From: Johan Hovold To: Krishna Kurapati PSSNV Cc: Andrew Halaney , Johan Hovold , Greg Kroah-Hartman , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Wesley Cheng , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 2/3] USB: dwc3: qcom: fix wakeup after probe deferral Message-ID: References: <20231120161607.7405-1-johan+linaro@kernel.org> <20231120161607.7405-3-johan+linaro@kernel.org> <3ff65t36p6n3k7faw2z75t2vfi6rb5p64x7wqosetsksbhhwli@5xaxnm7zz4tu> <0b627853-78fb-4320-84e4-f88695ac6a9e@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 21, 2023 at 07:38:18PM +0530, Krishna Kurapati PSSNV wrote: > >> Just one query. Even if it wakes up after closing the lid and removing > >> the mouse, wouldn't pm suspend be triggered again later by the system > >> once it sees that usb is also good to be suspended again ? I presume a > >> laptop form factor would be having this facility of re-trigerring > >> suspend. Let me know if this is not the case. > > > > No, we generally don't use opportunistic suspend (e.g. unlike android) > > so the laptop will not suspend again. > > > > So this is an actual bug affecting, for example, the Lenovo ThinkPad > > X13s. > Thanks for the clarification. I was thinking in android perspective > only. But if we don't wake up the system upon disconnect, wouldn't the > controller still be under the assumption that device is connected when > it is actually not and only realise this when we resume later ? Correct. Johan