Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2591824ybl; Thu, 19 Dec 2019 16:45:38 -0800 (PST) X-Google-Smtp-Source: APXvYqycNbeRU6OQENkDrFgEb3OswnhKCJBFiALL3eTqr/yBMHAayhibI5nVSVeZG9gDv+3HzqTC X-Received: by 2002:a9d:402:: with SMTP id 2mr1945342otc.357.1576802738259; Thu, 19 Dec 2019 16:45:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576802738; cv=none; d=google.com; s=arc-20160816; b=HynamSARlei1EHDDDOBKSjnNFPNUMa84W4Oyh8qxzK5Yg2exC+D0DbAasYgXLEXsLZ ht/+41EaBdaVkA16qXRlyAseZ3lqBCVpGPGlJvKU7auTUM0hi6DMByug4GcUmiZD9CWX 8PbR6SYT66Jz9M1hylw7fXo+Lxp3DYGPQ48vhI1rfhynj7Qrzt4j7buNtAQ6IYf1AW4L aj2otSZ4DPw+5/fjjM3+Rvj423RVrC9V35DbDh46t/98QxW9XVBy1tYlhQcbC3rQtaUd FmOXe33nsNbXS/TxGJQJdw+W3XyPu5TuurJzFTVzyLepxgPNKvZ+6tkDlgwzwdV5yy0l Ns1w== 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=6xe+Bi/b3YFf+5YXiGnceVZDQa8BVLlPiBIbPciKOWY=; b=D1KEBa86xY+6eZq4XdU2R70lP5c4Kxgx9I4Oz7SDSIcpqJzUBdkkaNKkrz3qpSWj3o YrTl1+ag0efrMCFUbMQsvNtgcO9+yBk9uEtCdCs9dnozMPDFnsVMxUcmmuIkhCsT73NB liPdiuwaMFdbcBosxOOzlACz+i+Kiy48Hcvke3MKRSgRA/W/s7aYvFzfzq3r+PkGFlQH OCySbPrPnxRnaH795SX/+brxEGBo+qtDxaq0n1KLFWSDyP6abAUH2T28xTR6yCpTTh6y yre5Ft+pWGDhFxM5cpNusZwqKuQpoGNufb15BGwJt2yuQu75ae9oiDVPUHfYxg6GMd8Y LEHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="Icotu/xE"; 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 t1si4344188oth.94.2019.12.19.16.45.26; Thu, 19 Dec 2019 16:45:38 -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="Icotu/xE"; 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 S1727071AbfLTAof (ORCPT + 99 others); Thu, 19 Dec 2019 19:44:35 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:28276 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbfLTAof (ORCPT ); Thu, 19 Dec 2019 19:44:35 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1576802674; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=6xe+Bi/b3YFf+5YXiGnceVZDQa8BVLlPiBIbPciKOWY=; b=Icotu/xE2tHdfZ50IIPyacxn5W9/1XcjPXBdNejKYF28KlZjYau5PD8xfoLsuKpJrBzN/ACT b2m7PGGh+X22kLvCNQBdA6IBYnUUuFJnHmgzc7+gT23kP64/24c/kwoPLbB0uKwYhuDlk8jL m7Rsu9MjqvJcLVOOsUzaglKN6Bw= 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 5dfc196a.7f82852ae998-smtp-out-n02; Fri, 20 Dec 2019 00:44:26 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E2475C4479D; Fri, 20 Dec 2019 00:44:25 +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 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 7FCEBC43383; Fri, 20 Dec 2019 00:44:25 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 20 Dec 2019 08:44:25 +0800 From: cang@codeaurora.org To: Vinod Koul Cc: Kishon Vijay Abraham I , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Andy Gross , Jeffrey Hugo , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] phy: qcom-qmp: Use register defines In-Reply-To: <20191219150433.2785427-3-vkoul@kernel.org> References: <20191219150433.2785427-1-vkoul@kernel.org> <20191219150433.2785427-3-vkoul@kernel.org> Message-ID: <9e69d0b803cdbfe69d6edb62b8aa9b24@codeaurora.org> 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-19 23:04, 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 c2e800a3825a..06f971ca518e 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_SW_RESET] = QPHY_V4_SW_RESET, > }; > > static const struct qmp_phy_init_tbl msm8996_pcie_serdes_tbl[] = { Why is the QPHY_PCS_READY_STATUS removed here? Then what "status" are we polling here for UFS PHY? if (cfg->type == PHY_TYPE_UFS) { status = pcs + cfg->regs[QPHY_PCS_READY_STATUS]; mask = PCS_READY; ready = PCS_READY; } else { Can Guo.