Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7155917ybl; Mon, 23 Dec 2019 19:42:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyD5TvlvTTpJpaHEg5cMjLbi26ZiFvOKS3Mob7n3ciFLZni9M5x8guCQdnoIpZ1t6YQCTvL X-Received: by 2002:a9d:6acd:: with SMTP id m13mr32675433otq.313.1577158968621; Mon, 23 Dec 2019 19:42:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577158968; cv=none; d=google.com; s=arc-20160816; b=jAz9pQDZI9Jr8m2pO5m61EvVojLaIwWBvXiiFd2QrENjh0El5vt3zm8HnS+cTu8xO1 JjYT7KZSsyLOcfZ1QBkz5GvjKn6gM6o6I5dIMPNz8GLUNQlb+SspnGsEzWDeEsfHCEty Z19I5QBsF1IRBSTAMX33kk1ntSiJ6xrHuTsVQ6hZ4hR+9jlHPn6KhNxonbqOQ4PK35PJ agipJ6Uipni0Btl+mjhglgDCEJqUtLoSu5c7kuYoWkDLJ8qTiJongqrA4mvtYzqzjY93 K/2rj2i2QaeG8X+Yd0mfp7zVB597FnAxm9ouIQijR37g8q7gDVheW2QutD34p+uWDcLw okkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=dYhwXDr0EF7Rb2PsNAa3MjNox3b+pr5E1/iA4TJHggs=; b=mlouGAHyD66qJOW9DwFJqvL15ALtuZu5i08OOBTvJasZUJRXyiHQHwxnM1oE65WPWW s6H/COwXacXGNAHC7ENNO55S+AeQGZIUwRcnoFTCKgHJO8xLxJiqkxxt83Ozk1hdaxeN 3ymw1wdXRixgMuC5FW/z129ZBWwFLVsVKGf+iNaxK6s31Fiskg+ByQ9GDuGQiuZfnT9D Q4uKe6DCx005Y8trskCLK4gW0cQZrlGFar3bBtXst5quHcDuerqpLjWTWHk59ejqHhZZ OgNELxLCWGfK+a4kiLRBruuTjekVO0N8qWp5uyl7ard8bK5Qus1gIyEBLGJomtOApjlM MLpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=NXrPG4sb; 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 o4si10715166oib.70.2019.12.23.19.42.36; Mon, 23 Dec 2019 19:42: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=NXrPG4sb; 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 S1726899AbfLXDlm (ORCPT + 99 others); Mon, 23 Dec 2019 22:41:42 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:59330 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726866AbfLXDlm (ORCPT ); Mon, 23 Dec 2019 22:41:42 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1577158902; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=dYhwXDr0EF7Rb2PsNAa3MjNox3b+pr5E1/iA4TJHggs=; b=NXrPG4sbzrwTe+GjIzeFeYOi7EPCEak6FlCrsvGCGo3jl/SrFEzBvnLGS23LjnrxBSAvJaja usxO5wxThf9IpD5gYmTCnjhfiYAD+GPHe6YqqU4GsdDopFBg/rdpX/sbd7QAeupffkU7N+Xq Cv6lPpqgo7vbL2oMUXUR0hdEc4Q= 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 5e0188f4.7f5a48758228-smtp-out-n01; Tue, 24 Dec 2019 03:41:40 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B93E2C43383; Tue, 24 Dec 2019 03:41:39 +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,SPF_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from [10.206.24.214] (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgautam) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0C941C433CB; Tue, 24 Dec 2019 03:41:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0C941C433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mgautam@codeaurora.org Subject: Re: [PATCH v3 1/4] phy: qcom-qmp: Use register defines To: Vinod Koul , Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Andy Gross , Can Guo , Jeffrey Hugo , linux-kernel@vger.kernel.org References: <20191223143046.3376299-1-vkoul@kernel.org> <20191223143046.3376299-2-vkoul@kernel.org> From: Manu Gautam Message-ID: Date: Tue, 24 Dec 2019 09:11:34 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191223143046.3376299-2-vkoul@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/23/2019 8:00 PM, Vinod Koul wrote: > We already define register offsets so use them in register layout. > > Signed-off-by: Vinod Koul > --- > 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[] = { Reviewed-by: Manu Gautam -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project