Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10815278rwp; Fri, 21 Jul 2023 05:32:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlFmIipWFpV78RaV9UeHv4s1U31cotm94kwKhmDVx2kMprNQDNhEsNR9fQf71P6MaZBl6zka X-Received: by 2002:ac2:52ba:0:b0:4fb:c67e:b067 with SMTP id r26-20020ac252ba000000b004fbc67eb067mr1088872lfm.66.1689942735932; Fri, 21 Jul 2023 05:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689942735; cv=none; d=google.com; s=arc-20160816; b=K2UcT9ByS7UZF/p0RNMDAfLhOLIeLiXn6sGb+XvasnyC+YGsuDuMgYkjvSc/ZiFgeM k9NOH1Wq7fYpJjFIQo1N+wqOzgM19kmT4WmlsIWQef3yrvnrtxZp3bJKCrJfBX0Chr4Q 0Bc+3MjekwXVSQw2V5C3Sg60wpX+VevIvIKp1ECQrlIe3V+FAaAMzJvdhkUMBvCpoaS1 ELwxyEncLFEupDnwXA+6qz22M2BWWozS9fOOvWHqxrOtoUbmB7v1bdDO6hztBnUp3xQ5 h+isdzomKXBjXa+VPla0bn14iRdGhupy8SrM9BKHIo6kx4obIYL/MFvgn48a5fSmLLLt zKng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=LOz1kdlh4ILjNGmh7X4YU79iEI/gFxU7eH7XBPZ7tK0=; fh=HvZa6wUWPjV4GsnhV9Pqfe8JcXkvzwRBxQ16pCM60RM=; b=YxsES+gwaAtwmketOFi44fV0n14dTvvhKHKqKOSJaelE1WInZeUKk7fv6VZFqd4MGg AhXX4MhC0Ow04vZUDtiFhOIFLT8z8hWXA3dDKt6KAEcbMyDkDUO80+jhhBa3ar8nuVRh 35Q8hhlo1KZzGH1tNEA3blpVLMczuHxGMpqm6auI+mpguYDFn1KWupoQlaEXr37t4KAR 6534Tvs4xhnQKFatU6favg3aa4NJ4ZtZuTBbh4uNXUOTFvmcx1Z+9n89IraQWQPO/HHU SwFkI6ddwj1N86pjniv2vk9i4Xiomg+ioshNzPd5t1EDAFDyXvUjLE7c/VYI7pgq6Zl9 OouA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sSsYTfKV; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020aa7d988000000b0051e050ca485si2307725eds.320.2023.07.21.05.31.50; Fri, 21 Jul 2023 05:32:15 -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=@linaro.org header.s=google header.b=sSsYTfKV; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230479AbjGUMKQ (ORCPT + 99 others); Fri, 21 Jul 2023 08:10:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229990AbjGUMKP (ORCPT ); Fri, 21 Jul 2023 08:10:15 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E3F171B for ; Fri, 21 Jul 2023 05:10:13 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b961822512so27690991fa.2 for ; Fri, 21 Jul 2023 05:10:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689941411; x=1690546211; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LOz1kdlh4ILjNGmh7X4YU79iEI/gFxU7eH7XBPZ7tK0=; b=sSsYTfKVSCs7S621/PEaXwe3Yu54YquDlBN/mssFF746yeHlQNyPxcdDhJvEfHgojd FoRtJ4E0mbIgLO2wZg9KmiWJP9fDIk8YmhKr9rfxpPPqsyFYI/smTMo2aikK6lv6673v Fc5IYuyYIETmY5ekH2qJ4JB/Noex5fiayrhxgj2WhuNoTS+8HjAJR8ZymUIwuObeHEag VvtL5agoNLMKHNDQM4s8MuuQlxjuOgbPghawH1oLcZPukKknBr02F8fqAleiScSAqTkO 8NvusaECE+ywGiWW+QsGqL29vaSKmH8lnZdfJEp2lspji1WWcYprJYMzGURdmGDdMXq+ LbEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689941411; x=1690546211; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LOz1kdlh4ILjNGmh7X4YU79iEI/gFxU7eH7XBPZ7tK0=; b=P8gzGA+LflAmluV0/FbOJSysgZCpvizrn0sNwldVkEr/PnUell3PhkbqVbM7kr6GWu I+9y7gi8YAnaCjLknc4UmZn6EX8CMkeOc9QDLLa4BdmnPTFYA6QsTo6Kz7q4CDaqBYa/ RJB56dyodDkC34opR+DSdEZvWTugnVCfZ9tQ92NvXxpGrbiwPMAfUtf2IAigi1ixc5kk 2ysLooac5+pmYkjkZDCHaY8214f0QNSKbmgwdhAH/SMrqm6YoWLZjHwzR2gyU1te8t8A K8tQHSnF9knESJa5hTw2npLKLDCREh3DlPhfYlU00BtxPv4LA8neiLCvo4/9fwiQnee4 AWxQ== X-Gm-Message-State: ABy/qLZm4tWygXtSnpVkQ5D1MIYrHHQLO1IehhvVIevpyWx8U6hB66zM JyYZ6YZhuQ6dBN/hQp7aw8yMsA== X-Received: by 2002:a2e:9a81:0:b0:2b1:c1ae:73e3 with SMTP id p1-20020a2e9a81000000b002b1c1ae73e3mr1585842lji.15.1689941411628; Fri, 21 Jul 2023 05:10:11 -0700 (PDT) Received: from [192.168.1.101] (abyj181.neoplus.adsl.tpnet.pl. [83.9.29.181]) by smtp.gmail.com with ESMTPSA id a24-20020a2e8618000000b002b96a3a87d5sm820583lji.98.2023.07.21.05.10.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Jul 2023 05:10:11 -0700 (PDT) Message-ID: Date: Fri, 21 Jul 2023 14:10:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 6/9] usb: dwc3: qcom: Add multiport controller support for qcom wrapper Content-Language: en-US To: Johan Hovold , Krishna Kurapati PSSNV Cc: Wesley Cheng , Jack Pham , Thinh Nguyen , Greg Kroah-Hartman , Philipp Zabel , Andy Gross , Bjorn Andersson , 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, ahalaney@redhat.com References: <20230514054917.21318-1-quic_kriskura@quicinc.com> <20230514054917.21318-7-quic_kriskura@quicinc.com> <26ae15d1-4e13-3ab7-6844-3a7d3ed03af4@quicinc.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP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UR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 21.07.2023 13:16, Johan Hovold wrote: > On Fri, Jul 14, 2023 at 04:08:45PM +0530, Krishna Kurapati PSSNV wrote: >> On 7/14/2023 2:30 PM, Johan Hovold wrote: >>> 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 Sidenote, I get this on any Qcom device on any platform I try to enter suspend on, without these MP patches. Konrad