Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp408379rdf; Tue, 21 Nov 2023 06:08:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIq2RU58T2GTW/og4o/lr++RTMsQzTAM9OCHAOeaMuh08/c19z5Y1out3xfD2/0SmAaaHc X-Received: by 2002:a05:6830:922:b0:6cd:a9d:bc57 with SMTP id v34-20020a056830092200b006cd0a9dbc57mr6039321ott.32.1700575737684; Tue, 21 Nov 2023 06:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700575737; cv=none; d=google.com; s=arc-20160816; b=aSivIToPxrxBvRSFT+TCsHEQpHuDXGOL2OFEkSc0kMfNxWG351l6oEUT0wOzXc86ih UxbEm03aJLcwgxNOiQOuPVr6YKbie6RBQI4EP7sqtkO8wabj8gUy0l2A0dnFf2coeQ/s Ael2jXSZiROZRW3g1zKZUpOSj/6eFUkVUnBmoP3j181enDQQ0mAhTnC5WBTbzGJJzFCb 2FTxDqTadFWdEr6WTeGmzCBmL2gcur7nTmGVBo1iA9fCzlUpHGAk6YxgGyTT1AuMsvhA rPcN4oMTgH0A8EuFEaMv72eTVKhIFcjgCObhoBYCDaaOxeOieMX14TnXgCxFMF0C9Ule fPLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=POpR3zBeE/oq6Awlmfos35Xeq30KeghiCZoFjDFpWoc=; fh=CYXAofUv36pY8fWWewtW2Gitlmw/m/sAr/oSpq01tdk=; b=lKPCkrLZVEeUZKVywdaStJ0XPTto0KdxoZ53l+B1/R9KXdWbNRclH3CFTFpp7p2ya2 u1VKNfiSocRnLZOJxxfTdmwXrT/IhNi4v4m70E7io2bnfZpZGAOBg68UoK5ac7CjxWtw LGmde758hJ6GAn9R48h4W3hD08ZjtUgv5VPhK2ac+dpXozabqWSgO9cs/F20l6GaVsPI uoQBB9rW7gumMDeFYcIZSB81YlK3nX/sOaGvDaK0xD/uKcV6IYtC8mkuLwev7A0IcqZJ 7q8akyGgZCS7hdG18dfu6nC7Jv7a3dONgDSxwtVpeAZSFj5UztNEItHPEDG7Bmr9KK8i 27Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Qp7XNg9Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id d26-20020a056830139a00b006cd0a89f3bbsi3659347otq.225.2023.11.21.06.08.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 06:08:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Qp7XNg9Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C46B8808D4B9; Tue, 21 Nov 2023 06:08:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234040AbjKUOIq (ORCPT + 99 others); Tue, 21 Nov 2023 09:08:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233881AbjKUOIp (ORCPT ); Tue, 21 Nov 2023 09:08:45 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2BA5122; Tue, 21 Nov 2023 06:08:41 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ALE3BQd003689; Tue, 21 Nov 2023 14:08:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=POpR3zBeE/oq6Awlmfos35Xeq30KeghiCZoFjDFpWoc=; b=Qp7XNg9YBUTHvs9EeaEW6fccrXMgVNjjYNF+a3pepF2PSuGb+F6NZTwzRu8Ppxf6O4db pYeLMrw86Ow62TMPrh4SAs827vvv0iXO23hr5AlCUklN2KWbLHk9bzCNyT9J7ypp2o5C eMel6jEYBfr3xS1o4eqT4nqwFZ+J52NC7L/3jGViNpUMrRBGyuVadke8msuC3VxRrma8 TUIDhNAaumgE/EeL/FfaDfyin3zmUMNr9Uuwp37LlpZkCxS8N3sWN70Nf7Jwm/BHN8gD ySaiI5jqY9tL50rYroQTVQAju+DKUkkNnf+4Zn4YG8KOEEUeFSAjn9SHpMZGi/jiEF3I Eg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ugcqs2qtr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 14:08:28 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3ALE8R0q012819 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 14:08:27 GMT Received: from [10.216.58.75] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 21 Nov 2023 06:08:22 -0800 Message-ID: Date: Tue, 21 Nov 2023 19:38:18 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] USB: dwc3: qcom: fix wakeup after probe deferral To: Johan Hovold CC: Andrew Halaney , Johan Hovold , Greg Kroah-Hartman , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Wesley Cheng , , , , , References: <20231120161607.7405-1-johan+linaro@kernel.org> <20231120161607.7405-3-johan+linaro@kernel.org> <3ff65t36p6n3k7faw2z75t2vfi6rb5p64x7wqosetsksbhhwli@5xaxnm7zz4tu> <0b627853-78fb-4320-84e4-f88695ac6a9e@quicinc.com> Content-Language: en-US From: Krishna Kurapati PSSNV In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: YeSi6sONWbW_gTpRreo2ZTUy8U9Np8im X-Proofpoint-GUID: YeSi6sONWbW_gTpRreo2ZTUy8U9Np8im X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-21_05,2023-11-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 phishscore=0 bulkscore=0 clxscore=1015 mlxlogscore=420 mlxscore=0 spamscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311210110 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 06:08:54 -0800 (PST) >> 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 ? >> 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.) > Got it. Thanks for the clarification. Regards, Krishna,