Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6609310rwb; Mon, 5 Dec 2022 15:06:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf7asgeatyH6H1njZqJVvaU0KjYsIqjDdNbbLV1gqE0rlt0ewt2dGy+7hFVdJreNIPudf5Eb X-Received: by 2002:a17:902:8f8b:b0:189:b994:1be with SMTP id z11-20020a1709028f8b00b00189b99401bemr18897002plo.133.1670281615599; Mon, 05 Dec 2022 15:06:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670281615; cv=none; d=google.com; s=arc-20160816; b=l5sQ9A4wKPCzMmkx1YeBWMVqiMPFJ+yYMPhCB/t4aXzBvTRmvZhBuO4P2cH0nsMNxk kxzyOTPC8nV4IEhrD75ZvMJCJFvhgKbnqqbDJaM8j/h5gPzJ7w+cAeiohSoPXwMrf3QY lT2E7DTVV9PbfR5D6HUgFeGFxh+y1Kh/oWscUqjc3TB7Yc8qCz+Qhd+gfO2K8RVxl5PD mXSg2ONRUzKzA0GyWGPLGy46ICwrTonn8jjSThb8xyajvCRr+uoqXD1Bpj6hwR5878ix N+5/qJfWrDE4bi5M9KON3Qls8T2h6LjWNEWT6VtitmXFbycXrQNz48hg5M6V2JGDcPAx rl1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=DuCbaziL7ipwUokx8SdKjEyNaVxjpbuSpAIzdJTw5Wk=; b=w92PIOqVzhKfWS+LrUdtx6d+yUKZiqhr38doblrNLphMBHhb2Q80sRvN13EwZW862h wXrwHxEF7HQIKs+UVMgPh7VovY4U+XNGCK6Ieofrq5OJH0R+wwQLNvmKPr4R4Enl0unc utsRNm/HDQCL2ODQIJmN/QlePqzQR6azqypaRRDoJ7byoQD8k5UwE0mt6qg6WGwcEoTj J6dhWg2lOsPy6GqclEbXyn44KBW4Gm6PinhtnFe8fVB325iDYxSFzbw6Ht2Mp9nqGD/p OJTEmwCV+Sszi86yN9fxQKsOet3tOinr/H0dc/Pl272hE/D3UmTkkrKfYl+50nt5Tdbq VaSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EZ61WOgt; 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 t26-20020a63955a000000b004789dd14e07si7224193pgn.268.2022.12.05.15.06.45; Mon, 05 Dec 2022 15:06:55 -0800 (PST) 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=EZ61WOgt; 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 S233351AbiLEV4U (ORCPT + 80 others); Mon, 5 Dec 2022 16:56:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231895AbiLEV4C (ORCPT ); Mon, 5 Dec 2022 16:56:02 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E00C1FCEC for ; Mon, 5 Dec 2022 13:55:12 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id bp15so20665892lfb.13 for ; Mon, 05 Dec 2022 13:55:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=DuCbaziL7ipwUokx8SdKjEyNaVxjpbuSpAIzdJTw5Wk=; b=EZ61WOgtuGU6gpRgHDm040OTpm25fx5anWD3iDhaj+TRuQ001odDN0NCUeucYe76Xj +b/A9zh1Huo/QYb31nV5z6jqM4/fCI5ogg6FqktDWGelOhwshhTjJX5MEpLSbiR2Lg/c cf9BT0rV/DXZ3Q7QXsXSy9dHVSMGL3dikVd4zzqdZLDAehjWIJS2TQYcAUp/jj2f2tuP /BSqWRnm0cLU3zwTmfoER6jGI/mHwJ0raqJO+iVIlxy4AcqNUUgaqMSdGp0xPzZ0GqyR We1DJY5Z0Q3EpwNdr3MrBNezKl2QT+yvoxa04W/YukmUMYYSUcgMttoAygjD77wRvVw/ r36Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DuCbaziL7ipwUokx8SdKjEyNaVxjpbuSpAIzdJTw5Wk=; b=8Ly/1pna2UkrYq1Tu8sOcd0gp1ee5fJZ8jFoIF9ietsE+AiOoA3OqkU53av3S9yArN 65O1QOTaZpMn5ZyIpHKK2VxfG2dBWucxsYbnzgw1kGUd85A//nxOE5aMq7Ci55c2OWTD hdkJT5rgw4en+q8L8AkanEV0UOdy6WkKrrjv5TBbXUtDhKCJF8jEk4DeQ6TumHSewpq2 WENclxgPN+V9Mys9j88mG9EGN2iorpvU07ayV78amzW7ALighQabRdtpvW9cOokrbC84 KVAYRwZww8WD+bOU/+pl5zrm3teZHsnB9LuRgwoeamaIlYa0s/sehrxny6UsPKeY1Bo1 KggA== X-Gm-Message-State: ANoB5plw6akBImAIh126k5bepFIRZLz88qOZ5Ujdlh+EN1VkZqbytE+o X7Pkc0d9svpL268AISN7wJG4fg== X-Received: by 2002:a19:ca02:0:b0:4a4:434e:1e07 with SMTP id a2-20020a19ca02000000b004a4434e1e07mr26910750lfg.172.1670277311132; Mon, 05 Dec 2022 13:55:11 -0800 (PST) Received: from [127.0.0.1] ([94.25.229.129]) by smtp.gmail.com with ESMTPSA id k9-20020a05651239c900b00498fc3d4cfdsm2246171lfu.189.2022.12.05.13.55.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Dec 2022 13:55:10 -0800 (PST) Date: Tue, 06 Dec 2022 00:55:06 +0300 From: Dmitry Baryshkov To: Manivannan Sadhasivam , martin.petersen@oracle.com, jejb@linux.ibm.com, andersson@kernel.org, vkoul@kernel.org CC: quic_cang@quicinc.com, quic_asutoshd@quicinc.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-scsi@vger.kernel.org, ahalaney@redhat.com, abel.vesa@linaro.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v4_09/23=5D_phy=3A_qcom-qmp-ufs=3A?= =?US-ASCII?Q?_Avoid_setting_HS_G3_specific_registers?= User-Agent: K-9 Mail for Android In-Reply-To: <20221201174328.870152-10-manivannan.sadhasivam@linaro.org> References: <20221201174328.870152-1-manivannan.sadhasivam@linaro.org> <20221201174328.870152-10-manivannan.sadhasivam@linaro.org> Message-ID: <29FC6095-645C-46B1-BFD1-0CB9F05214FD@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1 December 2022 20:43:14 GMT+03:00, Manivannan Sadhasivam wrote: >SM8350 default init sequence sets some PCS registers to HS G3, thereby >disabling HS G4 mode=2E This has the effect on MPHY capability negotiatio= n >between the host and the device during link startup and causes the >PA_MAXHSGEAR to G3 irrespective of device max gear=2E > >Due to that, the agreed gear speed determined by the UFS core will become >G3 only and the platform won't run at G4=2E > >So, let's remove setting these registers for SM8350 as like other G4 >compatible platforms=2E One downside of this is that, when the board desi= gn >uses non-G4 compatible device, then MPHY will continue to run in the QMP PHY? >default mode (G4) even if UFSHCD runs in G3=2E But this is the case for >other platforms as well=2E Should this be fixed by adding a separate set of tables used to setup g3? > >Signed-off-by: Manivannan Sadhasivam >--- > drivers/phy/qualcomm/phy-qcom-qmp-ufs=2Ec | 7 ------- > 1 file changed, 7 deletions(-) > >diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-ufs=2Ec b/drivers/phy/qual= comm/phy-qcom-qmp-ufs=2Ec >index d5324c4e8513=2E=2E6c7c6a06fe3b 100644 >--- a/drivers/phy/qualcomm/phy-qcom-qmp-ufs=2Ec >+++ b/drivers/phy/qualcomm/phy-qcom-qmp-ufs=2Ec >@@ -567,13 +567,6 @@ static const struct qmp_phy_init_tbl sm8350_ufsphy_p= cs[] =3D { > QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_TX_MID_TERM_CTRL1, 0x43), > QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_DEBUG_BUS_CLKSEL, 0x1f), > QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_RX_MIN_HIBERN8_TIME, 0xff), >- QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_PLL_CNTL, 0x03), >- QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_TIMER_20US_CORECLK_STEPS_MSB, 0x16), >- QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_TIMER_20US_CORECLK_STEPS_LSB, 0xd8), >- QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_TX_PWM_GEAR_BAND, 0xaa), >- QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_TX_HS_GEAR_BAND, 0x06), >- QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_TX_HSGEAR_CAPABILITY, 0x03), >- QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_RX_HSGEAR_CAPABILITY, 0x03), > QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_RX_SIGDET_CTRL1, 0x0e), > QMP_PHY_INIT_CFG(QPHY_V5_PCS_UFS_MULTI_LANE_CTRL1, 0x02), > }; --=20 With best wishes Dmitry