From patchwork Mon Feb 18 19:11:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10818623 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB4206C2 for ; Mon, 18 Feb 2019 19:12:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A7382BCAB for ; Mon, 18 Feb 2019 19:12:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DDB92BCA8; Mon, 18 Feb 2019 19:12:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 391342BCAB for ; Mon, 18 Feb 2019 19:12:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728423AbfBRTMB (ORCPT ); Mon, 18 Feb 2019 14:12:01 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41453 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728262AbfBRTMB (ORCPT ); Mon, 18 Feb 2019 14:12:01 -0500 Received: by mail-pl1-f193.google.com with SMTP id y5so3610430plk.8; Mon, 18 Feb 2019 11:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x6Nzx1UBHbUz3hyzl5qrUbTEPXuO+FY0q06jvpcgndA=; b=UNmLNLgtSp5b9Sl12DMhlj+eN4/iQVFaEJp0K555aL7xdfI2VHi15ibQBlF4nkyV/q 4nxy+TPLZJWuhRjFVuOADgIslzdS/F3aE/wsWMMRkHEDhekWGn5sZx4q7N0eGE+myCnW LUyTWht45PZYmu9jEX8LQyIj4jciZQfqHD0TgHuO1ivEjVYVmvFqy4AmhdmaJV0wG4cT e0pOvNhNTXgXvzBriGRHJ6b6fNfKit1v81ppZ9oRbg27JGXbVhVte6FUXiN1rnsSvcNA abnWshAOe5Ge/3DJKp0/Xz6DSJ5IKbcgChvLiDpHscfbcFSc0sZYIJRjZ5BRSYGFmyCs FY8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x6Nzx1UBHbUz3hyzl5qrUbTEPXuO+FY0q06jvpcgndA=; b=Bx6/IlVBFcsc+zvATqxbcI3x2ud9S/PkBFbYy60xA3teoqhv170qZ8dTOmge4JUmm0 0vuyNuS2lVEUY5j0CiqaLDRyiGACtgWFkqckvjJ6CjJm4xtNZx9W+UQNk9SF/ftT+9Ia yRxT7NRqA0K4CYfH6NipByGV0g8WW6tRSI32VPqDYZuAhz7fglzrXEHMiXdpXPt7ZFV6 gC8f/15iTw/cfWBHBLxf1A/3m6nrCoEUgWBHxuuitM9EKmGU1doiVATGT4lxRNWOxNHp GkLN/gwEpUO+crVUw4Hx/A8qGiZaQDak7R5iM6IGrfLLbvpQyMuKQ6uXFzRaQ87CwnqI defg== X-Gm-Message-State: AHQUAuZNjXZUIfiI2Ll4v0WFQkmbaURZzI6yyyYppsvxarLtd9dS/CcV WukEgVqouX4MJrkc9pkAqrajYAfn X-Google-Smtp-Source: AHgI3IZJU6pNjf0ooQXeDMruY/fSPVXJNgsPbIiW8z2ziyPzKC3pN3ngAeGpBufWuxs1mgCcP3vn/w== X-Received: by 2002:a17:902:9b96:: with SMTP id y22mr27344771plp.179.1550517120410; Mon, 18 Feb 2019 11:12:00 -0800 (PST) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id t12sm33189727pgq.68.2019.02.18.11.11.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 11:11:59 -0800 (PST) From: Andrey Smirnov To: linux-pm@vger.kernel.org Cc: Andrey Smirnov , Chris Healy , Lucas Stach , Zhang Rui , Eduardo Valentin , Daniel Lezcano , linux-imx@nxp.com, linux-kernel@vger.kernel.org Subject: [PATCH 00/12] QorIQ TMU multi-sensor and HWMON support Date: Mon, 18 Feb 2019 11:11:29 -0800 Message-Id: <20190218191141.3729-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Everyone: This series contains patches adding support for HWMON integration, multi-sensor support as well as a small fix and general improvements (hopefully) for TMU driver I made while working on it on i.MX8MQ. Feedback is welcome! Thanks, Andrey Smirnov Andrey Smirnov (12): thermal_hwmon: Add devres wrapper for thermal_add_hwmon_sysfs() thermal: qoriq: Remove unnecessary DT node is NULL check thermal: qoriq: Add local struct device pointer in qoriq_tmu_probe() thermal: qoriq: Don't pass platform_device to qoriq_tmu_calibration() thermal: qoriq: Convert driver to use devm_ioremap() thermal: qoriq: Add hwmon support thermal: qoriq: Convert driver to use regmap API thermal: qoriq: Enable monitoring before querying temperature thermal: qoriq: Do not report invalid temperature reading thermal: qoriq: Simplify error handling in qoriq_tmu_get_sensor_id() thermal: qoriq: Be more strict when parsing "thermal-sensors" thermal: qoriq: Add support for multiple thremal sites drivers/thermal/qoriq_thermal.c | 326 ++++++++++++++++++-------------- drivers/thermal/thermal_hwmon.c | 28 +++ drivers/thermal/thermal_hwmon.h | 7 + 3 files changed, 214 insertions(+), 147 deletions(-)