Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3783090yba; Mon, 29 Apr 2019 08:26:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQF3AOwlIbkLU66LUnf2RPJHZI6nosAdhbs2290dQKRJXiJcdZ75t8H4zeHpkBCQ+Uehv4 X-Received: by 2002:a17:902:9b92:: with SMTP id y18mr54110350plp.187.1556551614676; Mon, 29 Apr 2019 08:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556551614; cv=none; d=google.com; s=arc-20160816; b=l4fdOCO/ZzclH9YwrwmcHDj0iKPEBDptzWcsXN65BIx9wxoueopKJTqjp5ecgmlfc4 rHIlIoozISYxQ9h/RnAJtIcarELsRZoExDAi2bQku0IrvqPHgx/Q+H6p+tTmIsJqH/oH QfZdfGoa77NnMCIwcLlpGCrWxA/fGCmArHhWRcke9x323OnJ5LemR3BH843L/57nJPjK Dmm7LmpvUUv7HrNuFPdorup/X7mVH6IDLXKHOoZMMSkjLMIi6SfrMdKs4OFQ4yq8xOdf Y5J9n5Zoot/we5UAFBrIuwRJZKlMLeE9ibfFMjyg3gA/BwIrbGEK9LdDP9mcOCR6KXQX wH3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Qwqpp3SLYdsj74ypJkXNHBXoQXpSZjuaEiKDjpPKCZU=; b=XenL3MtszeUgNyHYp3rL5JQ4Ref3BDuU8ukAaBlUOYZDOlF1c4r+GoBEfzcnAx0YyX NidvN50P5f0nKfVj1mY1Wn7QH1LF1RCysluTCmLf0ng++sfGOzKzLiL4GPKMKU91nOTH pApiNyTor1B/0YiyRsUUfCShSK9fpRQ9gxmSalPc1pcvjo9A3sOadKCY1y6lFwnCaypN 3QRTPUcWA4GQXIFa7CCmbsWqCd6rkluyYaLI7D3RZXT1QmDZCNJzrYlkJJPmrXdGStyN UEZv65W7b5h4lloNw8uzEcAI2t+aWVqW9imwiU2RxphKuMn7aYAXCzGE0tAFgFfjUXj9 3ciA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z25si30771761pgv.442.2019.04.29.08.26.38; Mon, 29 Apr 2019 08:26:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728692AbfD2PY2 (ORCPT + 99 others); Mon, 29 Apr 2019 11:24:28 -0400 Received: from foss.arm.com ([217.140.101.70]:60394 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728430AbfD2PY1 (ORCPT ); Mon, 29 Apr 2019 11:24:27 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5E4AD80D; Mon, 29 Apr 2019 08:24:27 -0700 (PDT) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 596AC3F5C1; Mon, 29 Apr 2019 08:24:25 -0700 (PDT) Date: Mon, 29 Apr 2019 16:24:22 +0100 From: Sudeep Holla To: David Woodhouse Cc: Srinath Mannam , Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Pramod Kumar , Sudeep Holla Subject: Re: [PATCH 3/3] thermal: broadcom: Add Stingray thermal driver Message-ID: <20190429152422.GC17516@e107155-lin> References: <1527486084-4636-1-git-send-email-srinath.mannam@broadcom.com> <1527486084-4636-4-git-send-email-srinath.mannam@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 29, 2019 at 06:07:12PM +0300, David Woodhouse wrote: > On Mon, 2018-05-28 at 11:11 +0530, Srinath Mannam wrote: > > From: Pramod Kumar > > > > This commit adds stingray thermal driver to monitor six > > thermal zones temperature and trips at critical temperature. > > This matches an ACPI "BRCM0500" device but then calls > devm_thermal_zone_of_sensor_register(), which AFAICT is going to fail > on an ACPI system because the first thing that does is call > of_find_node_by_name(NULL, "thermal-zones") which isn't going to find a > match. > Thanks David for bringing this up. I hadn't noticed that this driver is cheekily trying to do thermal management in ACPI using crafty acpi_device_id match. ACPI thermal objects/methods must be used in the firmware to do thermal management. Pramod, can you remove the ACPI support or I can go ahead and post the patch to do the same ? > How does this work in the ACPI case? It can't and shouldn't work if one can make it happen :) -- Regards, Sudeep