Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932277AbdLTR04 (ORCPT ); Wed, 20 Dec 2017 12:26:56 -0500 Received: from mail-pl0-f43.google.com ([209.85.160.43]:44672 "EHLO mail-pl0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756177AbdLTR0u (ORCPT ); Wed, 20 Dec 2017 12:26:50 -0500 X-Google-Smtp-Source: ACJfBosd6ZVHYEmc2VRASX253nOV5odZTIgrxQT+LZPpnxNrew4KfBIEgrPB1EyV0q6EOd1BQUsL2w== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 To: Dmitry Osipenko , "Peter De Schrijver" , "Prashant Gaikwad" , "Stephen Boyd" , "Thierry Reding" , "Jonathan Hunter" From: Michael Turquette In-Reply-To: <6e09f1cb-cb89-55a5-b7ea-52cb9f0efaf2@gmail.com> Cc: linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <10b27ad57c959b6a87f339cc2237cfe45865771d.1513655733.git.digetx@gmail.com> <151371340146.45969.1875712520168365873@resonance> <6e09f1cb-cb89-55a5-b7ea-52cb9f0efaf2@gmail.com> Message-ID: <151372175856.45969.11728164366457295655@resonance> User-Agent: alot/0.3.7 Subject: Re: [PATCH v2 1/2] clk: tegra: Mark HCLK, SCLK, EMC, MC and PLL_P outputs as critical Date: Tue, 19 Dec 2017 14:15:58 -0800 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id vBKHR2q2025700 Content-Length: 1363 Lines: 28 Quoting Dmitry Osipenko (2017-12-19 12:20:56) > On 19.12.2017 22:56, Michael Turquette wrote: > > Quoting Dmitry Osipenko (2017-12-18 19:59:06) > >> Machine dies if HCLK, SCLK or EMC is disabled, hence mark these clocks > >> as critical. Currently some of drivers do not manage clocks properly, > >> expecting clocks to be 'always enabled', these clocks are MC and PLL_P > >> outputs. Let's mark MC or PLL_P outputs as critical for now and revert > >> this change once drivers would be corrected. > > > > Are the drivers that do not manage their clocks correctly merged > > upstream? If so can we fix those drivers instead of marking clocks as > > critical? > > All the drivers are in upstream for a quite long time already. We should be able > to correct them, but I haven't tried yet. > > > If not can we annotate the flags below with a comment stating to remove > > the critical clock flag once the consumer driver gets a clue? > I'll try to take a look at how much effort it would take to correct the drivers > during the next few days and will send v3 with either the comment being added or > 'always enabled' clocks being dropped from the patch. Great, thanks for looking into it. Critical clocks are an easy-to-abuse feature and we should really be using the clk.h api as much as possible in place of the critical clocks mechanism. Best regards, Mike