From patchwork Fri Feb 5 13:45:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 12070165 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CF64C433E0 for ; Fri, 5 Feb 2021 13:48:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DBCF364FC2 for ; Fri, 5 Feb 2021 13:48:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231406AbhBENsZ (ORCPT ); Fri, 5 Feb 2021 08:48:25 -0500 Received: from muru.com ([72.249.23.125]:57602 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231408AbhBENqU (ORCPT ); Fri, 5 Feb 2021 08:46:20 -0500 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 8457E8061; Fri, 5 Feb 2021 13:45:50 +0000 (UTC) From: Tony Lindgren To: Amit Kucheria , Daniel Lezcano , Zhang Rui Cc: Eduardo Valentin , Keerthy , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCHv2 0/4] Thermal fixes for omaps for single mode read Date: Fri, 5 Feb 2021 15:45:30 +0200 Message-Id: <20210205134534.49200-1-tony@atomide.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Hi all, Here's v2 set of thermal fixes for single mode read. Turns out the EOCZ and SOC bit handling is quite different between the various SoCs. With these changes we fix the following issues for reading a single sample: - Get rid of pointless register access and loops for dra7 - Fix omap3 to use proper timeouts, the current looping is way too short and always times out probably leading to bogus values as folks have reported - Fix omap4430 where EOCZ only seems to work for continuous mode Regards, Tony Changes since v1: - Use better MODE_CONFIG checks as suggested by Peter - Fix issues for omap3 as noted by Adam - Fix handling for dra7 Tony Lindgren (4): thermal: ti-soc-thermal: Skip pointless register access for dra7 thermal: ti-soc-thermal: Fix stuck sensor with continuous mode for 4430 thermal: ti-soc-thermal: Simplify polling with iopoll thermal: ti-soc-thermal: Use non-inverted define for omap4 .../ti-soc-thermal/omap4-thermal-data.c | 7 +-- .../thermal/ti-soc-thermal/omap4xxx-bandgap.h | 4 +- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 54 ++++++++++--------- drivers/thermal/ti-soc-thermal/ti-bandgap.h | 2 + 4 files changed, 38 insertions(+), 29 deletions(-)