Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp69631rdh; Mon, 30 Oct 2023 14:12:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQElAVeyGQf2LQpFkBYRhhHIu/594WDQuY9Pbt1o8CnPNtH4UUk9Oni76RT+YQad2ggwzX X-Received: by 2002:a17:903:64e:b0:1cc:5aef:f2c3 with SMTP id kh14-20020a170903064e00b001cc5aeff2c3mr844389plb.22.1698700343143; Mon, 30 Oct 2023 14:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698700343; cv=none; d=google.com; s=arc-20160816; b=QSn8zigvSCKzvE+L5i1UmddIO3bwmeH342vLWB9tmNSGzAMjNX0DPKhdUHro5sq372 Qv/bagHJjhFNU3wZpG7s2bD/CDopVHBlIjZ7AFKUCju1IRc0YV/xrPGSocV0IV8DQP8o aLKReDVlfMimy8a4z5jV2cxipQEyQ8LAs4QmhaNV4StjasAV5pTwAOoRitd3WDKoMjsa d5T1k3shKFand7m4dcP81ub1nNzLyoy7YQbtY95ppp6myMcCc5KUt4CVDYdHkZVyBkK4 6oVZT1ce11YAN/DXofLWuiPbiqWPz9qSEXot1L8Pa8VIEh6Zk+NXqqKv57j6vpwdMJlc HTfg== 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=Yvz7j0aXwqHtGtC2njMkTn9rIFOlYhohzHXfNXUViPE=; fh=+9RUNFgujsNW/j9eY6Rlx/ej4WmPj20qhD9jLum5dlg=; b=WfjT8PyAwaTHOiFCGTLJ6f60V8TVLzLh/PA45ddcG79JoN46Hex8kDSw0aKxIq55xC 4DfK3b+RCgmdsrE8gbqL47coqmLoF/sD4Xvzpzxcthye57OuCTE/gy2xwB6X6nv/9fRL EQ4hhdVDZEQmr4TVmz4yjf9vZP3lbkv2ZU99o1BbPnwtva8I6FJ3Vn0z4+kaM0vQsz/X aPG7sEkrj8OyohP3NWZ1uFvFdTCk3DoaRj+uNNM48QPPWeiAl4OYcD5bAIarZ0VVxjSn LMDW/MOVO1KwR6EmAvd4Ot+6BAEl4HcYw7CQyI9Hh6/TzgxIQ2LcQUAUMRl46EANJcmj z5yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d5VXwZWb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id jx7-20020a170903138700b001c3a05b0b58si2740756plb.500.2023.10.30.14.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:12:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d5VXwZWb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E19AF80AE827; Mon, 30 Oct 2023 14:12:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229646AbjJ3VMM (ORCPT + 99 others); Mon, 30 Oct 2023 17:12:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbjJ3VMK (ORCPT ); Mon, 30 Oct 2023 17:12:10 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A517FA for ; Mon, 30 Oct 2023 14:12:07 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c6b30aca06so30101711fa.3 for ; Mon, 30 Oct 2023 14:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698700326; x=1699305126; darn=vger.kernel.org; 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=Yvz7j0aXwqHtGtC2njMkTn9rIFOlYhohzHXfNXUViPE=; b=d5VXwZWbSgGSTUyYSrZIthmO+UpD7rbH6yFErYn/B9/CAn56iLKVXf5rwIENLy80dV LoqJrK/pdTEmC+VBcJcYTitmGRCqGWPwptjzBfTmMtRJTGLvuxrx3JgcmWBJDwIBeWUe ZwvPkLjYUMvC/w1MqNCD17kIoQeYFmTnx+vTCw1c95bY3jhps065yCI1lfuka0/31xku k9ljy+UmINUA8VXWSxOTBWsjuXcdCObWa/kCxp6H5wgs+1dcIjQ383V9kdwdrjV1ie9e igr694XbS58xiDXxUK39aQl2tdUhR16wAEF7nPG+fzXIlqRqJXAHIhxEG5MmNEr25Dfp 7DhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698700326; x=1699305126; 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=Yvz7j0aXwqHtGtC2njMkTn9rIFOlYhohzHXfNXUViPE=; b=YGc/+vc/HvkPZA4ki+FmKjs3X6G/P0tcpjtRirtqsFWer+zExZwBMf7shp6CFVhBca mMTcctsxB1iqvLRdG7vCIpGRyk01XOpwbDxYtZjB1JYo03IJDddfnuxJLA9ATWsCT7K8 urzfcmgKjuxUQSdFjGHYYTDqDk18eyZ5us4Tx4vEoEF/1LsD/KmMN1tF42TFEbqeNPQq GTRuhOsJRw0+WMFyhwUZ6cyVr4cRzavbqn0HxEjJZZsMqweh36Vuk/Fp+rBhMaenjG05 b+WUVp41YnmU4BAern6GFzVNdT51NIBdnh7CEWjIFtEITCaV9bvs4CM5aa4lA1T04HMT 8Uog== X-Gm-Message-State: AOJu0Yz+lVGAwvXuTMmk3soNz1Lz5/Dnvdt8k2abuF3RSyiEz0pAVRqR I0UKSOz3631XQATbvER8TNZ1Fw== X-Received: by 2002:a05:651c:333:b0:2c5:1542:57e4 with SMTP id b19-20020a05651c033300b002c5154257e4mr8145853ljp.31.1698700325178; Mon, 30 Oct 2023 14:12:05 -0700 (PDT) Received: from [192.168.133.160] (178235177091.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.91]) by smtp.gmail.com with ESMTPSA id z4-20020a2eb524000000b002c5a1d45e95sm1432930ljm.0.2023.10.30.14.12.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Oct 2023 14:12:04 -0700 (PDT) Message-ID: Date: Mon, 30 Oct 2023 22:12:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] clk: qcom: ipq6018: add USB GDSCs Content-Language: en-US To: Robert Marko Cc: agross@kernel.org, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Kathiravan Thirumoorthy References: <20231025104457.628109-1-robimarko@gmail.com> <20231025104457.628109-2-robimarko@gmail.com> <20c8cfde-3f55-45c5-bc23-21979ac9680d@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL4HCEw+HW0DXcKDwARAQABzShLb25yYWQgRHli Y2lvIDxrb25yYWQuZHliY2lvQGxpbmFyby5vcmc+wsGOBBMBCAA4FiEEU24if9oCL2zdAAQV R4cBcg5dfFgFAmQ5bqwCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQR4cBcg5dfFjO BQ//YQV6fkbqQCceYebGg6TiisWCy8LG77zV7DB0VMIWJv7Km7Sz0QQrHQVzhEr3trNenZrf yy+o2tQOF2biICzbLM8oyQPY8B///KJTWI2khoB8IJSJq3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CIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Mon, 30 Oct 2023 14:12:21 -0700 (PDT) On 30.10.2023 21:37, Robert Marko wrote: > On Mon, 30 Oct 2023 at 20:37, Konrad Dybcio wrote: >> >> On 29.10.2023 12:04, Robert Marko wrote: >>> On Wed, 25 Oct 2023 at 12:45, Robert Marko wrote: >>>> >>>> IPQ6018 has GDSC-s for each of the USB ports, so lets define them as such >>>> and drop the curent code that is de-asserting the USB GDSC-s as part of >>>> the GCC probe. >>>> >>>> Signed-off-by: Robert Marko >>> >>> Unfortunately, after testing on multiple devices I hit the same GDSC >>> issue I had a long time ago >>> that was the reason I did not send this upstream. >>> It seems that USB3 port GDSC (USB0 GDSC in code) works just fine, >>> however the USB2 one >>> (USB1 GDSC in code) it is stuck off and USB2 port will fail due to this: >>> 1.607531] ------------[ cut here ]------------ >>> [ 1.607559] usb1_gdsc status stuck at 'off' >>> [ 1.607592] WARNING: CPU: 0 PID: 35 at gdsc_toggle_logic+0x16c/0x174 >>> [ 1.615120] Modules linked in: >> Can you dump GDSCR (the entire 32-bit register) at boot and when toggling? > > Sure, here it is: > [ 0.023760] qcom,gcc-ipq6018 1800000.gcc: reg: 0x3e078 val: 0x8222004 init > [ 0.023782] qcom,gcc-ipq6018 1800000.gcc: reg: 0x3f078 val: 0x8222004 init > [ 0.988626] qcom,gcc-ipq6018 1800000.gcc: reg: 0x3f078 val: > 0x8282000 before toggle > [ 1.202506] qcom,gcc-ipq6018 1800000.gcc: reg: 0x3f078 val: > 0x8282000 after toggle > [ 1.207208] qcom,gcc-ipq6018 1800000.gcc: reg: 0x3e078 val: > 0xa0282000 before toggle Any chance .en_few_wait_val = 0x2 (turning BIT(19) into BIT(17)) will make a difference? Konrad