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 89FFECDB483 for ; Thu, 19 Oct 2023 00:58:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231500AbjJSA6q (ORCPT ); Wed, 18 Oct 2023 20:58:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjJSA6o (ORCPT ); Wed, 18 Oct 2023 20:58:44 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4621611D; Wed, 18 Oct 2023 17:58:42 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7DC9C433C8; Thu, 19 Oct 2023 00:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697677121; bh=ih+ytPv4nxpq0a5mnqxIN76oDxBc4L1G0wNYPAVRMGE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=JLQjRFD4nWYcmeWUiYVKzwRBAOw8CqTn7BpbDYNqKjoCArBB21vo4+1kCsVbvlBf8 8uyfWLl4V3qCO5p9YthHUrbuFspPBVZLYUlC6nqPeWBc2c3h5ungXN2CrRHjMbGj4G eFRfr8oXPckwk27ZpZF53A2pOO/6G0H9iW7FPH2/3GKoj8FWTPi8dyQkF9zAhBpYL5 zqT/qUsRJlAY4c74FM+hzd3S/08Y8hAL7SNoFrKx7ODSnlHB/015uvqkF8WD0zpd3j zXTzkmPHNtoow9W6rOtcAWPu91mHHgZD4/dJriQK6NUOhLYypzjJKn2OCBptAfhkSw wtTXcJYRwmvZw== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20231017131944.8356-1-quic_kriskura@quicinc.com> References: <20231017131944.8356-1-quic_kriskura@quicinc.com> Subject: Re: [RFC 4/8] clk: qcom: gcc-sm8450: Keep usb30 prim gdsc on during runtime suspend From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com, Krishna Kurapati To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Krishna Kurapati , Michael Turquette Date: Wed, 18 Oct 2023 17:58:38 -0700 User-Agent: alot/0.10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Krishna Kurapati (2023-10-17 06:19:44) > When runtime suspend happens in host mode, if cable is removed at this > instant, it triggers a resume where a xhci register access is done when > gdsc is not on leading to a crash. Keep usb30 prim gdsc as on during > runtime suspend to avoid this crash. >=20 > Signed-off-by: Krishna Kurapati > --- > Note: I am not sure if this is the right way or setting GDSC flags to > PWRSTS_RET_ON is the right approach. So for now made this change to Does using PWRSTS_RET_ON work? Does the GDSC support being turned off or is the lowest power state retention?