From patchwork Mon Mar 13 11:53:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 95204 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp1134601qgd; Mon, 13 Mar 2017 04:53:27 -0700 (PDT) X-Received: by 10.99.24.88 with SMTP id 24mr36969357pgy.54.1489406007176; Mon, 13 Mar 2017 04:53:27 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si271334plv.301.2017.03.13.04.53.26; Mon, 13 Mar 2017 04:53:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752147AbdCMLx0 (ORCPT + 4 others); Mon, 13 Mar 2017 07:53:26 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:63203 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751058AbdCMLxZ (ORCPT ); Mon, 13 Mar 2017 07:53:25 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v2DBrKOh021504; Mon, 13 Mar 2017 06:53:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1489406001; bh=1FwTqyWrumJUGnD6/KUGYDm57H5po6FqexTO/bdbTQo=; h=From:To:CC:Subject:Date; b=D3tmDIijXOWExGVxde2ZR9qhX3YD0tagAs3ElM56HKA+OmugvWAdJaHcbAZm4C15X m0WlvDI7uXuF1x6Mxf6cIjPDTr45BSSfzU+zBkgyIpo9c/wmNDAfXZTlD2asX11SOT FAxfKPkMdZ4tX/grbj6QvkNI4oKCC1UbdcqflyXo= Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v2DBrKcC018461; Mon, 13 Mar 2017 06:53:20 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Mon, 13 Mar 2017 06:53:20 -0500 Received: from lta0400828d.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v2DBrH29025695; Mon, 13 Mar 2017 06:53:18 -0500 From: Roger Quadros To: , CC: , , , , , Roger Quadros Subject: [PATCH 0/4] ARM: DRA7: Fix DCAN1 stuck-in-transition Date: Mon, 13 Mar 2017 13:53:12 +0200 Message-ID: <1489405996-10718-1-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Hi, On DRA7 platform, DCAN1 module has an issue when it's clockdomain (WKUPAON) is configured in HW_AUTO. After DCAN1 is enabled and disabled the module remains stuck in transition. Suggested workaround by Silicon team is to disable HW_AUTO for WKUPAON clockdomain when DCAN1 module is active. These patches provide a new flag for hwmod data to support this behaviour and fix up dra7 hwmod data as well to fix this issue on dra7x-evms. This patch allows DCAN1 to be functional as well as not prevent Core Retention as WKUPAON clockdomain is put back into HW_AUTO whenever DCAN1 is not active (e.g. runtime suspended). Without this series, we can see the following warning messages when the CAN interface is brought up and down. ~# ifconfig can0 up [ 36.418299] net can0: c_can_hw_raminit_wait_syscon: time out [ 36.424642] c_can_platform 4ae3c000.can can0: setting BTR=1c04 BRPE=0000 ~# ifconfig can0 down [ 50.488786] omap_hwmod: dcan1: _wait_target_disable failed [ 50.502855] omap_hwmod: dcan1: _wait_target_disable failed cheers, -roger Roger Quadros (3): ARM: OMAP2+ hwmod: Allow modules to disable HW_AUTO ARM: DRA7: hwmod: Fix DCAN1 stuck in transition ARM: DRA7: hwmod_data: Prevent wait_target_disable error for usb_otg_ss Sekhar Nori (1): ARM: OMAP2+: omap_hwmod: provide space for more hwmod flags arch/arm/mach-omap2/omap_hwmod.c | 4 ++-- arch/arm/mach-omap2/omap_hwmod.h | 7 ++++++- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 4 ++++ 3 files changed, 12 insertions(+), 3 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html