Received: by 10.213.65.68 with SMTP id h4csp1720305imn; Mon, 19 Mar 2018 11:23:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELsC036YeKdSqLqkzL6pUOspkepBGl3AH3QEGe77xAg2t273A2td0eFxzaql9mFMqruiSFgR X-Received: by 2002:a17:902:b68c:: with SMTP id c12-v6mr13217664pls.52.1521483796172; Mon, 19 Mar 2018 11:23:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521483796; cv=none; d=google.com; s=arc-20160816; b=0b4U/8WPwrmd1zTsookbdqqcbqc9W7maca4mkBOR5UfX2BOPnjKQ4m4NKWNjQIYjXN BoYY1hgZFn+CMt0e9xpcqKrFvBqanLsEGcFvFrEdLMcwkQhFU6q0gNE6PpfR0uyy9Xti gC0cajmJOMn0h1AvWOIVixrZvaAWSTobeyHIDT3a+kot+cbHosQ1EnmnURn0WlFrkGsL 6m1W/A2Ydw+IlsGdFImklV6Bvc4nDcbZfG3V5xf8rjSsMWshyd53g+vnTj8GZUwcAPxV IMnuhnoOS6ARJXiWl7UquzlJJkc57kV9z5iIhY0YTIRdHz6VezJEKja5YgIMav0uRT9n C79g== 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=FBn6mVRNrS/1APfQgeMVqG5Upk/4pGQLS71Snh10ukA=; b=OnLZXvbMldE9AiIchv4byiOP1gtL51BXmbCkwMr61Mtjk2FvOvhgMBwNnm89trCtQ9 QfNpoV4CGDPWUrY9/hutD8uKSBBWeqa+s0pBNuuLc7MjVDXJRxM7UnNOjtWmTGpFojY4 ORjKI0H4TW+QLItaol+/m1vNHThvJVOybsDlNEFK4baOModTfRle3NFTIrvCR25TnrmS DVlMWeIs2ytuZELXsVKSDKHFkVE1qVmSD53Uj5VbWNzYXFZmaUdlkUl+XuDTUzQh698D Pguqhb5Sp0l1P0PQndIifsww+RwyW6i2k9U0vuvJW+rKH9MUIvKD0VbLdkE6lUEpSrH/ 2DYg== 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-v6si432857plp.33.2018.03.19.11.23.02; Mon, 19 Mar 2018 11:23:16 -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 S967961AbeCSSVe (ORCPT + 99 others); Mon, 19 Mar 2018 14:21:34 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48062 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031112AbeCSSVW (ORCPT ); Mon, 19 Mar 2018 14:21:22 -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 3351B1258; Mon, 19 Mar 2018 18:21:22 +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.9 079/241] ARM: DRA7: hwmod_data: Prevent wait_target_disable error for usb_otg_ss Date: Mon, 19 Mar 2018 19:05:44 +0100 Message-Id: <20180319180754.483907415@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@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.9-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 @@ -2572,6 +2572,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, @@ -2593,6 +2594,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,