From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795582066; b=Nwo+bsuUsH0Zp656M57Up2XpTzW4a4BOivvUHiP3E8t3UivV0d8pWcFtPlxQatiLSYaG /owP5yiUHqw0MHZzEUVb2qLZEguKfOpbyZmARKnvZKdKIJX7vgyd7ePS2ViruqB/eMoMB tht9oNkKbHF9QZndtRO6/MTIwVnbReQbpi9HDOMqB2bifZR+UmOecRf8QGiSZ4lZ4Po1o vvgMiUP/Ge/41VWcMVl+aBsW+lWJY2FYMHbwjItVR7BkvAiYwYFSBztL0KRYEfKiooDvL CnYsbN8/LyZkN8ZScwKSc3PoJO6DDtFuNIrOL+xFjScIJOlM6qoDMaHNwoMSCmdRNig== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795582066; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Date:From: To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Info:X-Proofpoint-GUID:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=rSqkYmyNVoE9XBExO6aBoa6bFdUh2Fv5AJwQ5ckX7wk=; b=ER/kKMRuuWh17v9+6rvRB7r3w+dxQWAmDJewSODAj3OqrJklzJ6BkwghD3suzKaTjSgT SAsa69+YN3cldYQQK7lCnc+8fNVADTaXloliM4YMK1cEetbaXaF2Ym78dZTiS4NmZqVr/ logbeE2XpTe0OjlH6rRxBKYyuehZ5OSgfyo3Re6Qz2wjYsmecYhUPLUIOdvToGn9ERaVL fqdyrLAsKzzhh1FTgFNwq+Q2Rw/dp4U20V/9uUDtGq13fnn9gy3oi1wzq09Vc41cw6CRK Dxt09EwCGr4qvSmXdEn6zFDrzIrEzl0z5xqfJUVBa2kyUdasOvoOxDskRf5BFPrV/5g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=iJr5sTRg; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=jLO4CE+1; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CF60606A323 for ; Wed, 25 Nov 2026 04:47:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6CF60606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=iJr5sTRg; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=jLO4CE+1 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AP2Aqf31342337 for ; Wed, 25 Nov 2026 04:47:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=rSqkYmyNVoE9XBExO6aBoa6b FdUh2Fv5AJwQ5ckX7wk=; b=iJr5sTRgejp0Wp5Nug0nKmqOkf4Tw8v5Z72geQdQ 5wITPkyCcr3O/uBBuM8fWexRNQjSDWcIsOTQpzWywkp5iZfSFSt7ev4sYcMy8flg s0fILpEr1F2T3uFRvoDm9ncG+cHddeg2wcbHN61ul97Ff46ldKmmt/WoZo+sB8kC cK1QYGA61TQXtdOio4AsZjktTLT6LbGHKDgLOi8NMKWLj6UyKjbEXbXXdyvMvwsg tgDQPVf9gIqvTpQ+bCdkUyeTe91tja9CnoqG0qbWpfglRCkFdqCEpI/8Bvmsd/yy Tbp1XJpj+n8vqpewzcqhWg0Rnn41KcMeplVfj5E1MOKW7Q== Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j5nu68njn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 25 Nov 2026 04:47:40 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-382af5cfc58so5336118eec.0 for ; Tue, 24 Nov 2026 20:47:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795582060; x=1796186860; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=rSqkYmyNVoE9XBExO6aBoa6bFdUh2Fv5AJwQ5ckX7wk=; b=jLO4CE+1b8W7NZef2lkH0Vopj+qJFDBuzpuFH4tvHWafo5Jh+LHNWt2JzIdW8pp+rI EXVc3QlxxGVcr6AtUgraWAMavwG1g0PTDSsoEsIV9M6iucahbuguF1eIsTmEXrXUe2Nq Ugp6klwhQC+y0knRpvV2j1V7JsXctr8I7zve1AVUgGp8Hn57+6uIyiWS8F/n51/EjJpC 4qo3ZZN017clVDXCXzeuXP3JbXZIM2i1hw2Lz82lr1BZZVmG9X/k92kPn3vfzeF6Woh+ 5G7U7ETeUt4h2an2Ni1t45Dr1YZ8u+ARntdaNlqF6krDxUhem8m+6PnFtKUiMuephOhc EwLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795582060; x=1796186860; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=rSqkYmyNVoE9XBExO6aBoa6bFdUh2Fv5AJwQ5ckX7wk=; b=qiEGONXDmJ/ZI2cNxD060vlvTf8Yy2I6LN0flFurQUz3KcbyNQWO0fr9EXb1WWBkZw +eYW44Z6to2vqZsMsMBJ9+bXoI7Nziqcd+JUmBiA/4RnK4hQfHm7uu4iz65Uazks1JHF g57jcf7yyWINOL2Fx8dXuG3XhZf7kgczlOXLGDQWtJTjlsnhqfNi670tf0fASffCHm00 xMnd/RNGul2Bm10CvCcZLyjYJxSxillnLnVVisrVtRn5u8kqwe/7ikPcre6z0rfI2yUV rpvj8/cuZfH0YX8ahw8Lzsz+7CLmvqREo5Tcwf7aVmnZVJhn/0neXyNVNt/s1N5AUi/q fqPg== X-Forwarded-Encrypted: i=1; AL+hErE4RfsqL3p33IS/HR9skVC1E9C+VWupUgHlKip6eQzjT+P9kpItfW4JdM9AY2pLHS+LqSUxxSFnRvXBxXg=@vger.kernel.org X-Gm-Message-State: APuU4Z+geGbhTp5FZMH7vT96taXkADifopXiEgkn3QyX+4Db8GYnPaID dLGB/2pWv9Lt6nLmx5fpmkiabiOkb3/FKWn4HZ3uZg7a6bVSDB/MhlKPikP5FtZz78Q8F/NnEXo /mHK9uU58fi9ZnCZYEkX4u+vme3fwXZw5xv6Ii2TESA7CW/3cxR/lYJ3QT6xhYa6X928= X-Gm-Gg: AZFdTZclE5GKh88/b+RgLKhS5+PHNpkszQcYXVBqsFuUEzn9RzkSC1ujZ/TcKyNPpzA wONL/PzJl4jgYHk+Nszxhw3bi9xvXGsEhHAvUvUcLvQ8IPjYX/3QKwoN9ND9J31Px2sA38hKyYp 6YOPa2KFoPg9XfLjnt4TAA1EzbVGgyMKtpe4c7eCSw507I9HCTtDZAc+Jpe5XUqEZkZgKxcGEHH 01I1BJ2EYCT0B4PDvMFkegS+IEbWb+v28Q5keovrgRroEIl+ZOrock/GbP9nxj/vYQPUx+9vH04 v4paQM6TwVQQdbu9S5FStg97hWl0aszX7uVDY082cZICrtR4KjgDNJev4M172KZcECyWKEJJrAw S9cTWFRFzw0vsN/t15HD4f4vb5BD6phkw6T9WcqPozxfKrbTEyvFGef8H9wcrQo0oXYEmyaGMWs sPv15aSvvgSyuR5yP7g7ifI58= X-Received: by 2002:a05:7301:f02:b0:384:ce59:5e21 with SMTP id 5a478bee46e88-3856f6503d8mr17165648eec.32.1795582059718; Tue, 24 Nov 2026 20:47:39 -0800 (PST) X-Received: by 2002:a05:7301:f02:b0:384:ce59:5e21 with SMTP id 5a478bee46e88-3856f6503d8mr17165624eec.32.1795582059154; Tue, 24 Nov 2026 20:47:39 -0800 (PST) Received: from hu-petche-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385666e99fdsm61563180eec.5.2026.11.24.20.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 20:47:38 -0800 (PST) Date: Tue, 24 Nov 2026 20:47:36 -0800 From: Peter Chen To: Thinh Nguyen , Bjorn Andersson Cc: Greg Kroah-Hartman , Johan Hovold , Konrad Dybcio , Dmitry Baryshkov , Wesley Cheng , Udipto Goswami , Jack Pham , Pratham Pratap , Krishna Kurapati , Prashanth K , Elson Serrao , "cros-qcom-dts-watchers@chromium.org" , "linux-arm-msm@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 0/1] usb: dwc3: qcom: Keep wakeup option default off Message-ID: References: <20261110092157.2989350-1-peter.chen@oss.qualcomm.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Proofpoint-ORIG-GUID: 3Z2qf0qWiev0AphC8GhUDRAfRxfyItZ7 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI1MDAxOCBTYWx0ZWRfX8a3KwcCMX6IY M5IkC/af5Mz17g/jq8aprH1EZ5aHewqlpIxwq9wp/1m4ibuq8uhsan9d1q/L2rK4rITkxqj/c/N JTlqBAUtXjBvk3dCdD1VmLCPDY/l85w= X-Proofpoint-GUID: 3Z2qf0qWiev0AphC8GhUDRAfRxfyItZ7 X-Authority-Analysis: v=2.4 cv=Vra2kO2n c=1 sm=1 tr=0 ts=6b06686c cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=kj9zAlcOel0A:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=2-JXCys9dqvgC_yrz_4A:9 a=CjuIK1q_8ugA:10 a=PxkB5W3o20Ba91AHUih5:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI1MDAxOCBTYWx0ZWRfX1TsY6SYF3QSE E9sy5ckAjW31TapP5UKyJQfWshIvTIzfMZ+vPjXtJ4QZNkcZfSGKKGRxGxXv/D1NLV0h+muzy+t jcy9M8pXA/DGMXvuAtqkQlM9+pS73xVsuEwANQBUnZtd617QA2oShXY8y4bYSes5s8SSzVB7/Zj OxpvWkpAfDYTOprqp9kIIZsF5ycUHIil7hdNXlmmUQogjYYG7mp2EKuWOXVs9XfDc+JHTc65AKY R8IK7Avzdw3gq6DhcBNSX9ENPha/Nsv0kaIFWdSkYRrPjUSsqUEf3MsKj6oeCu30YgYGTAGIa31 w/96ZMUdAtR7o9JjdpyIRFxPhbFdZZvTBwvNTFkIv/c67KbH2ivNP29XB3T8SgxEdTYF5jhKLE2 1BQqOj08tnRmCHpj4tBZhyTN3XgEB7Y98w/xS06alm1N0RrnrGPwlIffvg5fI15khuCzsZefVfX HV2a7umgiOygaZc9C+Q== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-25_01,2026-11-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 clxscore=1015 adultscore=0 phishscore=0 bulkscore=0 spamscore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611250018 On 26-11-24 03:11:17, Thinh Nguyen wrote: > (Sorry for the delay in replying. Got held up with internal tasks.) > > On Thu, Nov 12, 2026, Peter Chen wrote: > > When talking about whole system wakeup chain for USB: > > dwc3 -> xhci-plat -> roothub -> downstream device > > it usually depends on user program (per user option), but not bind to > > kernel driver, considering some situations that USB device are disconnected > > and re-connected, its wakeup option may need to re-set, and one typical > > solution is enable wakeup options before system suspend. > > I see. Looks like dwc->sys_wakeup is already false since > device_init_wakeup() is called after dwc3_core_probe(). Can we fix that > separately so xhci follows power/wakeup at suspend? > Sure, but first, we need to align what behaviours we want: 1. Who decides dwc3 core has wakeup capabilities? dwc3 core or glue layer driver? 2. How to decide dwc3 core has wakeup capabilities? Has wakeup capabilities by default (xhci/cadence/chipidea) or depends on DT/ACPI firmware setting like "wakeup-source" property? 3. Default on or off for wakeup option (value for power/wakeup) 4. xhci-plat has wakeup capabilities by default, we only need to set its wakeup option as default on if dwc3 core does the same thing for question 3. > > > > Yes, it affects all Qcom platforms, that's why I sent RFC patch for it > > last week, most probably it have "regression" since it may never > > be tested under the situation the PHY is powered down at suspend and > > power on at resume, but that kinds of "regression" is the bug we need > > to fix, right? > > Yes, but USB wakeup would also stop working on existing platforms by > default. Do we have acks from the qcom maintainers on this policy? Bjorn, would you please share your opinion for it? > > > > > I have tested at Glymur CRD, external ports work (USB3/USB2), but > > the port with USB2 Footprint IC (USB2) hard-wired does not work > > sometimes, maybe the initial sequence between power-on and suspend/resume > > are different, it needs to debug more. > > Which other platforms can you test? I'm fine with the change if it's > tested enough across platforms, or if the affected platforms have a way > to keep the current default. > There are 10+ SoCs enable USB wakeup default on for Qcom, I think it is hard for without function regression we keep PHY off during the suspend, although it also should be fixed. Let's see Bjorn's opinion? -- Thanks, Peter Chen