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 39E4EC61D96 for ; Tue, 21 Nov 2023 13:50:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234340AbjKUNuB (ORCPT ); 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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