From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796281505; b=Bsyi0V5hpPzioejeM2EUpAH+XgQlTNG8GEc//Vz2wvGLnlB6jMILKxHB03Ey0gLQEE7c 2c2ZbOkxPGiOEJnh0yjSOzQ9j0wXiOV5La9aPhLvwrWzY8h7xIvSJ1YLKPO2Lukphfl4x AhjnaOodCnr21Wa/8pHRSH5P/fDhaIznvUlOyMQw4oxzqJoNnZXmXtuihC1SB1czMOYAa kkByOWBVTKWXFJHqmtcjwkHWThKpoSYeW+2fjPvjP7ZWHwKjbZKlB71mgkIaCeo3IulET TnwWziURFpbpAurwP+T8cKWLQxPPl5TylHNqssMn4kXsS260pAXUFn9/znAXfp1xxpg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796281505; 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:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-Spam-Info:X-Proofpoint-GUID: X-Authority-Analysis:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=K0MIyr3I8LTPezN+cPichHGNWuvubpn4QC1T7Y6EH3c=; b=Lk+AuXNJZppWnd6fD3GWuc61vrUb1eTn84LyRKr+ZtSO7h8fVj3myPqxgczre6KWrukU UvAEG5EL8TH/Rxg/86qLrlXnb3DW38kKQclPZf5RR3wZjJ2uEVca4bDUVfHs45tekuxwr Baz+pT2POU+3EbRv5/0pCFhOSBEYJ4bVNKdnr5EBk3Xck6P57yVxfmkNcWztF7DDyfomM 3EU4nAdODUDnr9cvh46Bz1YWEuvxZNJfKAbX/c0lTIIY3KV5ZV2Ffqfpf1U+JH7iX1VY6 HFl4Vh+FKYT0hp8m4ViAbpC5xlXhi0FL0uVgsnvmGbVfPn4/vkLPvBJmlFzHcrUVLKg== 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=XOJKNlQI; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b="dL/wxN5G"; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 EE678606A32D for ; Thu, 3 Dec 2026 07:05:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EE678606A32D 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) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=XOJKNlQI; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=dL/wxN5G Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B36k0Oo2683713 for ; Thu, 3 Dec 2026 07:05:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= K0MIyr3I8LTPezN+cPichHGNWuvubpn4QC1T7Y6EH3c=; b=XOJKNlQIpibWr70H z8q9hdNimaKViB3WgcQazqxP/EpfyH8yIihY93fgyqrjpLETE8zPvdAPc80aagvI Td89xzB6aKeRzdsogYGV58DVMFJdkE7tLG0blHNR5uOY0mJnVIMHI197nxB6YpGH wlMiOU2Rh6+HunRVX+VIaa50nhWvBfSko6yCQ9vbMB8w/g0exNPM/UgllxDs9XDm kGWKLwMgVb5KelV6K4R7x12CcTuhmq4VNXS/NdiWN36d2vOIvzb/W5mPbUful0RN Lx+yBpA3R+ZL0R7GewjK+G5rsbKNLoquCeE/lv3wxgF5i1YejzFcq7kwHaTm8gz4 FvLUug== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jamypbs3m-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Dec 2026 07:05:03 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-cdb8b260bb4so8158015a12.2 for ; Wed, 02 Dec 2026 23:05:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796281503; x=1796886303; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=K0MIyr3I8LTPezN+cPichHGNWuvubpn4QC1T7Y6EH3c=; b=dL/wxN5Gl7+mCfySTB9WSvHCsofVcjd8x9TIQtOn4niLlv3phwiabr1J+tcFHC/cIl suYu5pZaueNVjhGzjvnfaxN2tHc0yTH8OinEn4H4LKdHqdKnj9aBhOuNycgOFHRjkaRO FS0iMbFUDB/PMNwviVcD03aymXkdJm8MV2AZLL/9UKYKIS7zPbb+AZO7KxMzfMdJxhzu 9chrWPul0Zkycdfo41pB8Fotcy7QxHGdecdDxckXGWynM4hHc3MQvdI9eeXWOQvGMsBP w7EJQMRX2KrbkkjlP87QZadkbjWGYIz25lU5HBykxsa7RAFxiGaK7zq1HA3j5KC1/Ufm C9OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796281503; x=1796886303; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=K0MIyr3I8LTPezN+cPichHGNWuvubpn4QC1T7Y6EH3c=; b=f2rjbU9s+Uw3QCNRZLXFzsC/ojiOfvN09Ctl+oPk6o4eWnXyVWAImTTOUinGNIupHB hTNYHnP/BHEvMdqgJqmfeMTt7weXRSxi8fvHeHTUhHOEI2snN1tvy2vEj/8qgYIm1Yf8 flM+bW1hcunRSxp7AFaWGnyG90AHsZXRc8LdpSAgNZHPeKH3+S/9LSxveUpz2PcqKVxV NF8/o7I/lFG4d+xLEn1UAMmuhimwV341dQKU9p2em781cWeOj5yBBg3XOQhvAUI0cSEG bwE/qvQoBJ7dhRHCaFsS1FhypBg6sljU4O0mHgN0bhcJFsyF0LzXASesNwnUoD7OBf3t zeLA== X-Forwarded-Encrypted: i=1; AL+hErF54vOEPEPJMtL2/6hID7MZ61NcINoZ3j3xDJc+pcmCCizdh9PceFB2UPBYKM9jS3PA5l4PTM//Py4=@vger.kernel.org X-Gm-Message-State: APuU4Z/+UMnNMmD8VV5RSwVjVl9Gc4Dh8IBv6dziq5Z930W0YjyRSMSy B7RxnCxF7aDWccuRBU47v6GQQvOFT3Zm+9X45FJoVUzo0zSsrO7Bj/9lGVNDml+4CTb251Dx/48 5JuqKnmTU3OVOj9uyb+HNJzroZJWzukFisDH6207E3NH3EkF6awgHz7SyJRKjY2g= X-Gm-Gg: AZFdTZevWqbWJFefFsEwfjx31YfDirCg/JX8VF0wKsYXnA+oSXhABYV6T7kKJ4aK8Xe 69Qg5EHM8n5vhCUl9o0sfcO+HEpm83BEFJOiLdvyxWqznFAYBGGbeQYfaVuKnnHmYNe9ebyndPi 0lZObsIPTIbni/BGEmwO7p/WD7VZkaWjtWdNiAsDXoQm2U/Im/11taIiF66qIejV4Rsgzt+17Vs f8GWk2oBUxz0W8E/l1MbVfNq9yorKCnoKonZRwuKg+XgKP5vyDSbB/NESHiLNPcacINBhA9hyoI 0XRsuB5ZaiDu2DooCmr1dvVeGZ+8o+sZeK2SoyLgZlem20h41nkwwQqf/5aFfgouG4/4FsFL1pv FqlPozR/YqW+R2fcrIVHozMZ2BsGbi0pboJ9swRgYVI5XwIDUEWPTsiTYIJ74nsO/i/iIEM5nTK RP4Q== X-Received: by 2002:a17:90b:1641:b0:3b4:fcba:8c57 with SMTP id 98e67ed59e1d1-3b4fcba964fmr26057117a91.20.1796281502885; Wed, 02 Dec 2026 23:05:02 -0800 (PST) X-Received: by 2002:a17:90b:1641:b0:3b4:fcba:8c57 with SMTP id 98e67ed59e1d1-3b4fcba964fmr26057086a91.20.1796281502400; Wed, 02 Dec 2026 23:05:02 -0800 (PST) Received: from [172.20.10.2] ([223.188.104.51]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c784eab9sm2871837a91.7.2026.12.02.23.04.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 23:05:01 -0800 (PST) Message-ID: Date: Thu, 3 Dec 2026 12:34:55 +0530 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 07/11] usb: dwc3: qcom: Recover controller state after power loss in system suspend To: Peter Chen Cc: Thinh.Nguyen@synopsys.com, gregkh@linuxfoundation.org, Philipp Zabel , linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, krishna.kurapati@oss.qualcomm.com, krzysztof.kozlowski@oss.qualcomm.com, Sriram Dash References: <20261123104727.1539149-1-faisal.hassan@oss.qualcomm.com> <20261123104727.1539149-8-faisal.hassan@oss.qualcomm.com> Content-Language: en-US From: Faisal Hassan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDAyNyBTYWx0ZWRfX6DrYJM1ETHJe PHi7Evt+XyuKOENZ5JWu0bk/sTfrsCF4BKfJXC2aiUHMOebhZf+yvW2fE6ebZ3M9czGFjYkh5ei /rdbuVTIQp6N1pZDqoktNsqXrZO1/VA= X-Proofpoint-GUID: 7ssJYNqezD0UuVwgySrwCTD7Dlu8gv31 X-Authority-Analysis: v=2.4 cv=U/8Hnuru c=1 sm=1 tr=0 ts=6b11149f cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=P9BdI5F+mvP9aojgogbvCw==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=o8eEje62bycTRHO6m7cA:9 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-ORIG-GUID: 7ssJYNqezD0UuVwgySrwCTD7Dlu8gv31 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDAyNyBTYWx0ZWRfX05MK/uSe2rcI 93etE1VZMUx6662NLVfnk2vyhB6t5+nnwsNJSq04iHx4cpaBkzb68wfuaAjlXUQl1GL8EVom4R2 rRU1XmidyjVJYnxfMKfRD4kKjRGK7h+BlE02YwgdozZKVrZoPNGF/O8odFU/4uE9/G1QmAH4cMF izVgAw3pZOnA/07ckeQfaa0wxCvQtNgvrog8+RxQIFMipu2Urjkj0u4g2hsvgBr7+C0bC0J/4+z d9rTL4++2dv3PFb9Bzw/JBX6eFxma6QKqoaFkIeFb/ucpHj2PCxbhYUpW/G+9C3Bfgdce1a8xxc RedJomDqY0cKjhDeEljUJMDIvhDUMh2V6ZgxoA1W5WcN1qWhmx9N/jmwRX+QY0wI2VX8+w0CL52 9u1UXxqG4CCs9PFEiFVBlvEZI27x8FG4zojutvEy4VT7mPZaPr3UL9t2F5mhqmDHcH436AAkIMv SMQUgWUYbYlV+zeQJMA== 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-12-03_02,2026-12-02_07,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 adultscore=0 spamscore=0 phishscore=0 clxscore=1015 malwarescore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612030027 On 26-11-2026 03:22 pm, Peter Chen wrote: > On 26-11-23 16:17:22, Faisal Hassan wrote: > [...] >> @@ -741,6 +773,9 @@ static int dwc3_qcom_probe(struct platform_device *pdev) >> probe_data.ignore_clocks_and_resets = true; >> probe_data.properties = DWC3_DEFAULT_PROPERTIES; >> probe_data.properties.skip_phy_init = true; >> + /* Controller loses power on system suspend, even with wakeup enabled */ >> + probe_data.properties.needs_full_reinit = qcom->power_lost_in_suspend; >> + probe_data.properties.xhci_reset_on_resume = qcom->power_lost_in_suspend; > > There is a xhci_power_lost flag support patch for dwc3 at [1], do we still need > "xhci_reset_on_resume" or could totally re-use it? > > [1] https://lore.kernel.org/all/20261125181116.121-1-26rote@gmail.com/ > > Peter Hi Peter, Thanks for pointing it out. We can reuse it fully. xhci_power_lost does what xhci_reset_on_resume was doing here, so in v6 I will drop the reset-on-resume plumbing (v5 5/11 and 6/11) and base the series on that patch. Thanks, Faisal