Received: by 10.213.65.68 with SMTP id h4csp149477imn; Mon, 19 Mar 2018 23:07:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELsZcdHxLDzXzCCyygaCbzwy9HEvUEp+yVeO/4YiBaRekQDDYciCIpFHaq7vkYshULYc19s2 X-Received: by 2002:a17:902:aa91:: with SMTP id d17-v6mr15420872plr.145.1521526063555; Mon, 19 Mar 2018 23:07:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521526063; cv=none; d=google.com; s=arc-20160816; b=xmY2NsQgLunMT9wB7gROZIVDmJ/vU+gf0LsGwlvTejC0XmPnQ6+zKskmTtCHXZ2gKK pZ1euxfpC1oDGwL/xAUJVb0g0Ny68q4twOXC6ZMJWd2Ldiji8cSk+HN/KVaPDhz7yfeJ epU0Rw2+YVB0nKk9dy/d6OyhNG2rTZIIZoFSkGlKzx1EuJDmzJE4Cr0TqKQoLFxC9JL9 UHgdvwAeqN1U1GewkqoZ+hscpVfHfabLMjgYe0LBlaAveXXTX48MiOVwTrR1jZ9iae98 8dBRC9Ixy/wDw+zXoBx0krhrXlrQ6beXn/devcDuw4v5blumY2ljTo7kqy6UacHXqL/y d7Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=Nzw0oIpqIIzQ5x74N+KIpbip4y0BjEMCjwQtw4TPp1Q=; b=YRsZhTafx1Gq+4b754ZgNVUsLxHJniMiRt18qr7kpQAmnGA7oIKguoeaERMsdFkQ41 yvSqdymjiVMsmPoT5QwsFXfx1o8+Li7czXydXBYJQq1wuuPxxleuwW+OJy/A0sxkupwV 7rHQ8MwJohYTp/b+f9FneTULKBfNzdM4nbU8gVtNJSZ8AoCLQmphjMIqw4SE6eDdPjlj xjbbfBiVf2sWWP62ztrGLg2VB2QsGH1MYFXKLNJxcR/4vAAJz/FACcxl4sUZOxLouA5c 00L5l3gr8jvOhZXFGyiua0g9Ip+whr+FyBmF5uYQtK47oI5xxeLOqwC4c4ukY9dmnhyK UxDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GiAL0uGp; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9-v6si945071pls.127.2018.03.19.23.07.29; Mon, 19 Mar 2018 23:07:43 -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; dkim=pass header.i=@linaro.org header.s=google header.b=GiAL0uGp; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751548AbeCTGGg (ORCPT + 99 others); Tue, 20 Mar 2018 02:06:36 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:41503 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751391AbeCTGGd (ORCPT ); Tue, 20 Mar 2018 02:06:33 -0400 Received: by mail-pf0-f195.google.com with SMTP id f80so257757pfa.8 for ; Mon, 19 Mar 2018 23:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Nzw0oIpqIIzQ5x74N+KIpbip4y0BjEMCjwQtw4TPp1Q=; b=GiAL0uGpVuotDFyLwvkbNlfF86von+nn2CbWeMK5OG20dn2/Sp7bvnb7rfUz+xgYer hQvouV7IuNL5ogVzHnprunZlp9rkv9cjiW6dsoe1Yo4LhoCrUpwbrVUlBkaGbbvlLyj3 3UdbFiKpUoNFEJVPqHXw5mFI2QVy7dVmLxZNU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=Nzw0oIpqIIzQ5x74N+KIpbip4y0BjEMCjwQtw4TPp1Q=; b=s5SLY+vNToPM2gEbr8n6y3wad/KgNRRHmp5ydQpzgHdu6yoo7gzllZD0rGRxoFbi/E 2Oz68/LgcgDMsfYImJ4VpN+s13/znpQMT+1qrH1xxUXXTi11LSri30lbrUKBLRNMwDq6 dbSmVXefza53b05c0tfZVsiVHZUKhIdv1nZJCYd0nNhxpKtXNa9OLSNCb7N4vit7o33h zHqpswFE+VA8qEQ4f8YrWCm/cxxAa+JHObgAC2q2ENenbqwZE1eK/vo6gwW9vNfy1Cyi NxL0rJ2GTAXy6JLcOI0kpVUEzugh4nq94wv4WtSfQR5wwPxDlwMDfU8Ksr8iaWDtqmNP EHbQ== X-Gm-Message-State: AElRT7HULdB5N+CKwWcoBacvKNiXI1oew5jwg4yQShLTB2J0MlmGqzaZ T4GPd3mTgly/NHVG0T7RcgUM6w== X-Received: by 10.99.173.79 with SMTP id y15mr11116767pgo.136.1521525992313; Mon, 19 Mar 2018 23:06:32 -0700 (PDT) Received: from localhost (165084180235.ctinets.com. [165.84.180.235]) by smtp.gmail.com with ESMTPSA id l90sm1624740pfb.96.2018.03.19.23.06.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Mar 2018 23:06:31 -0700 (PDT) Date: Tue, 20 Mar 2018 14:06:30 +0800 From: Dan Rue To: Tero Kristo Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Roger Quadros , Tony Lindgren , Sasha Levin Subject: Re: [PATCH 4.4 038/134] ARM: DRA7: hwmod_data: Prevent wait_target_disable error for usb_otg_ss Message-ID: <20180320060630.iy4wlqnzj6vrmhyd@xps> Mail-Followup-To: Tero Kristo , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Roger Quadros , Tony Lindgren , Sasha Levin References: <20180319171849.024066323@linuxfoundation.org> <20180319171854.858515505@linuxfoundation.org> <20180319235251.ui2gf3nlg2icbbdx@xps> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 20, 2018 at 07:08:36AM +0200, Tero Kristo wrote: > On 20/03/18 01:52, Dan Rue wrote: > > On Mon, Mar 19, 2018 at 07:05:21PM +0100, Greg Kroah-Hartman wrote: > > > 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 > > > > This fails to build for me on arm32 with default config. > > > > # > > # make -j10 -k -s ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=build-arm multi_v7_defconfig > > # > > # > > # make -j10 -k -s ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=build-arm > > # > > ../arch/arm/mach-omap2/omap_hwmod_7xx_data.c:2243:12: error: 'HWMOD_CLKDM_NOAUTO' undeclared here (not in a function) > > .flags = HWMOD_CLKDM_NOAUTO, > > ^ > > ../scripts/Makefile.build:269: recipe for target 'arch/arm/mach-omap2/omap_hwmod_7xx_data.o' failed > > make[2]: *** [arch/arm/mach-omap2/omap_hwmod_7xx_data.o] Error 1 > > make[2]: Target '__build' not remade because of errors. > > /home/buildslave/workspace/kernel-single-defconfig-builder/defconfig/multi_v7_defconfig/label/builder/Makefile:969: recipe for target 'arch/arm/mach-omap2' failed > > make[1]: *** [arch/arm/mach-omap2] Error 2 > > make[1]: Target '_all' not remade because of errors. > > Makefile:152: recipe for target 'sub-make' failed > > make: *** [sub-make] Error 2 > > make: Target '_all' not remade because of errors. > > This again has some dependencies, at least: > > 8ff42da41147 ("ARM: OMAP2+ hwmod: Allow modules to disable HW_AUTO") Thank you - I can confirm that adding 8ff42da41147 fixes the arm32 build for me. > > -Tero > > > > > Dan > > > > > --- > > > 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, > > > > > > > > -- > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki