Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7237102ybl; Mon, 23 Dec 2019 21:51:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwmdcZDi+th0w7bzIWlZPKTzxeGLeyCgsuRDcRVWIRazQ4ZujNkVTcnIUSTIZ7zdIni/8Hx X-Received: by 2002:a9d:2c68:: with SMTP id f95mr37288628otb.33.1577166708077; Mon, 23 Dec 2019 21:51:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577166708; cv=none; d=google.com; s=arc-20160816; b=u7Zir9fKeIO1JN0bavWsfSpCmRjDTLIbLncc/rTkRRRBahEs6xWLs5f0P6lS48lRF9 KYZ/ogRZ8FYNEp/4j9Ijhobg88ejxp21k9/YzTlRIOgaBFgaqcg1JWCVSQX576Jsg4TH DPYctMwfu9Mitrd5tC9kW36yiYGEl3M7vLQgxjgfavaOUNESoP7PlQNyQdiXQPTJJCX9 D4dS4QJxHNZrDBoLAbai3L2RfQxhWPr1xbpZVq573zJSwnFGkMozMsLkEc8QsDtexbgN KKyPSZEU3sA7OFCQxtJ9tA3m01BDPaGBke6Nu9GiT9TouXNAGGgjJ6wGXNbYahIUY5Kx 3ylQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=CFnavtNpq98L4zVKbo5v3U5dZHO4SedTs2LixKWu2/0=; b=NQXPX2o2QV/tP8C9HhMmxjHuc/DhduLYijU0wzYXRmU9At6yi85XEIu8bqN50TlgJt V4xfz5OvvtdzJrKFIB8vuWNAi87QUrSs4czixLxze223AJVSeAsoJBscLQzYSNN3i0EO odiSicxy0A2MbFZruvlSLVoELG3cGi23fGwzOQVd/zU7/b5mQPwi7e7L4KHdvwGdUuQe Wt0Lzb96vFvRGF9tf8abjBoahKQms4Pj4ARcLM1zcFzSeu/ebe4+uOeIGsK9X7wv9VG0 gQRh+ULPK/hnx2XMoC4kEKTLI4TzUobywkyzVQWPbXw8SuJ9PBEgvwoJou7iXOnQCzyV m1jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=kexs5sDE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j18si11439194otq.275.2019.12.23.21.51.25; Mon, 23 Dec 2019 21:51:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=kexs5sDE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726206AbfLXFt7 (ORCPT + 99 others); Tue, 24 Dec 2019 00:49:59 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:61516 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbfLXFt7 (ORCPT ); Tue, 24 Dec 2019 00:49:59 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1577166598; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=CFnavtNpq98L4zVKbo5v3U5dZHO4SedTs2LixKWu2/0=; b=kexs5sDEhPQ/l8WC88LoKWsfPCuoaTQlrAWMIXc/id1m1XmG1EN3MbDenXvBHHucUsYD/OSi eGxSceaTmWcT7bmZph9YONEOb4waS8wSfp923zoW0487M0Cd37pzNMd/fS66RhoY65T1OU7N EBq7uNh/wxCHHVdigVy2vp2xidc= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e01a701.7ff5e729db90-smtp-out-n02; Tue, 24 Dec 2019 05:49:53 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 081CAC447A3; Tue, 24 Dec 2019 05:49:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cang) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7F13AC433CB; Tue, 24 Dec 2019 05:49:52 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 24 Dec 2019 13:49:52 +0800 From: Can Guo To: Vinod Koul Cc: Kishon Vijay Abraham I , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Andy Gross , Jeffrey Hugo , Manu Gautam , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/4] phy: qcom-qmp: Use register defines In-Reply-To: <20191223143046.3376299-2-vkoul@kernel.org> References: <20191223143046.3376299-1-vkoul@kernel.org> <20191223143046.3376299-2-vkoul@kernel.org> Message-ID: X-Sender: cang@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-12-23 22:30, Vinod Koul wrote: > We already define register offsets so use them in register layout. > > Signed-off-by: Vinod Koul Reviewed-by: Can Guo > --- > drivers/phy/qualcomm/phy-qcom-qmp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c > b/drivers/phy/qualcomm/phy-qcom-qmp.c > index 66f91726b8b2..1196c85aa023 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp.c > +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c > @@ -166,8 +166,8 @@ static const unsigned int > sdm845_ufsphy_regs_layout[] = { > }; > > static const unsigned int sm8150_ufsphy_regs_layout[] = { > - [QPHY_START_CTRL] = 0x00, > - [QPHY_PCS_READY_STATUS] = 0x180, > + [QPHY_START_CTRL] = QPHY_V4_PHY_START, > + [QPHY_PCS_READY_STATUS] = QPHY_V4_PCS_READY_STATUS, > }; > > static const struct qmp_phy_init_tbl msm8996_pcie_serdes_tbl[] = {