Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1181119ybl; Fri, 30 Aug 2019 13:11:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzH9L9BCWbq4dEdCfOYwl2U7vuUoSWJPvi4p5JHYcC/bSH+vhirYaVO8C6UA5NSYKrE3+LD X-Received: by 2002:a62:86cf:: with SMTP id x198mr20307675pfd.195.1567195888592; Fri, 30 Aug 2019 13:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567195888; cv=none; d=google.com; s=arc-20160816; b=d3klDc7cdcqro6CZPMiDxi3mOcy6E++amJNRnkF4k46OuwytkJkLFiyVRs6O+IGk3+ WR9SPmtQGzQnUaz4a9+EcNtem3mC7ua37fq9tvYDy1AtYL0VTpdM+X/shj50kr3xmIpe ou/5B+Krj2kQDGApZae7tfp52Ma5mSkVCJhLx7B5HUMf3/Hv1ENhxaWpsYu7ysOK+K5j Wh+tgG5Cw/d5XAu49eC7briAb9jyz8LAMHCYHrayI2JOaSPBHX8HVWJ3DeR2k1QRIx9n 5HTCfEz2fRnwQfErShH2pLdQGTc6kMMgEKX0EVB9/mQeVZlrSfS9N3m/xz7Gw54xj64O x6KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ykdpZ3lP39dlVnbQ5KDoe1TuBSHZwyVocsneznT9rQE=; b=tL7uQiMnjFYWrWqL8ib902cIdyIZwqvi7TqOof0Ncqr91upNPFZnUfEBf5DiRElPPL o1QivreRkXvPL2tJFMIvG3DnCL+2/uxeQ5n7svmjDRO2Ha2fGyg9vsiVm4JOzV8DhkaG y9uCW1Rw9IouC/0u+oM6FvJDsOqVOxkAoGDR/NsXSLSUIpewOGMSCtrdrvW21dNdGwgX liCIuIZUW3DgdRAvyB+fV9yVKz8JH46/VeWYI6fLkgZCDPI5QkNFbtNL/z03RLJH/uXN PBAIShJLpFgaWAsXVfyCG1TFqYdpzVKz//kQoCyvWkCQj3QOkM88YHgaPEz0ScYdz87O 6z5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XihncdPf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h129si6801788pfb.91.2019.08.30.13.11.13; Fri, 30 Aug 2019 13:11:28 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=XihncdPf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728242AbfH3UKX (ORCPT + 99 others); Fri, 30 Aug 2019 16:10:23 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:34232 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728008AbfH3UKX (ORCPT ); Fri, 30 Aug 2019 16:10:23 -0400 Received: by mail-qk1-f196.google.com with SMTP id m10so7300251qkk.1 for ; Fri, 30 Aug 2019 13:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ykdpZ3lP39dlVnbQ5KDoe1TuBSHZwyVocsneznT9rQE=; b=XihncdPfw8Y5WDsLRhGs6fYzbisVgMxlyPdg3ot2eXeQARM6P5zBldtANv5/CC7tTZ I7VeOV+dAfznnv1tOjZKqMAtD/BGGyE3UY7Cz+pJ2FGkovFzyna4dY2kTANicHk3KnSj qowoCxS3+BeN6WKTh7yjuvkbIumJldeCEaD1Ay39TArzYNQmwTG/OCNQ16bsflwtQ/yt SObq3auat+mGZten0jcpsswKU/GuKEaqfzbkS0Rs4vhlltiVvRfZOaFkcDPJ9JQ6NHJf GjOH85aABntGnH/QQ1nLRjH2MMpg9XjSmu6upJUUvcZtWDD9PdvM9q4N02NuTTensx7R +Puw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ykdpZ3lP39dlVnbQ5KDoe1TuBSHZwyVocsneznT9rQE=; b=nlT8fo66G4jJqhf6nxPPqGP+11QMhWy5Ey0cYe3IcQd9/hZWYTbnVf/HEOeRjnYkyL dnsXjbSrKEn1do6bue7wh75EKVJU41U10Wh4IVs345+52qiTgMO6Ny7EhYecZKx5oDY6 fkVrF8g3vIpegwJ1g4QkcEZKNhC1ZogSTBM4cXGyyrc87Zpnn6MD2AXlcASBB+ED1Rrl QIgBDNy78UhmBPXb+WXExDRpouzSWAFj/+07F3C5/JbJRrZp+ikvlxxYKqlq/FGV1e30 /6wy0v4N+yivI4WEbOhtqK74kuICXNt7z+XfyEQdeyW6js+/0JVvAAr09bQKrZyXf6E2 D78Q== X-Gm-Message-State: APjAAAW9gPvN2Ica+geS0rIT36C69nR6VEmrKoPT0hAcA7P/rARBDXYg B4/QB4f6vQY+y23ek0XJeEXQAOWjKpMlYxUkQWY/fw== X-Received: by 2002:a05:620a:143b:: with SMTP id k27mr16695729qkj.127.1567195822193; Fri, 30 Aug 2019 13:10:22 -0700 (PDT) MIME-Version: 1.0 References: <1cb5ab682bce53d32f3a73b5b29cc6c3e800bfcc.1566907161.git.amit.kucheria@linaro.org> <5d65cc4a.1c69fb81.376b6.2486@mx.google.com> In-Reply-To: <5d65cc4a.1c69fb81.376b6.2486@mx.google.com> From: Amit Kucheria Date: Sat, 31 Aug 2019 01:40:10 +0530 Message-ID: Subject: Re: [PATCH v2 09/15] arm64: dts: msm8996: thermal: Add interrupt support To: Stephen Boyd Cc: Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui , Andy Gross , Bjorn Andersson , Eduardo Valentin , linux-arm-msm , Linux Kernel Mailing List , Marc Gonzalez , Brian Masney , DTML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 28, 2019 at 6:05 AM Stephen Boyd wrote: > > Quoting Amit Kucheria (2019-08-27 05:14:05) > > Register upper-lower interrupts for each of the two tsens controllers. > > > > Signed-off-by: Amit Kucheria > > --- > > arch/arm64/boot/dts/qcom/msm8996.dtsi | 60 ++++++++++++++------------- > > 1 file changed, 32 insertions(+), 28 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > > index 96c0a481f454e..bb763b362c162 100644 > > --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi > > +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi > > @@ -175,8 +175,8 @@ > > > > thermal-zones { > > cpu0-thermal { > > - polling-delay-passive = <250>; > > - polling-delay = <1000>; > > + polling-delay-passive = <0>; > > + polling-delay = <0>; > > Is it really necessary to change the configuration here to be 0 instead > of some number? Why can't we detect that there's an interrupt and then > ignore these properties? AFAICT, the thermal core currently depends on the passive and polling_delay being set to 0 to avoid setting dispatching polling work to a workqueue. If we leave the values to set, we'll continue to poll inspite of an interrupt. See thermal_core.c:thermal_zone_device_set_polling() But I agree, the core should detect the presence of an interrupt property and ignore the polling intervals. I'll see if I can fix this up later. Regards, Amit