Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2040220ybl; Thu, 19 Dec 2019 07:08:04 -0800 (PST) X-Google-Smtp-Source: APXvYqzBu5DLb9e9Mlle/adKKeBdvpScAIeRpNc1pj6iJuuKzKoZpayMcFF9+nlaj2IQjVRtN/kU X-Received: by 2002:aca:4d4f:: with SMTP id a76mr2430655oib.26.1576768084014; Thu, 19 Dec 2019 07:08:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576768084; cv=none; d=google.com; s=arc-20160816; b=pQoxTCL4B+ECm78+kXT+psJQ59U4SRr9MFN8IunwnCD1QAqEMm405JR18ej1N2Gvah +3KrKhZLLBV7Mg8Z0OpDcGwTZrsZFBkD4Xh8A0j8XEFtjlIdUMhJFNEZ/NdwZ5KdK/hG hOirIlHLpgJYb1ItTY6rS0SVsgJ1pSeceRItUw7iVzvBzwoJhFM5ZOhPsPzd7A3o1h2W tmXw9gcD5kh/z8Sk5pWWTrW8WGlUhVzZyQuQ9nSieIx/HZrBHUTJlVpjM0H3FH6OyCpE AtLaVRk7h90avED4Z2Q6kGeC/sC+QgtrKQoRkIHdiI4lFJ5w5UFNn7HIcqmY37RgJd+p vsQA== 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=tTxUefbUyeZhPr/3CZTICEaQwNsMkOV07WRdq2np+Q2EEruZ6roFQYCaulfCDpZySx j9OVQ1ZxE/HUMo60GcY4V+zl4NtchvgWh4YZlKK8I9poif4N05MF31FzlJeQCGmNal9g ycyuPgzNa3bB5rnnjRnqk1ufV+64xcWbWf0KFgTCnu7PLdc//AZV14CNZA5RhbYS4tra Ug+FtR1GMR+Z+LYp6SIO3OOQCtf2qrFtnLrr1MHKIR56Q+y3kILCr/DIq8kv7Q5iy8SY Sv+t+L9tTlehrP3sso6Xr66rrol3VkPsmT9pGo+mERGbcD86Z3TKCq2s2Lh99NS4RO7Z zkSg== 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-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 l7si2732644oil.77.2019.12.19.07.07.42; Thu, 19 Dec 2019 07:08:03 -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=TeQlztHq; 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 S1726908AbfLSPFD (ORCPT + 99 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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[] = { -- 2.23.0