Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp51032rdb; Wed, 18 Oct 2023 17:58:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTUKWRJNgRjGgpSiqDzQknPpNQWEOOG+PnjD3s0ZxVdUlXzoGkhYqmVLb0do4TS/2lUXrg X-Received: by 2002:a17:90a:d98f:b0:27d:b4a4:2d87 with SMTP id d15-20020a17090ad98f00b0027db4a42d87mr810313pjv.1.1697677130744; Wed, 18 Oct 2023 17:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697677130; cv=none; d=google.com; s=arc-20160816; b=FY+OmlNnHN/LdT5GYDNHw8Q85WFLOMVxr+EyHvcDyMRdkR1H6UwhPDmRGEEEVcxsXt 41Tn/YjP4oa+NUSvuZRkZKfiJK8kaK1Brm7YXeCkPI/eHl3Y4On2syFuIXSAxP1u0Z0f 6p8BVKFy8lALrAmTFY5v9YFBBhyzHXWIKKlmHqMfZbaYrLv+H45MawJ9PD4HOjGQGNXT x3BVYix7Lz1QnfeGoEj+z9Pj0C8UkFnFJz2TGIy3LAMwf8HLyA8KKNRyBfJ1YPGWN1Gq VPxjvbnhwFYkLfWJ8pDCLJeVtLBNfPp0+dGzM1GX4ES3wuHj7vL+kUk/Xo7ew55pPYXV bOeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=ih+ytPv4nxpq0a5mnqxIN76oDxBc4L1G0wNYPAVRMGE=; fh=5Ibm0x2Gt8UAwWxrUTJWBOpg91QSkataFQ18nJwzUb4=; b=FACWYTXwxm3vpVvzEidN6XY4yPXcldwqyieKUEzALeWOvHNqnC1OtqDHyfS5W8P6A2 szBwb5RehPsaguT2dzHKPbpITB/+GY8mnw/wvyEvhbd6meo5Gt2aoVtQDpeSd2FfKoaW wxMijqhvnyqu2MUV+1ql0PJqiRjo0IY0IT+Qmsb/4MGcJaGKDUsGfst6KafWCs+IZ+tu DKSmBXJUm7mpltdY/HTab/h2ZMaCt5ZMOdx97098DQtiAnw+ROtzzRIGFTNVUPKE417o WG5jFkUjXFeG5z0pq/ijx9PuCZFm3tximcXe5JxeFKKOSct4xP3htVZoEKe3jPgroKoH xjaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JLQjRFD4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id me7-20020a17090b17c700b0027d5026b464si1031529pjb.43.2023.10.18.17.58.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 17:58:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JLQjRFD4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B4EA28213F0E; Wed, 18 Oct 2023 17:58:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230373AbjJSA6p (ORCPT + 99 others); Wed, 18 Oct 2023 20:58:45 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 18 Oct 2023 17:58:49 -0700 (PDT) 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?