From patchwork Thu Mar 9 07:57:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 9612737 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 68C6A604D9 for ; Thu, 9 Mar 2017 08:48:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 483BD2852A for ; Thu, 9 Mar 2017 08:48:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CFFB285D4; Thu, 9 Mar 2017 08:48:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C69082852A for ; Thu, 9 Mar 2017 08:48:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Fkwgzq+8y2OgulRXJgFioQb3A81e+jRd3w4ky94duSg=; b=YzrCq1KsZqxhtG 7qPYTAyoTlbeAL1CiALzaQCG6uvMPtAm3OHOPvHicEYnemXGXUgM8oUN1xry/iH4P5sbMQV5v5SBN poyF4jmllJVJwTxYEQ3QIhvKrhMZiQU9Y+O9fIGss25Z4VEsd3UMRClysISmmpYmA/yBYFP5V5RBV erlkQpu83bNy4zFE/R6Zi+bcGR6XmofwPyu6dTW81OWb2kNfWuURsB65jkkfJ6Hu0Kg6WwlA6mqn6 xMDiLz0QCugDt1uBY4tnGc2tEsIreUCwhHSsiLYaBUxw69kaCgWrNY3zz7m0xc6JKnvYWJ6fPBSHQ HI9asYR8TOZyQIlCZQTA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cltkF-0002M6-OG; Thu, 09 Mar 2017 08:48:24 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cltjr-0002JL-Jx for linux-arm-kernel@bombadil.infradead.org; Thu, 09 Mar 2017 08:47:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=n5vmoUkwaVPbDDYVFuRgLGiOzDUz1B/DvRw1SzEWOCs=; b=pWH2wfYo8hBaRfjuyaGRvRy3G IUT+N1VqWyXV3XrT38xFrTprf3K5XGKzwU10fSdC7DISV9R8NBqrH0gzbFX7D3/kTZyqhujobU6IZ zNqcCwDemuXoDfagx+DkZucFI0sbOLmVc71F4D56OgYaA2wKf1INC4UJ/vR88ihp/wUG1q4NxoT/J rcuzjvQMcuyxa8nxnUM0bSY+5PK0gmn2iigic7jmfy0Di7ye4gnqjk0Kl+SpMzkL4u5wSmO3us+fo x84V6IjvET278H6+XipaOpkmXvBX+hN/aGSk2hhhNEvhxyoGcwdPyZuyHKeZ8KuF2opA/4nkQzj7E lB0yi4lvw==; Received: from fllnx210.ext.ti.com ([198.47.19.17]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1clsys-00036B-Ar for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2017 07:59:27 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v297x2Qq000947; Thu, 9 Mar 2017 01:59:02 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1489046342; bh=Bg5GYdQt7ECcsMEZdYEs4FStD/6VBH6e3ilPn9V9M9U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KNP2HpGuus7eL24pLFLYdES6cDPqEak76g8H1MMrI2YDa8R6z/zt8ajjktLad1Gdp YBdIWOFrqZVoOv7H+7OCibaBqkkRLFAGu82B9B5/8ORvZebjjSYINjlkGpai4xKxnt BrLtlzKocetapvpCCaqzDQe68XVK52DCa6qSBZ/0= Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v297x1tq031737; Thu, 9 Mar 2017 01:59:01 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Thu, 9 Mar 2017 01:59:01 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v297vZPL014250; Thu, 9 Mar 2017 01:58:58 -0600 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Joao Pinto , , , , , , Subject: [PATCH v3 23/23] ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP Date: Thu, 9 Mar 2017 13:27:34 +0530 Message-ID: <1489046254-19919-24-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1489046254-19919-1-git-send-email-kishon@ti.com> References: <1489046254-19919-1-git-send-email-kishon@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170309_075926_624368_58360B47 X-CRM114-Status: GOOD ( 10.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: hch@infradead.org, nsekhar@ti.com, kishon@ti.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The PCIe programming sequence in TRM suggests CLKSTCTRL of PCIe should be set to SW_WKUP. There are no issues when CLKSTCTRL is set to HW_AUTO in RC mode. However in EP mode, the host system is not able to access the MEMSPACE and setting the CLKSTCTRL to SW_WKUP fixes it. Acked-by: Tony Lindgren Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/clockdomains7xx_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/clockdomains7xx_data.c b/arch/arm/mach-omap2/clockdomains7xx_data.c index 6c67965..67ebff8 100644 --- a/arch/arm/mach-omap2/clockdomains7xx_data.c +++ b/arch/arm/mach-omap2/clockdomains7xx_data.c @@ -524,7 +524,7 @@ .dep_bit = DRA7XX_PCIE_STATDEP_SHIFT, .wkdep_srcs = pcie_wkup_sleep_deps, .sleepdep_srcs = pcie_wkup_sleep_deps, - .flags = CLKDM_CAN_HWSUP_SWSUP, + .flags = CLKDM_CAN_SWSUP, }; static struct clockdomain atl_7xx_clkdm = {