Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp393390rdf; Tue, 21 Nov 2023 05:50:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhCHuWdhcxtDvUT2QJKGJlCOcQq9Ldk7axxzuW32kZyx10XpTPnKpc4Mp00/iq7P9XP2KN X-Received: by 2002:a05:6a20:3d13:b0:18b:1f5d:b706 with SMTP id y19-20020a056a203d1300b0018b1f5db706mr20675pzi.34.1700574602780; Tue, 21 Nov 2023 05:50:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700574602; cv=none; d=google.com; s=arc-20160816; b=PqOwu9YoVp3U1ITK/PFD16E3DCYHhFXjze4XR61E/VJrt6qRlmYFeWkIVbyG8ffNl+ /+dlHpN/Vq34XZ08EKuARffgQKGRpO2hISsT8AxILb6X4G3e1xVskdRfvtKEpbxz8ZvE ADUumuN/wfgaZXa8hwzKmZoumwD3XOVSIOBzq92/tBTbsXfTw8bjtclQkOZhdHApeXpV L9EU9QueVqv64ixTrOKCC/WIKSPkqTNTkCwSCV+Wnt5J6m72o0lOyb49cTHml0pOXWga eHl4tJGAlQA+cLsjOv2O+hdiw4zcjFldY2oEJsSuHH4xeGE08O5+Q08ibga/qQv+IGPY bJeA== 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=g/A49DwVQl397J89vxVGtwZABV4VV/LqZYug2kVrmm4=; fh=OABQohn1TWHXYlwNfqAVto0nGsD+tROmn4UFitsFjwk=; b=rhy2Fj8uxd1av+7nU0uLMJXO/2CzMQ41vwe+srXXdmgUnB4caGlLCpHWCbqh1aoZ20 m3DbU/93OqIpZVGd3gqWMfOLid/7qhVZDHHrJqwyrGiDLhD8JM4jVic3+ou8xUVtYPPv jeBbzUpHREPd7w26zHpYUPjnXYI1Nxf7gT7jBHJUD3PdGsEagBjo6LPP2HPIQR0P7mc5 skZgxT6d4gzRxbIOeKyzS4QHoFHRrGP6H94QRGmH8fWIhALVaSB/CEmbZUsEmLxMI08e YZci5K1TGd1yWS76NImDAuHMLLIsDHZReQefhqET1w/OdfyPNLqQTF93iQxonyonCy1K BEjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Clrx6vhz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t12-20020a170902bc4c00b001cc3b988fcesi10231537plz.187.2023.11.21.05.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 05:50:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Clrx6vhz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 25059804DDBE; Tue, 21 Nov 2023 05:50:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234273AbjKUNuB (ORCPT + 99 others); Tue, 21 Nov 2023 08:50:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbjKUNuA (ORCPT ); Tue, 21 Nov 2023 08:50:00 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ED6D125; Tue, 21 Nov 2023 05:49:57 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE9A7C433C9; Tue, 21 Nov 2023 13:49:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700574596; bh=vF4LkQLYcuqRQJyYUrQVjvPfs/5O3qig6tC9j8drZog=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Clrx6vhzFPyv2yohZc47Qd06hxwulyJMXR0zF8G9mAcsExaH8j4bz0DLhcFG1fY46 h7G5U5C5rx1d3pE3of9XMYTBQAyoIBodIfiakp1AYhJGa+DSnJC+86JgjLmP0qmT8v 2QLaWXUwtfguQs4vf/7TMEt+cZBL+A7BEE5ROpl5seJ/9/x7xn0E8w0elP4pStnTar G4iDjBKIl0lBh3K15cykqYtWH+xjDv01/F+GxJN4Hl2HuaIEtsn4zBs02BMikWMMkf MsMUYD1FEeYJXX0/2lPrQ39Um2EYCL+YBp3pIYrw81TomowSnX1QJYszstRjcKySai 6IguUM2/CCpDw== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r5R8i-0004sr-2u; Tue, 21 Nov 2023 14:50:08 +0100 Date: Tue, 21 Nov 2023 14:50:08 +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: <0b627853-78fb-4320-84e4-f88695ac6a9e@quicinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 05:50:01 -0800 (PST) On Tue, Nov 21, 2023 at 06:25:37PM +0530, Krishna Kurapati PSSNV wrote: > > Specifically, I consider the current implementation to be broken in that > > it generates wakeup events on disconnect which is generally not want you > > want. Consider closing the lid of your laptop and disconnecting a USB > > mouse before putting it in your backpack. Now it's no longer suspended > > as you would expect it to be. > 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. > Also, the warning you are mentioning in [1] comes because this is a > laptop form factor and we have some firmware running (I don't know much > about ACPI and stuff) ? No, the "firmware" in this case is just the devicetree which has the DP/DM interrupts defined as edge-triggered while the driver requests them as level triggered. (It would look similar with ACPI firmware which also has these declared as edge triggered.) Johan