Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp428067rdf; Tue, 21 Nov 2023 06:36:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8gD1gqcdHqYYmLMVrSqoqNKNxybbFuKpCDPOL+0jA0N5+lR7VD6C0Wumd7nh7mfFrDmzT X-Received: by 2002:a05:6a20:12c4:b0:187:dd5f:93b6 with SMTP id v4-20020a056a2012c400b00187dd5f93b6mr10596078pzg.43.1700577397036; Tue, 21 Nov 2023 06:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700577397; cv=none; d=google.com; s=arc-20160816; b=D2SsdL1dYaCENMW4u9zagv5NDpH6458moM/cX1Fw7m81HrmSydvZLzh+yUkO+YlnFw QWwch99hYfXG+wf9TKefd6tRjt9I8hW2gxvhcA+T95qjuomkhC4fI3UbdbiggHOjcQ8z +WfiAigN8xOMBKS0dEuR2ATCIbBW23ZoNVqNlS4ca3yQR9+B9HdgCExBO2foK2b/5PW3 O8bRiL5gRGzw6hJ6z1pyL7hTVQvMs4mp80NsDH4sQ4bpACkVw/rbOXGwOPCEZ+dEWdFh cZhWhcFl9wA0ZnlPjdDxNucobV1Lpe3Y37Jla1Degpz01pwEbFfesoqSaF0JDdfWUsgw jNYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pQHjfPn337HHwtFlDURz38R81rSvQXbhWpZpY3yp0ow=; fh=OABQohn1TWHXYlwNfqAVto0nGsD+tROmn4UFitsFjwk=; b=IdD1l3rAngFCw7T1ACBh1LoRyvSc/q/OyFVUlhcK3dogD94kzSgNVK1xm5UMWW7tm/ nRvI3cKLUtnYcCce0g2T1FtZq1cR0Gkzb82QlVzqhgAK0jvWRH1+aaiR+G/tVn8VvcXu k2Z/x0W7bTQXH1rICxkk6Ba9bfCFWu6fXmBQBv3wA+TXPQw6dIGHTTuZpiqBvB7WY/5Y qE9IoI90+OxxfclhvGSWU7glPC7sRAsOoDNPj5qokmiBZ520TPhC4OyXJF/n/UsyuS4X ohm/QhhjPRBpRlotAo6x5WtiQ/YowIAXL8yIO78wlJyHCiXRQa3B8X9R6RkSh3387RdW CWqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GXydgTaE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id x18-20020a63fe52000000b005bddb417affsi9812279pgj.291.2023.11.21.06.36.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 06:36:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GXydgTaE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 94DCC8076646; Tue, 21 Nov 2023 06:35:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234416AbjKUOf3 (ORCPT + 99 others); Tue, 21 Nov 2023 09:35:29 -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: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 06:35:43 -0800 (PST) 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