Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2746987ybl; Thu, 19 Dec 2019 20:24:28 -0800 (PST) X-Google-Smtp-Source: APXvYqykgOcnIXjPtDRS1qFc/kFpGoS3pqFzGn7dlY6AK/6SUapFK1AfJ5QQlWS3COY8V4DjccvP X-Received: by 2002:a05:6830:2102:: with SMTP id i2mr10923575otc.123.1576815868818; Thu, 19 Dec 2019 20:24:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576815868; cv=none; d=google.com; s=arc-20160816; b=buLqp6J2lvtM0PwTAilZzD65X9dznai5mCQrQgfPHwEtdfNRzGEHJ5FYVxErOsDyXK oM09aJI4es+hUgY+5v4FldV1Hy5HV8abAWqpra7ZBknPuaNE1ctgeZUbBophNEyIHqhA RQVdyZi1MWgVnWVy6wo4/zZVOl5PM4kKhPE97zpqkabvj3cupOYHN6dO3I40Y6bZBHP6 7GfyH7kSSm0B5oGTp1PvX7mmPUqx1EikkijAFEV+F2GRkpHiY++RwKF1SLXRiUQAo/gU Wf3qttx9GhtMthYpjhI3nw4IR/P/UZzLGRlN03wmeVJGcqgNvNPFl+h8dCCx/zRYLsf8 o/2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=umAmGU91kTBCEMkTOw7kxkTRctNMBRVD5JhGwGfMUEs=; b=EuS0IL1kSRjzlAseF8QeB/n6Qht1NDaH6vd+ZjFIcdvs/FARgBE4HaRqu4tqNM5+dv 3MkVUjx5AGg9y5UoPAlPZcl01nDcn+td3afrV+jpJea7br44INRlo8J2CkMzqaC/wUHe 34mwQgp49CamM0JrKZrOmJMDS/dvSJAPxPzdgk+k47E3FFG6tvC+T2ylg2NlCMXq4XWs /BE9r6CeeHYyLkCMjGvuSj5urUmnLuHI9L7uX31F7/pVQF5IMYajyLJrXA/vBpJKbKBZ EPZ5tbMetMOlzhNPP/5wXxFL/ID6SQs6vczotJHEt8TXnoVZmSDYjD2dyn6e4CME2E5M snAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ET2sPU5J; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2si4436917otb.272.2019.12.19.20.24.16; Thu, 19 Dec 2019 20:24:28 -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=pass header.i=@kernel.org header.s=default header.b=ET2sPU5J; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727188AbfLTEWf (ORCPT + 99 others); Thu, 19 Dec 2019 23:22:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:45176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbfLTEWf (ORCPT ); Thu, 19 Dec 2019 23:22:35 -0500 Received: from localhost (unknown [106.201.107.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3B7E4206EF; Fri, 20 Dec 2019 04:22:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576815755; bh=Puza4F4qgk4RDqbJT+7VKvoL6ZDUdD3ktZeuxippD+8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ET2sPU5JjID/dzNdAzf1z7ndYsmcMj8DBAIlQd2GKmYG/avJxf3XEo084C8klnvy7 bGR/dq/Tg4MxsUnhhgVsndHPd46UxPO2O9dvA5Sju+J22paAea/kF4TP90Yrk4WvyC K1LNwjwricLkJ2ekjHuFZHm9tbmKyC1PeiPSc+YM= Date: Fri, 20 Dec 2019 09:52:30 +0530 From: Vinod Koul To: cang@codeaurora.org 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 Message-ID: <20191220042230.GD2536@vkoul-mobl> References: <20191219150433.2785427-1-vkoul@kernel.org> <20191219150433.2785427-3-vkoul@kernel.org> <9e69d0b803cdbfe69d6edb62b8aa9b24@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9e69d0b803cdbfe69d6edb62b8aa9b24@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20-12-19, 08:44, cang@codeaurora.org wrote: > 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 { > Good catch Can, I dont think I intended it that way. Will fix it up! Thanks -- ~Vinod