Received: by 10.213.65.68 with SMTP id h4csp123875imn; Mon, 19 Mar 2018 22:10:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELv8q3F7xKyENHhLThElL8L3+FV1kdVo1FCmXe6i74/ZlZWuhVE1CjV40SDAeQDz/60SVQN6 X-Received: by 10.98.247.9 with SMTP id h9mr12460472pfi.212.1521522622740; Mon, 19 Mar 2018 22:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521522622; cv=none; d=google.com; s=arc-20160816; b=Vf7UtMkRc7CuSziVosU2MNfWMslYLZH0mLm6tMn1aXVTy4GucShZgkuWZru7RzSzf6 MTtqDHaLspT8CSazZNLottd/qPj8Ktg4yfyqze0U3AtYyYa49RJQ/bnsx2EQ3a+D6guP QklTeiaU7NKFTKMvav5Pm+Y7M68CNCf+hWso34xrYG9wKka5Pd4n09/X8E/9HE8zyyrT CZQQMNrP+ydPLVzj6X6BN5OHiu81KN+H7FKlbPnvIkPJL1V+wPwuUNFz8/vFPjQxtq0g ftE24BzF+o1rnl+WYbdslxTJFbSFFktp0mhdE/Qdz55d2q3xz119LDGObM2mqp+k9KJ+ wulA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature :arc-authentication-results; bh=JAdhYakm9m3kD4VtMpvf/fig3PUVwJoNovqvJP1GVfA=; b=WMu5nHZLfm0jfgROXs1NHoVkFJjQGU8XJkRUbnb/HL2hLcbbQTvzSEL5djodebLaC9 MFdXsMRMKT/zvtuUfUrQstxzHVJhui2xtjSfBUGfKTXpMZrSAo6OARU6xsJ/G/TcBNYJ au64CciGpZ+je+c2lO7nqQRAIyVNERGPXMmtl/iiqvaYEmq+D7kd2Cl8G8sd/W1av4u4 4Euj/6AAeVLg6CIALuOGZjBojegI+41FANXRBv1zyAK+kQpdIbjk6a7PCryKIX8UjMzH 8EhGEAa3L4TiOhwQ3pjEcZRzg12ZXHTHAIV4OznXxpQCMUORYrvz1+uSGVQYYB+7eeSV 7o8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cqewb7m2; 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 l4si666208pgc.185.2018.03.19.22.10.05; Mon, 19 Mar 2018 22:10:22 -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=@ti.com header.s=ti-com-17Q1 header.b=cqewb7m2; 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 S1751521AbeCTFJF (ORCPT + 99 others); Tue, 20 Mar 2018 01:09:05 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:43333 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750888AbeCTFJC (ORCPT ); Tue, 20 Mar 2018 01:09:02 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2K58tQm000619; Tue, 20 Mar 2018 00:08:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1521522535; bh=uTAQMIe9a14xGDlFwxSAKz3Wi/Izbbxa24jLxQ6I9cg=; h=Subject:To:References:From:Date:In-Reply-To; b=cqewb7m2UYlTZmysbriSewORKavLv5oSTc8SXCzRvsPivm/odIgb1NFtfBakpp8B2 fr8gCIfFpmq5GB2FLaovc4SaOwtuowdTFCF/yb/KtdH3hDh1HFoVkYT9uck1UuGIhv SRh8EkT/5JE44iOOyQTfyJma99vJCNO3i6Bk83Uw= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2K58tLC002349; Tue, 20 Mar 2018 00:08:55 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Tue, 20 Mar 2018 00:08:55 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Tue, 20 Mar 2018 00:08:55 -0500 Received: from [127.0.0.1] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2K58qMJ024906; Tue, 20 Mar 2018 00:08:53 -0500 Subject: Re: [PATCH 4.4 038/134] ARM: DRA7: hwmod_data: Prevent wait_target_disable error for usb_otg_ss To: Greg Kroah-Hartman , , , Roger Quadros , Tony Lindgren , Sasha Levin References: <20180319171849.024066323@linuxfoundation.org> <20180319171854.858515505@linuxfoundation.org> <20180319235251.ui2gf3nlg2icbbdx@xps> From: Tero Kristo Message-ID: Date: Tue, 20 Mar 2018 07:08:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180319235251.ui2gf3nlg2icbbdx@xps> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 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") -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