From patchwork Tue Apr 23 20:50:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13640714 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 7942FC18E72 for ; Tue, 23 Apr 2024 20:51:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dmpmLCxBrJr/kpyN4BOfzhJSZzVltqeTVVaaqqZFrZI=; b=hiuYoPrQ87UnDa 9VyHbqFL9zgtiZ9+QQ9uOyFPwdFWIsO0EyuLL15U+UyuLnkmfRGh5RD0A7P6ibfGQieqQwHUlmen/ q96BcleF38snQ69Geh/llZrbIn2ZGbiNc3asAONkl5fd6KEIyBq8TJcBsywhrYeIT0QF80YJ5XBcQ SQQSg72xWSbW7efpEDNZVPjtAxZmewCKj5bRewp2HFTzwSLDwpjWDwDUVo5gE7/vHGTjzuxNH6aeb kFjQk3d3TVmJ3GOSZthivX5nT8s0gR/xFTsmk1R6dOnfCJSyUY/Ia/nvI+nV5ezgNnDD5isAtEBfC gwiTYhdapWEwnD1wfe1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzN6p-00000001TJm-0hWk; Tue, 23 Apr 2024 20:51:23 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzN61-00000001So6-0tyd for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 20:50:36 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-41aa45251eeso13713035e9.3 for ; Tue, 23 Apr 2024 13:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713905432; x=1714510232; 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=s/GoVzExBpe8QxX9A9OVe1Uavi5SgYLv/AxKVNUl0KE=; b=Enewye5gTkfsv8oyXGqfH37zv3RdXdLRmFfypd74eyjL/G4k6FfRjXiVX8gVFzN473 nYmR0O108bztt7m/+KEUu8CTd0ZzlwT8Fi5bEWlGyULuVPAwvXYTXHThIs/N9O2UVC9w hll9qekF8ujjDbk2/z9M06eA1pNKvx6k8PGSFTRjUdWkddA2pByh8DqiDeITY2QhwqZ5 tmeIy5IKUA2ImSY7+JDDubBoxnABx6yAQhuVRioFtTaW6i8wtH8ua14iJapDz2PunsHi +cLkH2ubqGVNtjH9EYP+nxnxOfdiRP+iTXlFse/ZO+YoEbcMxlz3E1HZsTqPLxuWikOo WeMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713905432; x=1714510232; 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=s/GoVzExBpe8QxX9A9OVe1Uavi5SgYLv/AxKVNUl0KE=; b=vTgQrpEa6x2WTqeZ+Ltbi/YTiMeh51xyclkN102Y5bfNs3Mh474zG7ABbya/bSZODp mUgcbSmv+KPWkMuAhLRIQnK2yoUkjdBUf5UDRqiZL2Y0dPode0EOcpRLBT6prgIKCCSH E5L6ULLIW3DUkLtQh0bMKbMD2P3qm4fzxROtex5Xe1kkbxoXbk+rIRKYXEqcnV5iEVWY NtID47rda5SqGdKMKPMRqWMSZfVaer1kUI14crs47l7Y7GA5T3r9C7WclcBUGX5gbhrJ i44djvSvsXqCwJs7XxJ/LUqlVAGVPTgUK9fXrjScNRvL1XuQkKV5rRZxjdiJSfIJ2F2v SEsA== X-Forwarded-Encrypted: i=1; AJvYcCXv2JVJbKteRa5xKV7j05IELYsjz6a3PejO3+cD1kTCVhd8UDXegKw6a5hKGb1bBeVzmvQmoajjZdTEX1c2abkuabxEtWQnXU4+WvPan4BAzVliAlo= X-Gm-Message-State: AOJu0YyGsEfjtMI1PFRE2kl618gcHqdrIjp7ADaOp9sOZB4OgP1TAp20 lGh5jvN7yBG8d/UieD4ZAJyGaab4o0aBtPN0Cd/nt3xJ42snD2iNre7JY7EC4WY= X-Google-Smtp-Source: AGHT+IH6z+0zlU25050wMvD0vuxotNnh43coyHQIMqF5YmCpBQNXBCfzRnt18Ll4b9pvC+KY+bIGQA== X-Received: by 2002:a05:600c:4590:b0:418:f991:713f with SMTP id r16-20020a05600c459000b00418f991713fmr263623wmo.23.1713905431899; Tue, 23 Apr 2024 13:50:31 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:4269:2542:5a09:9ca1]) by smtp.gmail.com with ESMTPSA id bg5-20020a05600c3c8500b00419f419236fsm13065443wmb.41.2024.04.23.13.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 13:50:31 -0700 (PDT) From: Peter Griffin To: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, vkoul@kernel.org, kishon@kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, s.nawrocki@samsung.com, cw00.choi@samsung.com, jejb@linux.ibm.com, martin.petersen@oracle.com, James.Bottomley@HansenPartnership.com, ebiggers@kernel.org Cc: linux-scsi@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, Peter Griffin , Krzysztof Kozlowski Subject: [PATCH v2 10/14] scsi: ufs: host: ufs-exynos: allow max frequencies up to 267Mhz Date: Tue, 23 Apr 2024 21:50:02 +0100 Message-ID: <20240423205006.1785138-11-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog In-Reply-To: <20240423205006.1785138-1-peter.griffin@linaro.org> References: <20240423205006.1785138-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-20240423_135033_472825_D63159CB X-CRM114-Status: GOOD ( 12.34 ) 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 Platforms such as Tensor gs101 the pclk frequency is 267Mhz. Increase PCLK_AVAIL_MAX so we don't fail the frequency check. Signed-off-by: Peter Griffin Acked-by: Krzysztof Kozlowski Tested-by: Will McVicker --- drivers/ufs/host/ufs-exynos.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ufs/host/ufs-exynos.h b/drivers/ufs/host/ufs-exynos.h index acf07cc54684..7acc13914100 100644 --- a/drivers/ufs/host/ufs-exynos.h +++ b/drivers/ufs/host/ufs-exynos.h @@ -116,7 +116,7 @@ struct exynos_ufs; #define PA_HIBERN8TIME_VAL 0x20 #define PCLK_AVAIL_MIN 70000000 -#define PCLK_AVAIL_MAX 167000000 +#define PCLK_AVAIL_MAX 267000000 struct exynos_ufs_uic_attr { /* TX Attributes */