Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp57612ybi; Thu, 23 May 2019 23:34:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEtbNClaatewWKYLql4/BOWJZtN344qAZHWIqA6Kkxl427xVXIuRjTjmBN7l57x6Nk2Ng4 X-Received: by 2002:a17:90a:2322:: with SMTP id f31mr7105210pje.9.1558679671584; Thu, 23 May 2019 23:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558679671; cv=none; d=google.com; s=arc-20160816; b=iLiHpnNPWOeJBPj4AyIdYGbQ1bvWSqzZ28ctH2WGuuWEBQMGpXRtjSFFuQQinTYE8a mqMqeCjLV3/cJ99mbiSnlkBrnSszudvIXg+/YNeI4FV2H6S1JCD7b1ER5tG+oRWRMVPW H24AWg7S54ryF3PvQsMuP2/WqSQbS5jlAkWg142nj89RS00puyqQj/4KiKtBsEGxHZbK 7s0voAKJdgkEcPR0a/7OQO7CMVlh9d1ZiDXdbXOXXNRs6rZ3oG9enV8NE05mSp3nZpXI f1IsrybDyCH05SvM3nfP0EsLO6pamM0cIkRhY9RTmZZ63v310qTbeA95AMgFQRxZCM4H 0owA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9ljuqXpHhS4UXrwEKxwkVTKfustXIJPWz2ntXIH6u2A=; b=e4MuNe6p6LFZvAikuNPHAk82pWMtd9PLTz0giX20/RtFElae7+tAv1DdNtxPc+w94L ds1XdndMVKd9g+4djI9dygVd+av+YnAPyuUKJ+keV+pv5yjWd+KFMbw5UVPk4G6tHKZI XMTqCaJGXU1f2x5KfIyk4Gt7KF0Ef44HeUiVnILuKFdT446lP4tfkvTp1h6X2U1QimBn Y6IxnMVywM4xZ/QbjOGZiFB9mPeNv3Dop8eTPATqYLnW7wokrXRt0rRL81564QTZxT57 4MWG8fAfXSfVJA2cHwjIM0sQWBrW8skjyhPEoKO+8/gcxo3VOPHBdY0Wd/isakkHfHa1 6SIw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cm24si2285690pjb.106.2019.05.23.23.34.10; Thu, 23 May 2019 23:34:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388600AbfEXGcp (ORCPT + 99 others); Fri, 24 May 2019 02:32:45 -0400 Received: from gloria.sntech.de ([185.11.138.130]:34236 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388185AbfEXGco (ORCPT ); Fri, 24 May 2019 02:32:44 -0400 Received: from [46.183.103.17] (helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hU3ka-0002QF-W5; Fri, 24 May 2019 08:32:21 +0200 From: Heiko Stuebner To: Eduardo Valentin Cc: Doug Anderson , Elaine Zhang , Zhang Rui , Daniel Lezcano , Linux PM , "open list:ARM/Rockchip SoC..." , LKML , Enric Balletbo Serra , Brian Norris , Matthias Kaehlcke Subject: Re: [PATCH] Revert "thermal: rockchip: fix up the tsadc pinctrl setting error" Date: Fri, 24 May 2019 08:32:19 +0200 Message-ID: <2521723.3ZzQbFiSsD@phil> In-Reply-To: <20190524022042.GA1936@localhost.localdomain> References: <20190522141236.26987-1-heiko@sntech.de> <20190524022042.GA1936@localhost.localdomain> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, 24. Mai 2019, 04:20:43 CEST schrieb Eduardo Valentin: > On Wed, May 22, 2019 at 08:34:34AM -0700, Doug Anderson wrote: > > Hi, > > > > On Wed, May 22, 2019 at 7:12 AM Heiko Stuebner wrote: > > > > > > This reverts commit 28694e009e512451ead5519dd801f9869acb1f60. > > > > > > The commit causes multiple issues in that: > > > - the added call to ->control does potentially run unclocked > > > causing a hang of the machine > > > - the added pinctrl-states are undocumented in the binding > > > - the added pinctrl-states are not backwards compatible, breaking > > > old devicetrees. > > > > > > Fixes: 28694e009e51 ("thermal: rockchip: fix up the tsadc pinctrl setting error") > > > Signed-off-by: Heiko Stuebner > > > --- > > > drivers/thermal/rockchip_thermal.c | 36 +++--------------------------- > > > 1 file changed, 3 insertions(+), 33 deletions(-) > > > > In case it helps with the urgency, there are lots of people who have > > all independently needed to identify which commit stopped their boards > > from booting mainline or broke temperature reading. I'm aware of at > > least these reports: > > > > Reported-by: kernelci.org bot > > Reported-by: Enric Balletbo Serra > > Reported-by: Vicente Bergas > > Reported-by: Jack Mitchell > > Reported-by: Douglas Anderson > > > > I can confirm that my board boots again after this revert, thus: > > > > Tested-by: Douglas Anderson > > I see. I can collect this revert if that is what unblocks you guys. > > Elaine, do you mind checking why these pinctrl changes are causing > boot issues? The pinctrl issue is secondary, it makes the thermal driver fail to probe, due to not handling existing devicetrees properly. Hence the driver needs to stay backwards compatible with existing devicetrees. The hang is caused by the call to the per-soc ->control callback before the clocks get enabled, relying on it being on at boot and that isn't the case everywhere. Heiko