Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753280AbdF2NmA (ORCPT ); Thu, 29 Jun 2017 09:42:00 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:16062 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752748AbdF2Nlw (ORCPT ); Thu, 29 Jun 2017 09:41:52 -0400 From: Gabriel FERNANDEZ To: Stephen Boyd CC: Rob Herring , Mark Rutland , Russell King , Maxime Coquelin , Alexandre TORGUE , Michael Turquette , Nicolas Pitre , Arnd Bergmann , "daniel.thompson@linaro.org" , "andrea.merello@gmail.com" , "radoslaw.pietrzyk@gmail.com" , Lee Jones , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-clk@vger.kernel.org" , Ludovic BARRE , "Olivier BIDEAU" , Amelie DELAUNAY , "gabriel.fernandez.st@gmail.com" , "Gabriel FERNANDEZ" Subject: Re: [RESEND PATCH v4] clk: stm32h7: Add stm32h743 clock driver Thread-Topic: [RESEND PATCH v4] clk: stm32h7: Add stm32h743 clock driver Thread-Index: AQHS31uuzVmODfuWeEOg6i19U5EFNaIv1S6AgAjJOICAAdCHAIABa4kA Date: Thu, 29 Jun 2017 13:41:04 +0000 Message-ID: <7c0c3861-cf61-a9e2-cd5d-2ae30b8f32fa@st.com> References: <1496818794-14771-1-git-send-email-gabriel.fernandez@st.com> <20170621220703.GI4493@codeaurora.org> <110cf67f-e1d6-1f99-953c-6b9639bb4910@st.com> <20170628155956.GA5316@codeaurora.org> In-Reply-To: <20170628155956.GA5316@codeaurora.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.50] Content-Type: text/plain; charset="utf-8" Content-ID: <076530B8F941BE43902C65DE1FC187E0@st.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-29_09:,, signatures=0 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 base64 to 8bit by mail.home.local id v5TDg3cI019434 Content-Length: 771 Lines: 27 On 06/28/2017 05:59 PM, Stephen Boyd wrote: > On 06/27, Gabriel FERNANDEZ wrote: >> >> On 06/22/2017 12:07 AM, Stephen Boyd wrote: >>> readl_poll_timeout? >>> >> if i use readl_poll_timeout (wich use 'ktime_get()') it can be >> operational only after the selection of clocksource ? (device_initcall). >> And then if a driver turn on a clock before, it could blocked the linux >> console ? >> > Ok. I wonder if we could add some sort of starting check to > readl_poll_timeout() that tests system_state for booting vs. > scheduling? That should be sufficient to handle this case? > Oops i think i understood my problem... i used readl_poll_timeout in atomic context. I have to move my code in the .prepare ops. If you are ok with that i will send a v5 Thanks Gabriel