From patchwork Thu Dec 19 15:04:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 182120 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp599042iln; Thu, 19 Dec 2019 07:05:17 -0800 (PST) X-Google-Smtp-Source: APXvYqx9ZTbJf2pQa8bCEQr4VWeus90KcA59jXJe0dExCSwnrVaY8+eX9e4tkG050RfFZkVQMv3g X-Received: by 2002:a9d:369:: with SMTP id 96mr4804771otv.228.1576767917630; Thu, 19 Dec 2019 07:05:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576767917; cv=none; d=google.com; s=arc-20160816; b=0QYBP4cSlr50qVFGHYOB9fuRGmKvpX+JVydiX/izH9gGZ3LwWvRkCYnYZfTD1eF0H+ F5liVBZiuiV+DkmqbIafXDV53zs8u/CtowubpfSPLvgeY6S3RGkgRmhDF35RT1lrEnsY BHSP/KRI0PhjFXRrNliLiYwUwA2Sv8KUB5yP1TMLEe9PLOM+FYJ5Av8tmQ2AWU668VKo C8sZAs3VbtWL2o0FFZtkNU8o8AbgpEqoFulNHOrxbREbV2yCh/1KYnZwKYkdCOQbm6mX OEtGLsRr4RiCk85gZ9ZhkurbxYEL0wzNXy1LKGg8QpL1oU3aQy3y6zhiK6oHTEKVe7SQ 6kRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=itbOzx2u+ajfL8QFCXjKyusz38x3FyInKhpNkP/7a1s=; b=i7HvC+kovzfl0jL9N2t6IG1fOb0PprVgJcrE5nVpsZwQyLX4uYxdthVxlXSvS4w1aa fbcRRy5yTxUqJJs6YwPq0rqowPfe1eFrfHojRa7OiB526pxuW5XU5oVG6lk5NeyJ0eaf 3y6w1LI0J99xDXj5NvJIOeHJd+qsZ00huGuGngPxEMoHBiD3f0Ji3zOOOF1mB17DRpwA hX2RK2G3GBYBmHrW8I6beDBBYp5dGLvS0fZ7zMNAq+wf/7RK22SVNGXWZ/DpuuEwsiPQ FLl9CWBUkoveP+u7NjXWUu7fk3n3SwW/uj5e2zBGO5+cLhJ6cufFr6lBe1/9LZv1ZLLv eECQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TeQlztHq; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 m24si3463420otn.67.2019.12.19.07.05.14; Thu, 19 Dec 2019 07:05:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=TeQlztHq; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726817AbfLSPFD (ORCPT + 15 others); Thu, 19 Dec 2019 10:05:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:34226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726801AbfLSPFC (ORCPT ); Thu, 19 Dec 2019 10:05:02 -0500 Received: from localhost.localdomain (unknown [122.178.234.230]) (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 6591524679; Thu, 19 Dec 2019 15:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576767902; bh=HIjcrR1V5NJu2M5zDIohQ4KGUZPwSjZcbWqjK0s0U5g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TeQlztHqJ4CWsAjEPkYcnCF8m3ocN89NgCpOqQeRSl7oqxvuZu+N5FuEUgeVDKYo0 3S/rHRA0/SnGD97M9K6ppwM1oXxHVtKU11odsfVdLzgcU0G1ImZA+KHP59BnFoqW7/ 0krxxajWEc1Yz6WMsnSb5RF/xUkmokrrektMfc+Y= From: Vinod Koul To: Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Can Guo , Jeffrey Hugo , linux-kernel@vger.kernel.org Subject: [PATCH 2/4] phy: qcom-qmp: Use register defines Date: Thu, 19 Dec 2019 20:34:31 +0530 Message-Id: <20191219150433.2785427-3-vkoul@kernel.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191219150433.2785427-1-vkoul@kernel.org> References: <20191219150433.2785427-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(-) -- 2.23.0 Reviewed-by: Jeffrey Hugo 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[] = {