Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2891587lqp; Mon, 25 Mar 2024 12:08:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTHkSbpWCjWt6HpTL7tqIhUAZu+QhFXOmLDUWUMtH4GYr2umSVyZLyxG6pzNtyiPIt0ilrzp6UOTUIt2KqF2FEm0W2oRe2o3CWex/+XQ== X-Google-Smtp-Source: AGHT+IEvy8Fuxu6BXraw0KQbUxgNfSuT3w7bpe2G6jHn8ssqgLNl7rzMfKjLn4BSZQeDgPIj7ZW1 X-Received: by 2002:a17:903:2b06:b0:1e0:1bb2:b38f with SMTP id mc6-20020a1709032b0600b001e01bb2b38fmr9191650plb.59.1711393729011; Mon, 25 Mar 2024 12:08:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711393728; cv=pass; d=google.com; s=arc-20160816; b=KFrvnZzLtbw4hU5Xm9hR1jA7O9VhveU1P4YhN70KD93mu9pXOCM1305uMo9biVZSgu 7w/olU7OlKqLovR+DmpjhkAJA/kt8D+/deu1b71ZDuo3NODuCt2q+IUcqLZk2vf2gESN 95JhcegNBCfquvb6+QYOMIvZQHp3AeMFNNgupwhUaLOYc2UKlsXajeW61xQDghPI2zXv iMJH9U86ayYaMpdc81RJ/b84B2/m384xsdrCeeT+ZG+GAptixNIHDnRoMuij2114yEdD Mgd5nLKTxUfb5FWZDwzD8VhgKo81QYwAYQpmjcoSaFro4B+Qnv5mILYNSDjzI74zXC63 hz2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VMw9B1lDhPyBRBfF8MeDdF3QThtk8vsJwk6Usfujz4w=; fh=PtsvmqCM8YUnL7H6HhLAss7sj5iFelJGGh0AaYWbgrU=; b=J1R6R6UzNDwpqTeBFLUlw7CtULjAKCM8VQ8FnTBVEJsCACTBFpix9Izul3SF9PEEM5 6R22o6EcL54yIwNhQP2toDJwyLseGywcMBTe9uusWMfYqUBnZIMxoarUIp2lz27VUkJt 6Jyj7G4gNotd7dFob3SLI4a9sMCwdlN2TdFGruu6PMb53eFTbSiz15pU+3iIcVgrkGq7 ZNf2+NiwKULrBOJjQqQVtloW5jB3DnUbituAAbPv2G+3rRZymoIDmW+o8Q8fGysvB9hs QripGNUCQPcsqWVAg03GMj/FNykkf0WACQF4zPfnbW2ZYalcBSBQvJsUe8uezVdxIDUr PcdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sjEkskaN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117064-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b18-20020a170903229200b001e0b8740836si3144058plh.274.2024.03.25.12.08.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 12:08:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117064-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sjEkskaN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-117064-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8CB692E4628 for ; Mon, 25 Mar 2024 15:30:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D22EC13E6AB; Mon, 25 Mar 2024 12:52:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sjEkskaN" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECF5E1758F; Mon, 25 Mar 2024 12:52:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711371125; cv=none; b=P8KBE8FVujoZoapGGCLtfuDlnZ9B7ecP8doRENTJPgih1poACjlZT1hUp4Dlu6+OSWaHyLPuhtZ0YofsDEmn0QGuPggtsHRjOGrfjGRrpmR07rJJT9lO6IB3QndGCw73d8oFeZ9k464Kr9BM2B7nJtFvOrb6Xquz7T6F8O4Gmjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711371125; c=relaxed/simple; bh=z7bubkzo/8afvma6VWnGGJWecFbVMzL8InhXPHF7K4s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UEO2mnDmDhf2fm4VFGsLT9A+t7tXdSJo7OMtAy+L4lBLgJi9Apa7Romdz1CSYrI/s/ANiaUnfoLRJfCYOIAhK9kGzg/JAWiQaKaFRvQd3+MWKJFv6pG5r/uuBT+xSCmj+4ooWyLneQH2PqCHWosb1NovhgvBN7eYowbaCV1iXac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sjEkskaN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CF5DC433F1; Mon, 25 Mar 2024 12:52:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711371124; bh=z7bubkzo/8afvma6VWnGGJWecFbVMzL8InhXPHF7K4s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sjEkskaN+XBX1N15X1iMx9EMIBDV3dNY8N4xj6KRatZfxr667kpq+5UmzRlxd+MZI JLWxkZzpx/LuNezMvTkljkVpA+C7pgH6GWIA64WEumoaPxfyzfupBtdR35g/Q+mdfO OAZtyohFAPL8vYXhMAqlMBtHHeqWD1+E0ImR/LKZ7gZi3dRM5T/KyyMqI423BTOWSH urWsyMIqPIVAMV1TZOQHPHHgqsFwSodo/oLBtkMLpqg7ihaA4ZRqdkgZ+r3dh8Ywfd EqQOW26mo5+KjHGTZoOU4dBkmXPF4+eKUB9AnRAYdslJERcCsbtcawjUHa7VY9D8bB T//3yh3JAXMxA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rojoB-000000001W0-1eHc; Mon, 25 Mar 2024 13:52:11 +0100 Date: Mon, 25 Mar 2024 13:52:11 +0100 From: Johan Hovold To: Krishna Kurapati Cc: Krzysztof Kozlowski , Rob Herring , Bjorn Andersson , Wesley Cheng , Konrad Dybcio , Greg Kroah-Hartman , Conor Dooley , Thinh Nguyen , Felipe Balbi , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com Subject: Re: [PATCH v16 9/9] usb: dwc3: qcom: Add multiport suspend/resume support for wrapper Message-ID: References: <20240307062052.2319851-1-quic_kriskura@quicinc.com> <20240307062052.2319851-10-quic_kriskura@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240307062052.2319851-10-quic_kriskura@quicinc.com> On Thu, Mar 07, 2024 at 11:50:52AM +0530, Krishna Kurapati wrote: > Power event IRQ is used for wakeup in cases: > a) where the controller is super speed capable and missing an > ss_phy interrupt. > b) where the GIC is not capable of detecting DP/DM hs phy irq's. > > Power event IRQ stat register indicates whether high speed phy > entered and exited L2 successfully during suspend and resume. > Indicate the same for all ports of multiport. > > Signed-off-by: Krishna Kurapati > @@ -471,9 +480,12 @@ static int dwc3_qcom_resume(struct dwc3_qcom *qcom, bool wakeup) > if (ret) > dev_warn(qcom->dev, "failed to enable interconnect: %d\n", ret); > > + for (i = 0; i < qcom->num_ports; i++) { > /* Clear existing events from PHY related to L2 in/out */ This comment either needs to be moved above the for-loop or be indented one level in. > - dwc3_qcom_setbits(qcom->qscratch_base, PWR_EVNT_IRQ_STAT_REG, > - PWR_EVNT_LPM_IN_L2_MASK | PWR_EVNT_LPM_OUT_L2_MASK); > + dwc3_qcom_setbits(qcom->qscratch_base, > + pwr_evnt_irq_stat_reg[i], > + PWR_EVNT_LPM_IN_L2_MASK | PWR_EVNT_LPM_OUT_L2_MASK); > + } > > qcom->is_suspended = false; With the above fixed: Reviewed-by: Johan Hovold