Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp594958ybc; Tue, 12 Nov 2019 06:26:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzxuOj8Btupu2jONFKVtsxTjTv7X1KhNpRnS1JFLPx/Fnr/7fDk2wBG7Kg5DHeqwMbzWrwv X-Received: by 2002:aa7:db52:: with SMTP id n18mr31999832edt.169.1573568784761; Tue, 12 Nov 2019 06:26:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573568784; cv=none; d=google.com; s=arc-20160816; b=l4NogKAOxIIqTmTiBGSaBCGfggY5iMjFYHgIy8su57eAG0hMEjpjYf6qZen5NrX7rG vKZV5Zltr+eZ5BSLE0RQ14rpz8yXJxT9RmajxFCDk3hdEfwN3sOv34PNu5uWtrTgX9oJ 6BzhPYtqhpgW4/szA6gQTwJ8HTKasPOTLd3XJY5C+1rwakPhjPwPI9kaT2ZjaZPXFHmV N2G5QfvC/FK5rA20DSvxXkO/ag3N3w+dYraDKkODMU+862c7Slr3smMJTvOL4FSRuo/N qczDnNN9jrBCoUNb2TLpn8euDRNyliv4WbtSLvTY+PvvZJMSaz48WZ4rrM63A+V93zoM IxRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=AhKW4zr3y6EnszWY1v1ZvsH1fjzX055dXtF+Ryq9cP0=; b=LsEI5go8DDRWfUh9T2mu05cbLMbvYKDWIM31HfbHrs8LnGfFMewg+SjmPFSVfDqrDn O4MC+oS98Yy712+nUVOhQrq7vY3E0Sl79A6YaWHcCtScTnznEwImiVlQqQcPNY8F+zU3 s+aDHBvAyaPsML782tbFyfsp56R6EyJrChqBQ/jsALr54tBPDZHNvGcjkC3d2Aw8uiXK C92dxcsb1UzyIadJYxVxXh9d24PPknP4CmrMPclX2yQHdLkkX6l3lcvhzjSrIoPQz57K r8dcJfrsC1vC2PFq7obgDEnitSFsJBmXeqqp73/0e6hjrfhik6sFB/Ae0XvA0RM5P3+g zlVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=N92YWeJx; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si13834464edu.135.2019.11.12.06.26.00; Tue, 12 Nov 2019 06:26:24 -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=@ti.com header.s=ti-com-17Q1 header.b=N92YWeJx; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727632AbfKLOZF (ORCPT + 99 others); Tue, 12 Nov 2019 09:25:05 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:40490 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727616AbfKLOZE (ORCPT ); Tue, 12 Nov 2019 09:25:04 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xACEOxOd044422; Tue, 12 Nov 2019 08:24:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573568699; bh=AhKW4zr3y6EnszWY1v1ZvsH1fjzX055dXtF+Ryq9cP0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=N92YWeJxyXEYlijNwHxHC2WWGgC9SRKA+K1B0m5VGk3l92b+/sxVoOthax8Z3We6Z uXvlNnckWf3t/sRWiLnDC657uM3OExsBdZ6aZjphtHJa+5hAntvszV+ft0QAygndhF dEYoxN4rkrI3qqD83nQqHcTaXsmN7s72sPYWMPsY= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xACEOx2u115972 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 Nov 2019 08:24:59 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 12 Nov 2019 08:24:41 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 12 Nov 2019 08:24:42 -0600 Received: from uda0869644b.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id xACEOrBi036029; Tue, 12 Nov 2019 08:24:59 -0600 From: Benoit Parrot To: Tony Lindgren , Tero Kristo CC: , , , , , Benoit Parrot Subject: [Patch v3 03/10] ARM: OMAP: DRA7xx: Make CAM clock domain SWSUP only Date: Tue, 12 Nov 2019 08:27:46 -0600 Message-ID: <20191112142753.22976-4-bparrot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191112142753.22976-1-bparrot@ti.com> References: <20191112142753.22976-1-bparrot@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both CAL and VIP rely on this clock domain. But CAL DPHY require LVDSRX_96M_GFCLK to be active. When this domain is set to HWSUP the LVDSRX_96M_GFCLK is on;y active when VIP1 clock is also active. If only CAL on DRA72x (which uses the VIP2 clkctrl) probes the CAM domain is enabled but the LVDSRX_96M_GFCLK is left gated. Since LVDSRX_96M_GFCLK is sourcing the input clock to the DPHY then actual frame capture cannot start as the phy are inactive. So we either have to also enabled VIP1 even if we don't intend on using it or we need to set the CAM domain to use SWSUP only. This patch implements the latter. Signed-off-by: Benoit Parrot --- 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 3068802824b7..27835c4d1aa9 100644 --- a/arch/arm/mach-omap2/clockdomains7xx_data.c +++ b/arch/arm/mach-omap2/clockdomains7xx_data.c @@ -606,7 +606,7 @@ static struct clockdomain cam_7xx_clkdm = { .dep_bit = DRA7XX_CAM_STATDEP_SHIFT, .wkdep_srcs = cam_wkup_sleep_deps, .sleepdep_srcs = cam_wkup_sleep_deps, - .flags = CLKDM_CAN_HWSUP_SWSUP, + .flags = CLKDM_CAN_SWSUP, }; static struct clockdomain l4per_7xx_clkdm = { -- 2.17.1