From patchwork Mon Nov 11 19:21:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 11237491 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A9E3C1709 for ; Mon, 11 Nov 2019 19:21:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7B72021E6F for ; Mon, 11 Nov 2019 19:21:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jcc2cAsk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727040AbfKKTVg (ORCPT ); Mon, 11 Nov 2019 14:21:36 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:40999 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbfKKTVf (ORCPT ); Mon, 11 Nov 2019 14:21:35 -0500 Received: by mail-pg1-f196.google.com with SMTP id h4so10031627pgv.8 for ; Mon, 11 Nov 2019 11:21:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=zZILD+44OX1q5dyQzdM2BbgJv0kkr/NqvYdzqJF0VWU=; b=jcc2cAskjWBgTeYwsSv3lvsFyjpx3z/2/dQVMzCjv1lmIFKWhkHxwaMJrmIvvzX4Zr OF/rQM08+qFfbfpDc8ai8eZ0IFQ4+o3hIYKkDKyXMOLL24DVR1C15WLDsCUXefgV4oKA pMO1W8OkboYcq+mtU/Rj1PxtqnJR3JahYQwmQeCGRHFcMGdwDyYM2RtjQwMqyZJKryNL Ax08rcC/xS5IEgOE60HRwPIja/rZ2eeyJTh3DI9MAGLckAXXO4Tr5GPKw9R3kv6Kq3ye lYqLrULR/t+MCbEALuBHLQJacFwZUVEGlAqbpTSFu5C3nv2uCt0XwGTOVxA099KQGn/h IfUA== 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=zZILD+44OX1q5dyQzdM2BbgJv0kkr/NqvYdzqJF0VWU=; b=GEsUcbHA+tHzplLR8f0WHMGJBOwXAKnwYpyIMoRUyF95qiZmRBHaENCba285AgRWWT yzjvAMgN9IgCwni6cu1Wlb7sBx5bk/vckjUGQRjPsIt40kS0GkOcMQJJSa6w57QzqYYh U1GRUBamBZouvUqO0Sgb58XdRj43hjnNJVFSdChpKdaSBeJN1muxVIxu27ObmKX9dvAh caAPqYZVzMtZYkppHnPa9W7Xo7TOOO1hbIBpVBpNn5waY/daB9ow9owdoI6olcRPsxq4 RS64vdo9pQqAy7booEP4DejZoXAgpMgmkFbxnUUfftukaSzTEpGlaSOnAbrxupWaTmvG BSAA== X-Gm-Message-State: APjAAAXUmuwTETHIkzWgV+mCUf76qYAk3u7dkc4mbrmwb2PXdFGWou41 Gn8HMq6A84XETPkOlHkqfVuyqLAc6NmFag== X-Google-Smtp-Source: APXvYqzvHgUVjW/Rd7K/W+r2O5+4vx7SxfEQkH5rCRHJfWJtzF7eQkUWs7LcfgNd2hnpOUHjHrobqg== X-Received: by 2002:a17:90a:2623:: with SMTP id l32mr861971pje.70.1573500094683; Mon, 11 Nov 2019 11:21:34 -0800 (PST) Received: from localhost ([49.248.192.129]) by smtp.gmail.com with ESMTPSA id v24sm4331651pfn.53.2019.11.11.11.21.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Nov 2019 11:21:33 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, swboyd@chromium.org, sivaa@codeaurora.org, Andy Gross Cc: Amit Kucheria , Daniel Lezcano , devicetree@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 0/3] thermal: tsens: Handle critical interrupts Date: Tue, 12 Nov 2019 00:51:26 +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 TSENS IP v2.x supports critical interrupts and v2.3+ adds watchdog support in case the FSM is frozen. Enable support in the driver. Amit Kucheria (3): drivers: thermal: tsens: Add critical interrupt support drivers: thermal: tsens: Add watchdog support arm64: dts: sdm845: thermal: Add critical interrupt support arch/arm64/boot/dts/qcom/sdm845.dtsi | 10 +- drivers/thermal/qcom/tsens-common.c | 170 +++++++++++++++++++++++++-- drivers/thermal/qcom/tsens-v2.c | 18 ++- drivers/thermal/qcom/tsens.c | 21 ++++ drivers/thermal/qcom/tsens.h | 85 ++++++++++++++ 5 files changed, 289 insertions(+), 15 deletions(-)