Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2200950rwp; Fri, 14 Jul 2023 02:22:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHTmj9T/JsxUMZe1uGD5W4lDM8mRZU4wujIpXs2d/U5J8wwxBOzAjMKmXqXWgQTDatVH9OC X-Received: by 2002:a05:6a21:3284:b0:110:9210:f6ac with SMTP id yt4-20020a056a21328400b001109210f6acmr3834903pzb.37.1689326550185; Fri, 14 Jul 2023 02:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689326550; cv=none; d=google.com; s=arc-20160816; b=km9qBeuxWlPd2EWp1HfK6nFFf9mgdgk3JB2osTXQa9CCJ0hgq/qudw/tfAAmLRiZhn UyGQ0tTGAqIagflOO8hjhzL+O8YHRTIGEFhPatAOffm+b/0DG8Z7sPM6/u0U7gKnp1BT tND0ZToTCP8h5aenh2ZFbjq+5BXqNTguJz+3KStp2MNBLOXDrg/ilrrD/gEk+6lLm2sC V7SJ8YhFB2l+O75+UiKDBlWLZbcGU5ShyMDfHacAd7ox/EvI0EOn/U6aYDJDD7hOl+7t IMn7RV9pcem+LWZxC8INxCjLSnur/Ng0UvZjXgRrYTJKuklcmxEp+VDRoQj40MiI+KRa W8Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uBGg3Ek/OOmAby6wXYSe/wBS6jl0JyV/oslrS0x3RXI=; fh=t+QL/J1E1dAzknHk/R8K/8QI0E7eTxPLSkoUWBdz0j4=; b=owtm4G7CVMakXJJ5dZvjE79Nb3Ek1s+vWyslLZnLJ1hrEA9YckMWsvhag28nY/vtG/ O7pMOMtVAh0qepC+cQueeHIdiqQurOsZv2cchXih9+vF22tsxUqZR2s8XZhfkwFLcVew HGNcVNGdC7SZuZXxhjg7YduitXPVuskvJLSmbL7gXKy5KSH0o0KYcEFxD3mEh2sBoJhs KRUehNSVNsFi5/Mi8zFtmP0yDlv61DG+WCya8S3DDhgzdiZIHbquM3dVM/9bzT3/pFAe pJc1waninuteWXzrgD/uhyzGK64E81iC7pVtHJZafwXFKia1HJM2ZofyAxoaPi53Lr5q Lljw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="b/5YIdHp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s20-20020a632154000000b0055c51cc6265si6437386pgm.551.2023.07.14.02.22.17; Fri, 14 Jul 2023 02:22:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="b/5YIdHp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234131AbjGNJAh (ORCPT + 99 others); Fri, 14 Jul 2023 05:00:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234906AbjGNJAe (ORCPT ); Fri, 14 Jul 2023 05:00:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEA3130CA; Fri, 14 Jul 2023 02:00:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7602961CA0; Fri, 14 Jul 2023 09:00:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA9B3C433C8; Fri, 14 Jul 2023 09:00:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689325202; bh=M+6EvDk/Rt4bEptAaw3filSWo8oszwa49cRXibShMp0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b/5YIdHpk6iQnyFpJJm8fmDHJOV5ekpEpxSmE819bdc9KK+uVXEqt8ZEenpPKWsAr RsxwFFn5yW3t9lV7smxTnmT52KMeXc+y8jp8qPaa7obpdaAl/SqlUR0+Q/0Teh+NHx cyTSic5nmDWE2jklk1kRcMgKTsbWPHUkmOzmU3mpEf57rfh7e2LBC+Y6nKSQgO2uov 4oZM54Vd/XJcxTXnoKLxZ80FtL53TV4k3+NQ+cDifa3AUxzMyqQLS2x37NG++bW+U0 01rFz5U/g5FXY5YdkT13k3onhrxMont3rL7vG8GQ4wjh+IUTNJ0Mm1JYq+XSdV+Q7y pqrreFIDmL0xQ== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qKEeh-0006YD-1X; Fri, 14 Jul 2023 11:00:03 +0200 Date: Fri, 14 Jul 2023 11:00:03 +0200 From: Johan Hovold To: Krishna Kurapati PSSNV Cc: Thinh Nguyen , Greg Kroah-Hartman , Philipp Zabel , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Felipe Balbi , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com, quic_wcheng@quicinc.com, quic_jackp@quicinc.com, ahalaney@redhat.com Subject: Re: [PATCH v8 6/9] usb: dwc3: qcom: Add multiport controller support for qcom wrapper Message-ID: References: <20230514054917.21318-1-quic_kriskura@quicinc.com> <20230514054917.21318-7-quic_kriskura@quicinc.com> <26ae15d1-4e13-3ab7-6844-3a7d3ed03af4@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26ae15d1-4e13-3ab7-6844-3a7d3ed03af4@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Mon, Jul 03, 2023 at 12:35:48AM +0530, Krishna Kurapati PSSNV wrote: > On 6/27/2023 9:13 PM, Johan Hovold wrote: > > On Wed, Jun 07, 2023 at 02:16:37PM +0200, Johan Hovold wrote: > >> On Sun, May 14, 2023 at 11:19:14AM +0530, Krishna Kurapati wrote: > >>> - val = readl(qcom->qscratch_base + PWR_EVNT_IRQ_STAT_REG); > >>> - if (!(val & PWR_EVNT_LPM_IN_L2_MASK)) > >>> - dev_err(qcom->dev, "HS-PHY not in L2\n"); > >>> + for (i = 0; i < dwc->num_usb2_ports; i++) { > >>> + val = readl(qcom->qscratch_base + pwr_evnt_irq_stat_reg_offset[i]); > >>> + if (!(val & PWR_EVNT_LPM_IN_L2_MASK)) > >>> + dev_err(qcom->dev, "HS-PHY%d not in L2\n", i); > >>> + } > > > >> When testing this on the X13s I get: > >> > >> dwc3-qcom a4f8800.usb: HS-PHY2 not in L2 > >> > >> for the third port, whose status registers always seems to return zero > >> (e.g. as if we're checking the wrong register?): > >> > >> dwc3-qcom a4f8800.usb: dwc3_qcom_suspend - phy 0, pwr_event_stat = 38103c > >> dwc3-qcom a4f8800.usb: dwc3_qcom_suspend - phy 1, pwr_event_stat = 38103c > >> dwc3-qcom a4f8800.usb: dwc3_qcom_suspend - phy 2, pwr_event_stat = 00 > >> dwc3-qcom a4f8800.usb: dwc3_qcom_suspend - phy 3, pwr_event_stat = 140030 > >> > >> I verified that everything appears to work as expected on sa8295p-adp. > >> > >> Do you have any idea of what may be causing this? > > > > You never replied to this; do you have any idea why the status register > > for the second port seemingly always read back as 0 on the X13s? > Missed this mail. This never popped up on my system. So no idea what > is different in Lenovo X13s. Might need to check with team internally. Did you hear anything back regarding the above? Could it even be that the register offset it not correct for sc8280xp? Johan