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: 10561345 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 15B771390 for ; Thu, 9 Aug 2018 12:32:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F187E2624C for ; Thu, 9 Aug 2018 12:32:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E347427968; Thu, 9 Aug 2018 12:32:57 +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,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 84EE42624C for ; Thu, 9 Aug 2018 12:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731432AbeHIO5h (ORCPT ); Thu, 9 Aug 2018 10:57:37 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:35163 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727786AbeHIO5h (ORCPT ); Thu, 9 Aug 2018 10:57:37 -0400 Received: by mail-pl0-f67.google.com with SMTP id w3-v6so2512244plq.2 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=mpGUHtVqTKtOENxcF0i8BuX02fSXn7N6AMY/kSuWKwh1xsq91DfgJE8f9k+EqO6iU9 Jsj5RnITrHOoqWJts4FZPbUY4hRt/MvAxzBqTSVqHTAfaOzSgf4rVwgcgnw38rx/QQ8p SEXGagIrfM+mKkxTDdtNTPD5Plx7KRymSZ7jOfQgfXBGxYJMloTH6Zl3TJs7Seflv5xr N2nD0fTjlqNh3sg4bjxpf3Z5gImfzdHrFueOAOLUhlMSFsIp6EHo8Q3IqFbX/tJWgC8R 2iKmW4uEz8/6vvrBqnnbFRGvSgoKU7QRMEnu9oAZKXSfiqIcKZCJYd5EA87xGMwtHlUA J6Cg== X-Gm-Message-State: AOUpUlEK/phi+5Azi6Xg2Hrd/5LD4as7QOMkqES6az6fBLOJdIEor2Od xycxKaTKe+YCtJ0z0eMPY7tXK2PEfQM= 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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(-)