Received: by 10.213.65.68 with SMTP id h4csp35864imn; Mon, 19 Mar 2018 18:42:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELsa7gkr13gzywWTTvQmsn0LMJPHF2Mk9zec+4vcvnbUq1D4n1AZ/m1ZIgoxFQ80UBe8USYX X-Received: by 10.98.212.80 with SMTP id u16mr11986395pfl.58.1521510156474; Mon, 19 Mar 2018 18:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510156; cv=none; d=google.com; s=arc-20160816; b=qHPn9sUZ9KfYUua53ISoA8ilQ9buNnUOQJYbCrWgmGbhJsYNWMu/+TL9+Z97klHAya Tug90Q6Zoyw/byaZPtFq6/2POMn8wcKfEzqymJ4fIn8vdknyHf4iCgKZfQYZGyIlqXy5 pH3AG45FTTfYTIoYA31AclzK6ZYPtKbQB5XFx/tstKQVY/Rt5DT+DI1v2wraVJl4OJvn KIakBxz2u/7lZZmhEeQjfWCswm4fZUXn+iH4r43OsqXspS+OWiwUu6xdrv2HWKC5ZVGR BoAlvWwRVnNxPW9zsvRv9GpB6DSebdl5Xa3kSKfpA2FeRuH/PwTvHNFtnj7HiCGbzS8j dV8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BuMfp/7byD0KK9x5fzze174P48l7CgdYjdEEQJdz50w=; b=oipBvZ4bSL0UAQukCAC/YiEHysHL5lut1Dn4xzVtr2UO+U2YJ9pxZ03HFuASERHRcy T3ohs+iidMOP4Xxkr4AAG/yqsKsTlHpkByzJAP/x7g4OUwZRD3ulE6hPRlWbNWZIrkGm 6ROAPnTXV50bqqX8zNHL225PIR7KfwalNKHG4alHT4QUfN3aLo5pafxprDuvznHgmP6q DXKHokz6yNI79T+x6uPldb6JAGv7HlC8x2DKMc/W4kNXa5XeHeLtQk0zbjMlqgrzbgEq 4UJpHZHGjrCwMZChjdLBgiDZbrcpa+IjrJYghcRJNridmAzBHJjjQGDIQbrJkTPyFWlt fEaA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1-v6si528459pld.546.2018.03.19.18.42.23; Mon, 19 Mar 2018 18:42:36 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968917AbeCSSOp (ORCPT + 99 others); Mon, 19 Mar 2018 14:14:45 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44282 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968902AbeCSSOk (ORCPT ); Mon, 19 Mar 2018 14:14:40 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 614FAF61; Mon, 19 Mar 2018 18:14:39 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tero Kristo , Roger Quadros , Tony Lindgren , Sasha Levin Subject: [PATCH 4.4 038/134] ARM: DRA7: hwmod_data: Prevent wait_target_disable error for usb_otg_ss Date: Mon, 19 Mar 2018 19:05:21 +0100 Message-Id: <20180319171854.858515505@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Roger Quadros [ Upstream commit e2d54fe76997301b49311bde7ba8ef52b47896f9 ] It seems that if L3_INIT clkdomain is kept in HW_AUTO while usb_otg_ss is in use then there are random chances that the usb_otg_ss module will fail to completely idle. i.e. IDLEST = 0x2 instead of 0x3. Preventing L3_INIT from HW_AUTO while usb_otg_ss module is in use fixes this issue. We don't know yet if usb_otg_ss instances 3 and 4 are affected by this issue or not so don't add this flag for those instances. Cc: Tero Kristo Signed-off-by: Roger Quadros Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -2240,6 +2240,7 @@ static struct omap_hwmod dra7xx_usb_otg_ .class = &dra7xx_usb_otg_ss_hwmod_class, .clkdm_name = "l3init_clkdm", .main_clk = "dpll_core_h13x2_ck", + .flags = HWMOD_CLKDM_NOAUTO, .prcm = { .omap4 = { .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET, @@ -2261,6 +2262,7 @@ static struct omap_hwmod dra7xx_usb_otg_ .class = &dra7xx_usb_otg_ss_hwmod_class, .clkdm_name = "l3init_clkdm", .main_clk = "dpll_core_h13x2_ck", + .flags = HWMOD_CLKDM_NOAUTO, .prcm = { .omap4 = { .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,