From patchwork Wed Nov 23 07:48:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 24771 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2649111wrr; Tue, 22 Nov 2022 23:52:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ZfQdZDLWNanrN6mxl6YIcktOJiMJKh881v7RzbAOn9bbBf3XdInWKrdbx0FFteFTiniIl X-Received: by 2002:a17:906:1614:b0:78d:4e5b:ffaa with SMTP id m20-20020a170906161400b0078d4e5bffaamr6453367ejd.455.1669189975225; Tue, 22 Nov 2022 23:52:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669189975; cv=none; d=google.com; s=arc-20160816; b=pelz4nKjXPeo6p51hV0wuiY3NPDppLwDPWmArQiC4YcFVbyz5vL/2j7fowgnSRO6EE e/Y3+Okpto1+IuRrp/MtwD+cpwNtLis6QPhI+8uHH7+IKNdk/uoPkTyUl7yJivI+CLWx 0Mtfc/kUopxzxbItpBW9NtVnq7wzOiBFg/lbEnOFscoWZHoXwhk7DLoAjXRFki4GytDk jN2yP+4ytl0j53CRfAdHU8IV6akM0hw1JijXLAgScFd5vCXlIqLQ0AfjGE1j57xZYCdc vUpBxYfRFkw4SNVhfIEjsgnWvH6v05Brwt3xZ9jP8c3SLENtzy4SYYpCwPnx+QxHLH7B uCsw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dxBfeAGPJSh5Y/5FKQg+M0y4cyLZHfyLwZKtosIJVD4=; b=yWzWu/c+qCLY4IVDnJrlvyC2lu9wf1SUt/fwg5E9pUZbGZaF2+Bw6sEuDlipUGwLdS G4vtSnbuH4JbMvUxfyYg3pE/etea3kudzvCZt4EOQgX2gbwh1V9VE+ESY9MH2LobZgOs 3kRaENrCCe/ACFPycopJwrYTb5asXdhwdqDoUtZv49ndD92cfn/GwKL5EPDdLSHnpZtX WlP6fgV2nHuUEhKQ9vbLQe8OxIqRyfb2QYVYooxuaBuuwtngd8A3FpnxsTL5958xMnqH E5uu4YGJ2hOHHQnukyZ8VEJV+Epq8xT4Syfwr5v2GdVxfaAREUY4iNnZfGsS6ScqR8Ly C19Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hvohjQO8; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020aa7d287000000b0045731196587si12049988edq.64.2022.11.22.23.52.32; Tue, 22 Nov 2022 23:52: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=hvohjQO8; 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 S236334AbiKWHvd (ORCPT + 99 others); Wed, 23 Nov 2022 02:51:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236323AbiKWHuM (ORCPT ); Wed, 23 Nov 2022 02:50:12 -0500 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFCB6FA73D for ; Tue, 22 Nov 2022 23:49:58 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id b62so16159665pgc.0 for ; Tue, 22 Nov 2022 23:49:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=dxBfeAGPJSh5Y/5FKQg+M0y4cyLZHfyLwZKtosIJVD4=; b=hvohjQO8JYIIopMXFu3hU+uN5hELxDhjhQ7dxyj3c+Q/LQ4Fb4Flb51c62NHkSRJNR FO6JfqvdsTm/Ayc9GUj0DD4tkpVcvaF7XH3MFy3Zl7uWWme3K2G7lAhwT/gFjWgejGgV R/DXDHDhUtzAnReZu8ggSAJzA7yDv0X8sSp8abzoUZAdtJli6tU5aYK/P5L9ZE3T3qw8 LcDcjGEBu4HiVgt+A9RioAgoVRtUULYluxAZxExY8ChKkpS7CccBR7iePfNBjbw/QXpi HfBMHw5SPmv4Hw5i8Di256ieI2eTIxYr2QHYim+S5I1Fmx1kHqBKMv5o2AM9QfAsMeQQ eW9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=dxBfeAGPJSh5Y/5FKQg+M0y4cyLZHfyLwZKtosIJVD4=; b=QBk4oK1cfswQb1HShxlSVzMbJZCbrDn2DU1PZSGOICIa7NjhHeIEV8pWyDNBfYGyBK BuAVBDe4hbjzVcjRcLD0hvrKTiL9MT0PWAp7V2tphUuPpY8vmwsAXP+O803xm9FDXTvw oFRZKhVtmwkdG2163DURXZ2CKOdYcmznih50arhzUsEkzoBfWnVSeG8b+bNGovH9DRMR gYKbnQIZxUp3rrhFrFKYC26QqS/aYAJKa5ap6AOAcTJk0f/pH/e4yCgi7u1Oj6P7utjJ LTDqZv5wOi1D5SCcGGD6KgQhwwyngnrXVpQT7eZ6sNe4one4iL8YU99wZrY06Op+e+qN 0S2A== X-Gm-Message-State: ANoB5pkC9kzD7JG8yJbS4xkN03zCblB/Fz1VfGc3zBG77of5dQxh6d5m 3Sy1IYm+UPHxvS06gS8Jjj39 X-Received: by 2002:a63:4c4d:0:b0:46f:8c3a:8b2b with SMTP id m13-20020a634c4d000000b0046f8c3a8b2bmr7051732pgl.477.1669189798376; Tue, 22 Nov 2022 23:49:58 -0800 (PST) Received: from localhost.localdomain ([117.202.191.0]) by smtp.gmail.com with ESMTPSA id s16-20020a170902a51000b001869f2120a5sm13334059plq.34.2022.11.22.23.49.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 23:49:57 -0800 (PST) From: Manivannan Sadhasivam To: 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, dmitry.baryshkov@linaro.org, ahalaney@redhat.com, abel.vesa@linaro.org, Manivannan Sadhasivam Subject: [PATCH v3 14/20] scsi: ufs: ufs-qcom: Fix the Qcom register name for offset 0xD0 Date: Wed, 23 Nov 2022 13:18:20 +0530 Message-Id: <20221123074826.95369-15-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221123074826.95369-1-manivannan.sadhasivam@linaro.org> References: <20221123074826.95369-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750272547507353626?= X-GMAIL-MSGID: =?utf-8?q?1750272547507353626?= On newer UFS revisions, the register at offset 0xD0 is called, REG_UFS_PARAM0. Since the existing register, RETRY_TIMER_REG is not used anywhere, it is safe to use the new name. Reviewed-by: Andrew Halaney Signed-off-by: Manivannan Sadhasivam --- drivers/ufs/host/ufs-qcom.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ufs/host/ufs-qcom.h b/drivers/ufs/host/ufs-qcom.h index 9d96ac71b27f..7fe928b82753 100644 --- a/drivers/ufs/host/ufs-qcom.h +++ b/drivers/ufs/host/ufs-qcom.h @@ -33,7 +33,8 @@ enum { REG_UFS_TX_SYMBOL_CLK_NS_US = 0xC4, REG_UFS_LOCAL_PORT_ID_REG = 0xC8, REG_UFS_PA_ERR_CODE = 0xCC, - REG_UFS_RETRY_TIMER_REG = 0xD0, + /* On older UFS revisions, this register is called "RETRY_TIMER_REG" */ + REG_UFS_PARAM0 = 0xD0, REG_UFS_PA_LINK_STARTUP_TIMER = 0xD8, REG_UFS_CFG1 = 0xDC, REG_UFS_CFG2 = 0xE0,