From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 525E822D4C6 for ; Tue, 10 Jun 2025 12:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749556831; cv=none; b=idx6RJL6xp603wz9hy76a8URT9t5BvJ+qXRPC6+LtSH5zRcl7y/tNkku1vX86saK06nUtURtkHpMXJdzw8wyKLRgyDhU+TBb1AE2ENgzLINxSOa2+EteIxheTFh2KUzf3F1cIYXuJaEavdGAZJlfW1zot5CJuXZoMyhQhCSANt0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749556831; c=relaxed/simple; bh=S0mmtyWzjsCqCoDn/rfa6q0q4/Eq8txn8/ryBYyu4Yg=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=rOuV8exa+q9aKE85dtgSyt4ej5qMKCW6cKXAZa8q+FrWAatjdhB1Exm2wiDNYxtgfg1Vx2Buq7cH0olbFYQM8lcAwV6n6Le7ffc2zv8BUMhci0f/CWKtoGLnS1GrLV3Qo74jsy7N4zJTAo1eViKYKSnwTMOcK20qiB7ioNlgZaw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=WBmxVEgL; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WBmxVEgL" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-451d41e1ad1so42584525e9.1 for ; Tue, 10 Jun 2025 05:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749556828; x=1750161628; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=Coo2JF5+cM4uR2kYnPgicZ8fGjo28sh0FAgXwnCVr+g=; b=WBmxVEgLSleax5KYgdtSDwVa8pLAPoDnYNYcifvVgZ+I6/bdBlVysjtV+wq0sSWU+d 4BAlVHsihRaOJIpwjQolM53uYZ+Kh+UZqnzC2clBuXoh8kp3N3vJWTjdiZlf6ugCNTfb NOq3sVz6Q1ujKYpQ49RyKSKB+6JjZq5UduHLC7Iq4rwC/7vWv55xFj0GjWIDYUofn4v3 eb0C4YEPGCHz4MCOO6DZCqkJA5LeLDgA9Ls5md145PLRnZXliOumT0zJt/dSf7Bp3XEH f5SZDSaUuo4kabDka2djYR21pYxzKQH+QFqiC5s6/EwWoqDgWqhgRQttuNQp4FbprvxN wWZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749556828; x=1750161628; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Coo2JF5+cM4uR2kYnPgicZ8fGjo28sh0FAgXwnCVr+g=; b=B2xtp1qb4FcB2bHL/eI/Au9V+QNfbXDaKnGGGUhn+anMAsfW3nAtglAT/nI3k8CX4f 4a3TWQ6EuTDw2BH1SBrWKRTohLXknClHhQtGfyaXzzwmdgTa3AHOZNXVkHLfLr9foYVd udQy9rRB4VoKi8eCScURNA9uybj4s5A0uAYNtCTYFPMZlXxE2+oAZejZGuRwNK6+jz5Z vgouta+K8U4qAmIdZL+FWecmK0pepReDMHC1MT9I1RbjO4QtEgGXKjsy+3q6r3th9tpl NMqACojZQqu7OPvMGpdINz5KOw6I/R+7k0uoSyTpCK9FCuB0SWW2ZpQaHyPfKrHW6GWk ugVQ== X-Forwarded-Encrypted: i=1; AJvYcCVKeBn9mHdeFPULl7OnQ0syeOTrS1frhINrt7rNBEajI7VZwQvM8j7mgAR0zoFgBlbpWeBudhsYLVWSouM=@vger.kernel.org X-Gm-Message-State: AOJu0YxSzoSL9W8L3sJWXZf9Xx6MpwvWfbu0CkAfJbhwViRBTFbdHuC1 a6Vljfm3qutYGbgjUT5LgqM8UgP+2keaD1CJvOpLPiokDAiaXtSv/ZzyG9PWZtT06KM= X-Gm-Gg: ASbGnctfL16i0IN6+F2OCcP14eyxz0W3g+W2ZY9hEDof6CU14nXqiBrUFvaS7i2xpiP uBluyeDExmyaIT1bjoPloDy72V1K9REV0gH06FIH/nO72oEsv4nuvODQWNmjZoyIQYkv80jE/Kz OHPV3/z8HxvXaXDlGQa9uFKj1zmRHI/YCGeomvIvv++enZSQAkUVa0CbemBU4LXo3fF/QLzo0fB x6Lu7J+Nn8QWI5FQtVunWpJCQV96YqNztuDIUy91RYomtkjpmgdPW8ZUotkNY7lu5VH10yFDdlA RVKtQh+Zd+Ci1PSZM3orWEzEleHon97pVdsh9Ji3ks4NXC0y1n+npTc+tvSbOWhRvY/TZuHB7qH ypWcboWgcLBT2ilpeZiYNQCT0RVkLfvO2C2Du X-Google-Smtp-Source: AGHT+IEWr+i6z74M870LqTluirn8Ed8XIxDY0nZwNEMv+tERVcE36PmtETT5IrjEiWDNl9FBSWUs8Q== X-Received: by 2002:a05:6000:4287:b0:3a4:d41d:8f40 with SMTP id ffacd0b85a97d-3a531cadb25mr15530954f8f.46.1749556827388; Tue, 10 Jun 2025 05:00:27 -0700 (PDT) Received: from ?IPV6:2a01:e0a:3d9:2080:f0b:a9b6:d508:9d14? ([2a01:e0a:3d9:2080:f0b:a9b6:d508:9d14]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a5323c0819sm11927794f8f.45.2025.06.10.05.00.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Jun 2025 05:00:27 -0700 (PDT) Message-ID: Date: Tue, 10 Jun 2025 14:00:26 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: neil.armstrong@linaro.org Reply-To: Neil Armstrong Subject: Re: [PATCH] clk: qcom: sm8450: Enable retention for usb controller gdsc To: Dmitry Baryshkov , Krishna Kurapati Cc: Bjorn Andersson , Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20250610092253.2998351-1-krishna.kurapati@oss.qualcomm.com> <20250610111019.osnrknvff7tlvrfz@umbar.lan> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAg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OZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20250610111019.osnrknvff7tlvrfz@umbar.lan> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/06/2025 13:10, Dmitry Baryshkov wrote: > On Tue, Jun 10, 2025 at 02:52:53PM +0530, Krishna Kurapati wrote: >> When USB controller enters runtime suspend while operating in host >> mode, then wakeup because of cable disconnect or a button press of >> a headset causes the following kind of errors: >> >> Error after button press on a connected headset : >> >> [ 355.309260] usb 1-1: reset full-speed USB device number 2 using xhci-hcd >> [ 355.725844] usb 1-1: device not accepting address 2, error -108 >> >> Error on removal of headset device from usb port: >> >> [ 157.563136] arm-smmu 15000000.iommu: Unhandled context fault: fsr=0x402 >> ,iova=0xd65504710, fsynr=0x100011, cbfrsynra=0x0, cb=6 >> [ 157.574842] arm-smmu 15000000.iommu: FSR = 00000402 [Format=2 TF], >> SID=0x0 >> [ 157.582181] arm-smmu 15000000.iommu: FSYNR0 = 00100011 [S1CBNDX=16 WNR >> PLVL=1] >> [ 157.589610] xhci-hcd xhci-hcd.0.auto: WARNING: Host Controller Error >> [ 157.596197] xhci-hcd xhci-hcd.0.auto: WARNING: Host Controller Error >> >> Enabling retention on usb controller GDSC fixes the above issues. > > Could you please clarify, if there are other platforms which need this > change? Is there a chance of switching all of them in one patch set? Since sm8250, sc8280xp, x1e80100, sm8650 are all affected - https://lore.kernel.org/r/20221102091320.66007-1-manivannan.sadhasivam@linaro.org - https://lore.kernel.org/r/20220929161124.18138-1-johan+linaro@kernel.org - https://lore.kernel.org/r/20240801-x1e80100-clk-gcc-fix-usb-phy-gdscs-pwrsts-v1-1-8df016768a0f@linaro.org - https://lore.kernel.org/r/20250305-topic-sm8650-upstream-fix-usb-suspend-v1-1-649036ab0557@linaro.org I think sm8350 & sm8550 also should be switched, perhaps sm8150 also ? > >> >> Signed-off-by: Krishna Kurapati >> --- >> >> Note: >> The above mentioned issues pop up after I enabled runtime suspend after >> applying [1]. >> [1]: https://lore.kernel.org/all/20250610091357.2983085-1-krishna.kurapati@oss.qualcomm.com/ >> >> drivers/clk/qcom/gcc-sm8450.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/clk/qcom/gcc-sm8450.c b/drivers/clk/qcom/gcc-sm8450.c >> index 65d7d52bce03..f94da4a1c921 100644 >> --- a/drivers/clk/qcom/gcc-sm8450.c >> +++ b/drivers/clk/qcom/gcc-sm8450.c >> @@ -3141,7 +3141,7 @@ static struct gdsc usb30_prim_gdsc = { >> .pd = { >> .name = "usb30_prim_gdsc", >> }, >> - .pwrsts = PWRSTS_OFF_ON, >> + .pwrsts = PWRSTS_RET_ON, >> }; >> >> static struct clk_regmap *gcc_sm8450_clocks[] = { >> -- >> 2.34.1 >> >