Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2395149ybn; Thu, 26 Sep 2019 11:12:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNjkcY29N9r44kN0tITMq4VVU1ItvUKOaUS/F62UXALGEB/mNtwCWebOCMYe4V9Ei5WMeQ X-Received: by 2002:a17:906:139b:: with SMTP id f27mr4231596ejc.195.1569521574303; Thu, 26 Sep 2019 11:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569521574; cv=none; d=google.com; s=arc-20160816; b=X1x7Fkmdaek8mzMO5mEIY7JBNz5ciT4nlyjgYHb7BeQlbMbwW3jNZdUAv5JjjSk/6+ FRz1RTewFVFQ6zZ3wbD384y578hh3ozGqF3/Il4l9dNISUk0G4OpPDjqK0aL+42tHOU2 2yxGTK6/wjGcqmJd16vH0nsCFu0a5s75AmgoGghGzbdB+3hRiQ+lV39Qnjim427+bRJp btPki9hUoEFOwl0py2fp+oX6KaV2octBvIf/RkLzKpRpI3kJGS8l/fZpIA23Q7XA+C7d MtUliah+LNZbR9yN44SPYoF276NP8NPhHrr3vHCk/PYS8J5yBqm5vxOGKWCh7BC8lNno TbPg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=58oAE4FBJrvRDbJC9Z0EK/F0sTVW2LhvzqkiBlcRcx8=; b=hJ4bnb1ETh6nlgz7zyyzzYWEJSvZp0alKrNJrH3VcY5QhpQCdoaW1fIpXpaRv4JMex OV2br1EqCJMbdbMNlHRV25pI+6rADsAZ7oQ9G7NQseH8UG5ifYztNrOvykzBwSK41XMn T9Xeltdvb9ILwuIcPbh5iib8T1TczmPlbzx7ix0ypLszzCzfpGSeQjWHhPicwZA2gVJq IdvWlMZ/llnzZdAU8A2Ft5DmpzGmvgvjzrLGyMEAEZy0MEIFgQvDdF0rbqKxwedbCuE4 osrnTHSzsb73HK4v96ilSTNWcMQG7W6ko7dgBMKQEakMJVhv87VM7DkijG+R+VP252WU iVag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u8U76DKj; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13si1491621ejb.98.2019.09.26.11.12.29; Thu, 26 Sep 2019 11:12:54 -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=@gmail.com header.s=20161025 header.b=u8U76DKj; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727931AbfIZSKk (ORCPT + 99 others); Thu, 26 Sep 2019 14:10:40 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:32864 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbfIZSKk (ORCPT ); Thu, 26 Sep 2019 14:10:40 -0400 Received: by mail-lf1-f65.google.com with SMTP id y127so2427564lfc.0; Thu, 26 Sep 2019 11:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=58oAE4FBJrvRDbJC9Z0EK/F0sTVW2LhvzqkiBlcRcx8=; b=u8U76DKjRJoT8QCsQV+FPzbekduPDZgnFTln6B26fZz44ZHloyZi9UTQ0fHPQUj/Ue ohQAL9LYNvJaf7453XeiAM2FJbop88jKCf7o4tTUYe2yccfTc2+6mLxb6QikGQt/jHOx 9GdlqiqxFAI3tBWFd9kdukJQqgF8PUShBKEwSisgbyB8SdQjWryFQRL57AmkIaqgrSgn etD/9GT0+9mPKJnvRPH7WEN1rdlakfS3UtkwBlMd/EvqPvkPP2H+16kM5sRfByZ7dOUU q4+z87r+y6FWA0Ovm8HpizSQlw48AtbvE00/5s8valSjwbplHbhOlTBTdH3+PVQ6kkXK ZfsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=58oAE4FBJrvRDbJC9Z0EK/F0sTVW2LhvzqkiBlcRcx8=; b=aU1TrFPUv/Iee1lqtL9lnBAdzymsBbdIzSa4Kb0TxEj2AjYrlJIHBYi1g7tzsnGcR4 XbdpJXyUSAMIjxZddx4kXeb65tzl2aI5ok1HbMDPU8GLNRbmnV2gJV40SvDXmpfU8k3x u6ZVZzjzeZoKuOWMA3KDi8uV6J1RY8RkCxZB026n/eitnXFpmNDpx9ERaRmOkFd0dDME tVbsqkDPNXolLfT61QwiMvpxFVgMUP1RQm+vgsndwqSu8+rEIxbj2s7rCANGUfJBsfDB 52nVtL1/Quiqey+2VWZsMX07gTIsgcxZC05vP2xK1cm74BocWT7awIZ9eesQjx4Y3hDo F+oQ== X-Gm-Message-State: APjAAAUQcB6lGUzeugOsGdg9W/xr+kdWq8V6pDAL7XbQCK7fgXjHfCPe mRcURXMgJIjCwKHMmYVraWG2WCH0CBONcgplhno= X-Received: by 2002:a19:f11c:: with SMTP id p28mr2982279lfh.44.1569521438172; Thu, 26 Sep 2019 11:10:38 -0700 (PDT) MIME-Version: 1.0 References: <1556169264-31683-1-git-send-email-Anson.Huang@nxp.com> <1556169264-31683-2-git-send-email-Anson.Huang@nxp.com> <155623699177.15276.12577395377027956830@swboyd.mtv.corp.google.com> In-Reply-To: From: Fabio Estevam Date: Thu, 26 Sep 2019 15:10:48 -0300 Message-ID: Subject: Re: [PATCH 2/2] clk: imx: disable i.mx7ulp composite clock during initialization To: Anson Huang Cc: Stephen Boyd , "gustavo@embeddedor.com" , "kernel@pengutronix.de" , "linux-arm-kernel@lists.infradead.org" , "linux-clk@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "mturquette@baylibre.com" , "s.hauer@pengutronix.de" , "shawnguo@kernel.org" , Aisheng Dong , dl-linux-imx Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anson, On Mon, Aug 5, 2019 at 11:25 PM Anson Huang wrote: > > Hi, Stephen > I think we should resume this thread, without this patch, mainlin= e kernel boot up will cause mmc timeout all the time. If it is NOT good to = disabling those peripheral devices' clock in i.MX7ULP's clock driver, then = we have to change the core framework to disable clock explicitly if the CLK= _SET_RATE_GATE/CLK_SET_PARENT_GATE is present, most likely it will impact o= ther platforms I think, so the most safe way is just to do it inside our i.= MX7ULP composite clock driver. What do you think? Just tested your patch against 5.3 and mmc card can be detected with it. Please note that I had to manually add: #include so that it can build. I agree we need to come to a solution for this. Stephen, please let us know your thoughts. Thanks