From patchwork Mon Dec 23 14:30:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 182412 Delivered-To: patch@linaro.org Received: by 2002:a92:a146:0:0:0:0:0 with SMTP id v67csp500219ili; Mon, 23 Dec 2019 06:31:33 -0800 (PST) X-Google-Smtp-Source: APXvYqwq7JIPCjBSwbMUWAVOs3z4+w77jFBGISdl+1kyPUMsP/6sYg+L3KCWskK7LtERZQBi9LT2 X-Received: by 2002:aca:4442:: with SMTP id r63mr6207091oia.33.1577111493708; Mon, 23 Dec 2019 06:31:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577111493; cv=none; d=google.com; s=arc-20160816; b=nx1FAp6udYCJ199VU0q7MJpqomThzMoDY8SJrv8Sr+8ZxfYJ/pww3Kzp3iUDDUX97f gKtToyeFCopct8hR5QB7cwdz3JIBJ8UclNEBPBI6fVw+ulnktSGjPuIPt6YohCbbrBj+ iKzx7EqJQf2xHg9HOU+6DYKWQT+8cJQQ/CK8XesiHePUKmuxld3vVNZOLOo+NfkFhoKa i3aTNq3cnn66cMXvf5GdmVODJKXAbf0KZ4+aVorNvulYgNYh1Iut9ErfFo2mvkj1lRda StBhJnceJOj6kG8lSq3FPo6hPuJeb3HITb7hlTrDLnwpBVMZA4Egxxt8oHkK1UJDuJ/N aASw== 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=umZLMG30gCQhhu/vSHamhrIibo7DcwB3LPhD7crX/04=; b=wfC11liyX5AGqSnH0X4yVCBguZNHc8PUlRCSB5rWfPAwF/eVgG//yE89+SM6kRIdlE dvrnFAUEmh7427IDwLV8VjzpafxMwWN6FHsHD996nIaBr4OavY5DQE9/1Ty7yRVFeZTl KiD5ETYU1CFVOmmLT3mcJygGQ6/4lTo2L41PF7Zk1EA4AFbP4vkqHptuFG3MFJu1MpXW wThe1kHKjiAgsWeWDfzRElScdfD3w1uQXElbzELIOHmX6DvWTK8e7VNx2OeGHGo2GS2V IXlPGQmbEF7+56n0TpSg7CZcGHGbyLSp2dPPNy139Vqh7aNcAwJrKrv8/cLDp4ARrmi7 /edg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wU32q3lm; 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 h203si9269464oif.3.2019.12.23.06.31.33; Mon, 23 Dec 2019 06:31:33 -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=wU32q3lm; 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 S1727311AbfLWObb (ORCPT + 27 others); Mon, 23 Dec 2019 09:31:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:51874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727109AbfLWObM (ORCPT ); Mon, 23 Dec 2019 09:31:12 -0500 Received: from vkoul-mobl.Dlink (unknown [106.51.110.206]) (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 3BDD320715; Mon, 23 Dec 2019 14:31:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577111471; bh=cXpw5tyrhRILWYrrExKOFYSPljwmd3fk8wpc94J0Z9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wU32q3lmWLOwJpvTPjJcVYmnT46STKX8xTsdrBmD2kfNN7MH+fnoRj9PS+crkty9h j4f+c4Tl7CP9392OacW5Sgq2v4/t8EONGrlw8Zn/1oa0ocvsxXA2quuo7JQDBlSJIJ yl5Zeyf4I9Rkl5Neuclkc54k9KTU3JddhFHZVheg= 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 , Manu Gautam , linux-kernel@vger.kernel.org Subject: [PATCH v3 3/4] phy: qcom-qmp: remove no_pcs_sw_reset for sm8150 Date: Mon, 23 Dec 2019 20:00:45 +0530 Message-Id: <20191223143046.3376299-4-vkoul@kernel.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191223143046.3376299-1-vkoul@kernel.org> References: <20191223143046.3376299-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SM8150 QMPY phy for UFS and onwards the PHY_SW_RESET is present in PHY's PCS register so we should not mark no_pcs_sw_reset for sm8150 and onwards Signed-off-by: Vinod Koul --- drivers/phy/qualcomm/phy-qcom-qmp.c | 1 - 1 file changed, 1 deletion(-) -- 2.23.0 Reviewed-by: Manu Gautam diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c index 4f2e65c7cf45..ce5e18f188c3 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c @@ -1389,7 +1389,6 @@ static const struct qmp_phy_cfg sm8150_ufsphy_cfg = { .pwrdn_ctrl = SW_PWRDN, .is_dual_lane_phy = true, - .no_pcs_sw_reset = true, }; static void qcom_qmp_phy_configure(void __iomem *base, From patchwork Mon Dec 23 14:30:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 182411 Delivered-To: patch@linaro.org Received: by 2002:a92:a146:0:0:0:0:0 with SMTP id v67csp499943ili; Mon, 23 Dec 2019 06:31:21 -0800 (PST) X-Google-Smtp-Source: APXvYqx/GJDL1a8yR68qZoOYZFnQhGF6x5/RY+/4D/Ia54OMNef4Y9+5QpV5s+FUzlB7ivYJD2xE X-Received: by 2002:a9d:6f07:: with SMTP id n7mr31900109otq.112.1577111481019; Mon, 23 Dec 2019 06:31:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577111481; cv=none; d=google.com; s=arc-20160816; b=qHQiUA48o3ExRotHcZLrn02rDTSKm+BY/R70tIZtlFT5f0ckDyETJGciwCEZADQ+1B /LSLhU+r6lAJwDRpa2LyrqbR/LVAOxIWQMgwz38yaZDrwTLioYLSdsT45GLUS6qtzOw/ KuIpqKGA/Ew9HCjLVtKeEKN1qz0n/V3yZ5DXc/4vGWUpiDJkV95ILxD4MY0XnE9t1CRu eK4CJxRGe/fc3hsCkRQf/BljJBgg0fCMydNHC7EqkYSw+FJ+EqLL1veIE01OEX3iDaPX yATu+pu1m0WrqCyM+rZqwhMhcozsQoIrmWar8c7V2aVg2u3jYb3fklf7sMUxX1F9A84S tu6Q== 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=apLOZNe03H0ezmJAtLbCRvToVJ6+2gVHCYHoqwSQWlk=; b=q+16k5imCzxmafQYrc/WTrxFUWhk+BfJ66QvIJH2QEBJx2MkDpiHJDr4MY32l006zZ y4kdIAnF2LHr7Lm030QIWAWAtX2NztQtM/xU27lUN+mfRv7vEwrPu+XwqhOkV3MHyNU9 N8kAKd3RlR/9eLghv8Tp7OY91L/+W04XUMfdPprGuVZNGeU2TFs/BlQbhYT5XKOAXZE/ bKqhjs3T7x8AEMbRK81GWybmL4fg63C3itI/VT/1LgwIKkae/BPiAz8sw0hWifFv40kV ms6AUOgpDNiofWRd17sk6BXfU6gA/pXNuQr0AeM95ApmXcIcW8GcMLgawR2EQAl/bkMZ nX6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Iv+aWzTH; 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 c17si7356111otp.131.2019.12.23.06.31.20; Mon, 23 Dec 2019 06:31:21 -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=Iv+aWzTH; 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 S1727217AbfLWObS (ORCPT + 27 others); Mon, 23 Dec 2019 09:31:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:52054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727183AbfLWObQ (ORCPT ); Mon, 23 Dec 2019 09:31:16 -0500 Received: from vkoul-mobl.Dlink (unknown [106.51.110.206]) (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 48EC220709; Mon, 23 Dec 2019 14:31:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577111475; bh=rKlmP8qCOreILakRYVKDlU4TZ4C5i5QpLwBHZqwKiVs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Iv+aWzTH8e+kLR0srzVQxgtvQG/L5+1MkVpbPa6869c4GPMk1y2VyMQdaj6XxwQ97 5inRhWzyGxLAEHdYZExPIjrAt1gU4Ba2GNqH9UhIFHtInYML4MYXEBaSLkOgRgzMPV bTqg6sXolOglqqfIQ44c2O+9EuyMm9GHN0+aIY3k= 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 , Manu Gautam , linux-kernel@vger.kernel.org Subject: [PATCH v3 4/4] phy: qcom-qmp: Add SW reset register Date: Mon, 23 Dec 2019 20:00:46 +0530 Message-Id: <20191223143046.3376299-5-vkoul@kernel.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191223143046.3376299-1-vkoul@kernel.org> References: <20191223143046.3376299-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For V4 QMP UFS Phy, we need to assert reset bits, configure the phy and then deassert it, so add the QPHY_SW_RESET register which does this. Signed-off-by: Vinod Koul --- drivers/phy/qualcomm/phy-qcom-qmp.c | 1 + 1 file changed, 1 insertion(+) -- 2.23.0 Reviewed-by: Manu Gautam Reviewed-by: Can Guo diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c index ce5e18f188c3..7db2a94f7a99 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c @@ -168,6 +168,7 @@ static const unsigned int sdm845_ufsphy_regs_layout[] = { static const unsigned int sm8150_ufsphy_regs_layout[] = { [QPHY_START_CTRL] = QPHY_V4_PHY_START, [QPHY_PCS_READY_STATUS] = QPHY_V4_PCS_READY_STATUS, + [QPHY_SW_RESET] = QPHY_V4_SW_RESET, }; static const struct qmp_phy_init_tbl msm8996_pcie_serdes_tbl[] = {