From patchwork Thu Aug 9 12:32:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10561347 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 0BC9F13AC for ; Thu, 9 Aug 2018 12:32:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED9CE2624C for ; Thu, 9 Aug 2018 12:32:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E187B2787C; Thu, 9 Aug 2018 12:32:58 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable 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 B7E5E26538 for ; Thu, 9 Aug 2018 12:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731574AbeHIO5h (ORCPT ); Thu, 9 Aug 2018 10:57:37 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:34593 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731246AbeHIO5h (ORCPT ); Thu, 9 Aug 2018 10:57:37 -0400 Received: by mail-pl0-f66.google.com with SMTP id f6-v6so2515558plo.1 for ; Thu, 09 Aug 2018 05:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=MGYrx0uZNDgVFHPX1cqi8GQIfy0CW578H1zRnv2sLks=; b=O2CoElr2tyWllOC9VwoU7wUpp+y8qZRFuhoZv/TCXA0fNCE773DM9VV4fJZY5ZG0Y4 TmwigVpo/QVrAgGgHszkG1skLqxWmjOXdOSyt4JLewtZQcKFHoXS7vlJG0UtfuFK23mj EGiHzD1Z47oYqeIFWnr4ygZN8aUhuV5tjO0uw= 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; bh=MGYrx0uZNDgVFHPX1cqi8GQIfy0CW578H1zRnv2sLks=; b=WJpFEkKB9gw9swwGYm10txEodumsUVB0u572tyuoQCK5nA1Q1IqMGpTLd2dek8WtsG elNs0Yu9H5KqrnZvgjXhLnYTMWIDQW4qe+Ss09WwFi2ko0JjW8FC6nz8gle70bP3XKlD h1QnYQf0OsTHFfjsp2emyfgiKieUYNMrXq8t204APSsD6p9sgTFoglTfa3Jd2RM/rGiR gIyz2ODLiiDDNSv/CXnUukLYbAGYKuH7Bbl/oCUbZCWsea4ugkoLKZ9aFk6nx/8Qo4zW RwHAP7WAUxIyHB+bDqVTOiaNwa7rsb5sVHhF3CNetqZACLGdet9DejGiijnqjzJHoXby N6yw== X-Gm-Message-State: AOUpUlFU6vtfkwjyX+vyQhPGIwtyavnjtEvDoGbCPN6ynTMuCH/ZJ6Au scBHxukfRKEFS/Wxegr6Tlb3zg== X-Google-Smtp-Source: AA+uWPwvZuz6w8Pf9SiG/wD2DOQDLubUtHxP6r1TPVLRsFDZFHpAiYR0yB+l2wuQL7cmXZAdEvxK+Q== X-Received: by 2002:a17:902:7793:: with SMTP id o19-v6mr1975430pll.306.1533817975531; Thu, 09 Aug 2018 05:32:55 -0700 (PDT) Received: from localhost ([45.113.251.134]) by smtp.gmail.com with ESMTPSA id u69-v6sm8979964pgd.43.2018.08.09.05.32.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Aug 2018 05:32:54 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, smohanad@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, "David S. Miller" , Andrew Morton , Arnd Bergmann , Greg Kroah-Hartman , Mauro Carvalho Chehab , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-soc@vger.kernel.org Subject: [PATCH v1 00/10] Another round of tsens cleanups Date: Thu, 9 Aug 2018 18:02:32 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is another series of tsens cleanups before we add interrupt support. This applies on top of the earlier two series[1][2] that have already been accepted for 4.19. In this series, we have the following: - splitup 8916 and 8974 register address spaces for SROT and TM - cleanups: move to spdx, dead code removal, removal of id field - Add support to map the SROT address space for DTs that list it separately - Check if TSENS IP is enabled in firmware by querying the SROT space - Add reg-names property to get more readable outputs in /proc/iomem - Add myself as maintainer of tsens Regards, Amit [1] https://lore.kernel.org/lkml/cover.1531895128.git.amit.kucheria@linaro.org/ [2] https://lore.kernel.org/lkml/cover.1532600791.git.amit.kucheria@linaro.org/ Amit Kucheria (10): arm/arm64: dts: msm8974/msm8916: thermal: Split address space into two dt-bindings: thermal: Fix a typo in documentation thermal: tsens: Add SPDX license identifiers thermal: tsens: Get rid of dead code thermal: tsens: Rename map field in order to add a second address map thermal: tsens: Add the SROT address map thermal: tsens: Check if the IP is correctly enabled by firmware thermal: tsens: Get rid of 'id' field arm64: dts: qcom: Add reg-names for all tsens nodes MAINTAINERS: Add entry for Qualcomm TSENS thermal drivers .../devicetree/bindings/thermal/thermal.txt | 2 +- MAINTAINERS | 7 +++ arch/arm/boot/dts/qcom-msm8974.dtsi | 7 ++- arch/arm64/boot/dts/qcom/msm8916.dtsi | 7 ++- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 + drivers/thermal/qcom/tsens-8916.c | 11 +--- drivers/thermal/qcom/tsens-8960.c | 41 +++++------- drivers/thermal/qcom/tsens-8974.c | 11 +--- drivers/thermal/qcom/tsens-common.c | 62 ++++++++++++------- drivers/thermal/qcom/tsens-v2.c | 6 +- drivers/thermal/qcom/tsens.c | 21 +------ drivers/thermal/qcom/tsens.h | 24 +++---- 13 files changed, 99 insertions(+), 104 deletions(-)