From patchwork Fri Apr 26 12:20: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: 13644702 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 5BCE3C04FFE for ; Fri, 26 Apr 2024 12:20:42 +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=eX6iI+/1ZGR3df fEfYzH6jJd033s3AFxmqQcZG8BpIAGjcYDHvyg+9jlMJPWJP/6zgik/+850/JWza8U+whBVPOcgzu OiFznfxOWw+vTF+kuH6NcG30M4Q+uMVHx1IOzvcLi0Jij8qv+cP+94kluDQm7P6DvkuEEuIAqJVb2 3XMhdanEV8Oy1FYr4dkPqxCYFkyyX2186nZeEl2+YPp7e4z0Ur+oGrsPGn+dY8A0QndyI92pvCjsF I09sjUhTYwUJqOcz0eBEQkomoit624NyS6ovHRDh1kVreOSQg+hUBYXtnxnXOEShyxdns5Uk9gX7f r2CTulSvaDHDe+ltZlNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0KZ2-0000000CRxu-3jeT; Fri, 26 Apr 2024 12:20:28 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0KYr-0000000CRrc-3Ran for linux-arm-kernel@lists.infradead.org; Fri, 26 Apr 2024 12:20:20 +0000 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-34c0f5f5cd0so1427255f8f.2 for ; Fri, 26 Apr 2024 05:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714134014; x=1714738814; 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=I+hKlgc7jLHsUgkydVJ33I6x8tfF2QsfrN5s2Sq9vPijQf/P4PUmtfJ+sJ3wlheei5 7a2IYWRnTjTjqqHSCHaKwIZKKZEbMrMWI0me2fQKmzwRdBm6hQ3ij+aCDSctYi6yvBRQ bTykC8eP9onC6mzQF54RtLtvj2cyfBAAFMatjyM5UEdWx9HJBBIgFqzxh+1CYbL2QFwS I4rWTYDLJmeO8jueU75MdSJj3l3jRdo6QyZHh6tih8uN040Bfby0GNDE+axqFKNMO5d1 Dkc1y7/oumdQoUUsFuARv9bP6GVe5wE7225QRCsSBEh1O1UJ4wRYjGqRD1EWtDg9QQal Bczg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714134014; x=1714738814; 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=Imu68yyq5Qo2e7b8vuz8NxYUDVABd0aqoN5G38t+yIyvkzvZoTOhGcA0FiupxWfalw FeP9Z4JRHtyT0QWRrdllZZnOFvqa0sIQ2GF4Enho6v2p++ZBpE8ASGFLAdtkuEoBWc6J kYxiBg56cQR3VH64RrgSuVgrhytix/NK1Ev9vmre9JIcBnDRdI754vjhRXAc+DNGZEqI +3RggYVtu2qPLUR740diT/V2rg0uk16rYojgkmzsf6Ggq35H8SQRAG7ypYtwO6cM6NFc 7uLOW7Lw4dO+uOVbTpVyJdzG/yZBsRNzkkdfxUPCkBNemWfAh/Dd9ccDnBvXFRnoZ0Ps QiWQ== X-Forwarded-Encrypted: i=1; AJvYcCX9ZKOhrrhKmiG5hcFFd4uKYhkPz0aL54MMHtC2XcaQqhYHSC9S9IaD0+Vxp1UDFZcVaweemxlKjs7wOXUWePlTCjyWBnK/eZRY6tAK7aIWnzdYxp0= X-Gm-Message-State: AOJu0YzDwXfq7OVlBH/3KNOd1ebYJ7kZIAkcmCx6OJRTsg4ZgbelJWSZ id4PhqEyYQclihAYJBTGW3zJeYOCYEe+hQE4AGPufoPQqrZMJWGGna1/u1hxqTc= X-Google-Smtp-Source: AGHT+IG8i83ojCM1oXNScY2W5iBraTj3fEifxmmTUKGEf+srJSEE4C+rnvkyLZ6DswUhCabT5iITlQ== X-Received: by 2002:a5d:6c61:0:b0:34a:5640:45e1 with SMTP id r1-20020a5d6c61000000b0034a564045e1mr2398002wrz.45.1714134014345; Fri, 26 Apr 2024 05:20:14 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:63cc:9bae:f542:50e4]) by smtp.gmail.com with ESMTPSA id q2-20020adff942000000b00346bda84bf9sm22478146wrr.78.2024.04.26.05.20.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 05:20:14 -0700 (PDT) From: Peter Griffin To: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com Cc: 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, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, kernel-team@android.com, Peter Griffin , Krzysztof Kozlowski Subject: [PATCH v3 4/6] scsi: ufs: host: ufs-exynos: allow max frequencies up to 267Mhz Date: Fri, 26 Apr 2024 13:20:02 +0100 Message-ID: <20240426122004.2249178-5-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog In-Reply-To: <20240426122004.2249178-1-peter.griffin@linaro.org> References: <20240426122004.2249178-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-20240426_052018_049133_2DFF304F X-CRM114-Status: GOOD ( 12.14 ) 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 */