Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp632179ybl; Fri, 6 Dec 2019 03:48:03 -0800 (PST) X-Google-Smtp-Source: APXvYqw0XzSKIkn/5R9N7sYr8iQrnOlw4Elj19R02jWs6SMA7ldBHpk9GrA9U90VovyCy6kEQEeI X-Received: by 2002:aca:dd04:: with SMTP id u4mr6013126oig.94.1575632883480; Fri, 06 Dec 2019 03:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575632883; cv=none; d=google.com; s=arc-20160816; b=CJbJqrCJiLu7zBR7P0QYGqBJDMHH8Arj3WYFRHL7pAbCKgH8ezlSjLnUjAfovHDrVD 65uC1CB08nNVmYM3gOWweUGPKhYJYgrmwMVuzDYx1bk4vYuD1xoYo2Dfr2Cnc9DoAYhG Bd89EUN353jUn6418T8qWOeqHtEbg8GJWvTpjSBlPRtBWCVEcfrgvyU6oVJquUlzDzCG 4RNxzsuf/0EzGdkDIpE7W6RSWyLugQvl5IFFqXkfhcroUrIiOQYKdiyEBqe2KIe2MnJB R3psAw4nw+YfxOrCrjx62o0q32rNuzJwk1LK/NSbjc5TRy+dibA5s4BtFEydpxJqUx4d 2vUw== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=bM3DzFh8eovxax7+nz6h2PX/RO+djSAdR076Fyvu/1k=; b=A8XTGaHHWZ0OoxagzDkavv5ONXMi15ryer75fkL7+vrxR/7lxlRWeGGQpCd4tSaPww lxl/0JyngVl/mDy/mRt82JwmwVfEmfvA1jdjVmfVTx3XJEqLS3qSzyToOnw0dVRqiENh lKOaWeRF0EvbQFvDrfwOgY3KCIqgdwEJd2LJ53PnADy19IkFZg3XJc7RRYhryy5zuY7T WGBjUCLicTR26tsGWvUsQue4nEOBpue2B9Esd8691uYJ0bYW09eCJ8+O0ZPBTVAxp1C7 F+BiU4LHZrSDZq1ktxm12IjzDfPAcs0/WlQeA/47Y8UYrfdTvJGba+7Dr7+GaFfMkEH/ hJYw== 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 w4si6433000otl.214.2019.12.06.03.47.50; Fri, 06 Dec 2019 03:48:03 -0800 (PST) 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 S1726271AbfLFLrK (ORCPT + 99 others); Fri, 6 Dec 2019 06:47:10 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:58833 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726201AbfLFLrJ (ORCPT ); Fri, 6 Dec 2019 06:47:09 -0500 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1idC4d-0003mO-0b; Fri, 06 Dec 2019 12:47:03 +0100 Message-ID: <27b7642917479f9c17af30054abe1a72d0b121f7.camel@pengutronix.de> Subject: Re: [PATCH v7 00/12] QorIQ TMU multi-sensor and HWMON support From: Lucas Stach To: Andrey Smirnov , Zhang Rui , Daniel Lezcano Cc: Chris Healy , Eduardo Valentin , Angus Ainslie , linux-imx@nxp.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 06 Dec 2019 12:46:59 +0100 In-Reply-To: <20190912012920.29601-1-andrew.smirnov@gmail.com> References: <20190912012920.29601-1-andrew.smirnov@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, can this series be considered for mainline inclusion? It has been tested and works well in our i.MX8M kernel setup. Regards, Lucas On Mi, 2019-09-11 at 18:29 -0700, Andrey Smirnov wrote: > Everyone: > > This series contains patches adding support for HWMON integration, bug > fixes and general improvements (hopefully) for TMU driver I made while > working on it on i.MX8MQ. > > Feedback is welcome! > > Thanks, > Andrey Smirnov > > Changes since [v6]: > > - Rebased on top of Zhang's "next" branch > > - Added "thermal: qoriq: Drop unnecessary drvdata cleanup" > > Changes since [v5] > > - Rebased on recent linux-next, dropped "thermal: qoriq: Remove > unnecessary DT node is NULL check" since it is already in the > tree > > - Dropped dependency on [rfc] > > Changes since [v4] > > - Collected Tested-by from Lucas > > - Collected Reviewed-by from Daniel > > - Converted "thermal: qoriq: Enable all sensors before registering > them" to use if instead of switch statement for error checking > > Changes since [v3] > > - Series reabse on top of [rfc] > > - Fixed incorrect goto label in "thermal: qoriq: Pass data to > qoriq_tmu_calibration()" > > - Added REGS_TRITSR() register description to "thermal: qoriq: Do > not report invalid temperature reading" > > - Reworded commit message of "thermal: qoriq: Remove unnecessary > DT node is NULL check" > > Changes since [v2] > > - Patches rebased on v5.1-rc1 > > Changes since [v1] > > - Rebased on "linus" branch of > git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git > that included latest chagnes adding multi-sensors support > > - Dropped > > thermal: qoriq: Add support for multiple thremal sites > thermal: qoriq: Be more strict when parsing > thermal: qoriq: Simplify error handling in qoriq_tmu_get_sensor_id() > > since they are no longer relevant > > - Added > > thermal: qoriq: Don't store struct thermal_zone_device reference > thermal: qoriq: Add local struct qoriq_sensor pointer > thermal: qoriq: Embed per-sensor data into struct qoriq_tmu_data > thermal: qoriq: Pass data to qoriq_tmu_register_tmu_zone() directly > > to simplify latest codebase > > - Changed "thermal: qoriq: Do not report invalid temperature > reading" to use regmap_read_poll_timeout() to make sure that > tmu_get_temp() waits for fist sample to be ready before > reporting it. This case is triggered on my setup if > qoriq_thermal is compiled as a module > > [v1] lore.kernel.org/lkml/20190218191141.3729-1-andrew.smirnov@gmail.com > [v2] lore.kernel.org/lkml/20190222200508.26325-1-andrew.smirnov@gmail.com > [v3] lore.kernel.org/lkml/20190401041418.5999-1-andrew.smirnov@gmail.com > [v4] lore.kernel.org/lkml/20190413082748.29990-1-andrew.smirnov@gmail.com > [v5] lore.kernel.org/lkml/20190424064830.18179-1-andrew.smirnov@gmail.com > [v6] lore.kernel.org/lkml/20190821012612.7823-1-andrew.smirnov@gmail.com > [rfc] lore.kernel.org/lkml/20190404080647.8173-1-daniel.lezcano@linaro.org > > Andrey Smirnov (12): > thermal: qoriq: Add local struct device pointer > thermal: qoriq: Don't store struct thermal_zone_device reference > thermal: qoriq: Add local struct qoriq_sensor pointer > thermal: qoriq: Embed per-sensor data into struct qoriq_tmu_data > thermal: qoriq: Pass data to qoriq_tmu_register_tmu_zone() directly > thermal: qoriq: Pass data to qoriq_tmu_calibration() directly > thermal: qoriq: Drop unnecessary drvdata cleanup > thermal: qoriq: Convert driver to use regmap API > thermal: qoriq: Enable all sensors before registering them > thermal: qoriq: Do not report invalid temperature reading > thermal_hwmon: Add devres wrapper for thermal_add_hwmon_sysfs() > thermal: qoriq: Add hwmon support > > drivers/thermal/qoriq_thermal.c | 252 +++++++++++++++++--------------- > drivers/thermal/thermal_hwmon.c | 28 ++++ > drivers/thermal/thermal_hwmon.h | 7 + > 3 files changed, 167 insertions(+), 120 deletions(-) >