From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965984AbdJQTbd (ORCPT ); Tue, 17 Oct 2017 15:31:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:46782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965939AbdJQTba (ORCPT ); Tue, 17 Oct 2017 15:31:30 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3171F21874 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Tue, 17 Oct 2017 14:31:29 -0500 From: Bjorn Helgaas To: Kishon Vijay Abraham I Cc: Bjorn Helgaas , Roger Quadros , linux-omap@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, nsekhar@ti.com Subject: Re: [PATCH 0/2] phy: ti-pipe3: Update PCIe PHY settings Message-ID: <20171017193129.GM5641@bhelgaas-glaptop.roam.corp.google.com> References: <20171009090338.26033-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171009090338.26033-1-kishon@ti.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 09, 2017 at 02:33:36PM +0530, Kishon Vijay Abraham I wrote: > This was supposed to only update ti-pipe3 PHY registers. However because > of the way the ti-pipe3 PHY, OCP2SCP and PCIe controller are connected > in dra7xx where > > PCIe controller --------------> ti-pipe3 PHY --------------> OCP2SCP > depends on depends on > > updating ti-pipe3 PHY registers results in an abort. > > Though the dependency between ti-pipe3 PHY and OCP2SCP is created > (OCP2SCP is parent of ti-pipe3 PHY), and enabling ti-pipe3 PHY clocks > should in turn enable OCP2SCP (with the help of pm_runtime framework), > this doesn't work in no_irq stage since pm_runtime is disabled during > no_irq stage. Since pci-dra7xx enables/initializes ti-pipe3 phy in > no_irq stage, OCP2SCP is not enabled resulting in an abort with ti-pipe3 > PHY registers are accessed. > > In order to solve this a functional dependency is created between > PCIe and ti-pipe3 PHY so that PCIe is suspended before PHY/OCP2SCP > and resumed after PCIe PHY/OCP2SCP > > Kishon Vijay Abraham I (2): > PCI: dwc: dra7xx: Create functional dependency between PCIe and PHY s/PCI: dwc: dra7xx: Create functional dependency between PCIe and PHY/ PCI: dra7xx: Create functional dependency between PCIe and PHY/ Should these be merged together? If it makes sense for you to merge them together, here's my ack for the PCI piece: Acked-by: Bjorn Helgaas Let me know if you'd like me to take one or both of them. > phy: ti-pipe3: Update pcie phy settings > > drivers/pci/dwc/pci-dra7xx.c | 16 +++++++ > drivers/phy/ti/phy-ti-pipe3.c | 101 +++++++++++++++++++++++++++++++++++++++++- > 2 files changed, 116 insertions(+), 1 deletion(-) > > -- > 2.11.0 >