From patchwork Wed Oct 9 11:21:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13828231 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96454CEDD88 for ; Wed, 9 Oct 2024 11:58:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pX3tu4r0T8hfLp3m76HchWclu4+8PXIAtD51r7i7hmo=; b=KvudBRh74Dus2U3jPHVlheN2we HxSMwDB7hsXiqxX6iMbZ+5f1Zfe4SDacO2GSw0Yl88fBMtZETaseXQKjCNSoCMqyd5ZEYfOOP4Fet 0v/4ZMRUSSgbCf9smdoK3tZY9xM7rIO4quE9HiGhhZzw4PcM2JzphlGJM9/BreOMCGdG79J/JXPqE wwVYxBJB4pk6CXDc7rV3O/zroG2roFHE0aRYrfLPFz/Q4LB/dyGg2mxgzlVtn5+FHt0ty4Evjcrsa jhBHvB8H9DPXvExOH6g1vHGagKtxKxzWRR3E2kEQayeWXb81F24YElq1CTcsuWB+9nU9BP+Pf4DUv Mp2oWf8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syVK9-000000097Vi-3nKs; Wed, 09 Oct 2024 11:57:49 +0000 Received: from mail-wm1-f47.google.com ([209.85.128.47]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syUlS-000000092W0-2JVp for linux-arm-kernel@lists.infradead.org; Wed, 09 Oct 2024 11:22:00 +0000 Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-43111cff9d3so4344215e9.1 for ; Wed, 09 Oct 2024 04:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728472916; x=1729077716; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pX3tu4r0T8hfLp3m76HchWclu4+8PXIAtD51r7i7hmo=; b=OZu7pHIMC0H9eKF7IDL5X9ftfMJolgM6k7AcdKQ093/N8+r+fJVohRl/hCXOpNZ+HA 1X3Bh+X/QZdeFMync2t4OLYk4uQ5iqv50U+aCbguMyEJyULLcsrDJmEorLqRZy5SmWHy h1eohcW7rXI7Z816aBwhtPhHAxrHaKlEcee59VLAnS9vFeD+FaAplLW4g+hg6wcTwGZT T0XxI/BYwCvtzII8ZlXdCD6NvbYfnTutxuG1L52wiV5Y+8hLTpbeZTQ1RDh0wuHH95gf WEAdjOO+gxoHRdMOAjKgXKZt4FENbhF4aLBUPOc52Yu3BiCR+WDpvs9pITpjCt7WrHe1 P8uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728472916; x=1729077716; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pX3tu4r0T8hfLp3m76HchWclu4+8PXIAtD51r7i7hmo=; b=mJrxdr+euZe0dQ1ToGtv9qhszKMLlz8Cz6FrFgHovu+I6eHgRJyZopLbUEyp8dctPO sx/4cDUdRgVv8O7tAr49BdtHK9usEx/oZB/B2N/wxYN1kZHQuuuHylaZHnQe4fVB13rq 8D5VhCvZsOtHE7brOeee/bep94Y42Q+8lhsgABalKEpUnDnOWFb/uDThC2OhEwRDoSmX dZHTLkU41KCnpwN8l/yYXyP+9IBj8bi+LgUp/d+kAiZ313lX21PPGyywnIAZw2N/ISgH Vnzs+eHQGxuL3at1cxCtF0hi6huJ2/JBca39ztTAA9YmUMyEY8q87Lb4khbQxcTCbGhv Ho4w== X-Forwarded-Encrypted: i=1; AJvYcCUysQvuZZDOAE+VssfPgffvByzpgUH7kNxRvcOh8qzN/G8TEiO6U0jx86izZhw5YuQi62li8mTNRAMsjIAD2GY8@lists.infradead.org X-Gm-Message-State: AOJu0Yw4ujUKpWIFxQAVwkw1wJplVpKlh87ARA3P9OZJnZgvVKGblIgM V+nUApWLkIOUN+sTvHHQTSdbAuXd2tBmZ19osgkSQ4WFWX+G5AmiWWVBepPoUas= X-Google-Smtp-Source: AGHT+IFlZ/wsuxYNG5Un8P/i6V6t9CA6cih0ZKz2NoHn5swbiS3uEf9ML/RKj5myS1RUufBKpr7pTA== X-Received: by 2002:a05:600c:3b12:b0:42b:afe3:e9f4 with SMTP id 5b1f17b1804b1-430ccf08948mr14280075e9.3.1728472916015; Wed, 09 Oct 2024 04:21:56 -0700 (PDT) Received: from gpeter-l.lan ([145.224.65.7]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4310c3dcdcbsm12331445e9.0.2024.10.09.04.21.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 04:21:55 -0700 (PDT) From: Peter Griffin To: alim.akhtar@samsung.com, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com, avri.altman@wdc.com, bvanassche@acm.org, krzk@kernel.org Cc: tudor.ambarus@linaro.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Griffin Subject: [PATCH 4/7] scsi: ufs: exynos: Add EXYNOS_UFS_OPT_SKIP_CONFIG_PHY_ATTR check Date: Wed, 9 Oct 2024 12:21:38 +0100 Message-ID: <20241009112141.1771087-5-peter.griffin@linaro.org> X-Mailer: git-send-email 2.47.0.rc0.187.ge670bccf7e-goog In-Reply-To: <20241009112141.1771087-1-peter.griffin@linaro.org> References: <20241009112141.1771087-1-peter.griffin@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_042159_017278_EB5D95F5 X-CRM114-Status: GOOD ( 11.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The values calculated in exynos_ufs_specify_phy_time_attr() are only used in exynos_ufs_config_phy_time_attr() and exynos_ufs_config_phy_cap_attr() if EXYNOS_UFS_OPT_SKIP_CONFIG_PHY_ATTR flag is not set. Add a check for this flag to exynos_ufs_specify_phy_time_attr() and return for platforms that don't set it. Signed-off-by: Peter Griffin --- drivers/ufs/host/ufs-exynos.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/ufs/host/ufs-exynos.c b/drivers/ufs/host/ufs-exynos.c index d685d3e93ea1..a1a2fdcb8a40 100644 --- a/drivers/ufs/host/ufs-exynos.c +++ b/drivers/ufs/host/ufs-exynos.c @@ -546,6 +546,9 @@ static void exynos_ufs_specify_phy_time_attr(struct exynos_ufs *ufs) struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr; struct ufs_phy_time_cfg *t_cfg = &ufs->t_cfg; + if (ufs->opts & EXYNOS_UFS_OPT_SKIP_CONFIG_PHY_ATTR) + return; + t_cfg->tx_linereset_p = exynos_ufs_calc_time_cntr(ufs, attr->tx_dif_p_nsec); t_cfg->tx_linereset_n =