From patchwork Wed Aug 31 08:50:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 9306655 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C1D6560756 for ; Wed, 31 Aug 2016 08:55:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7CE828D37 for ; Wed, 31 Aug 2016 08:55:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A23228E08; Wed, 31 Aug 2016 08:55:33 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 2D96328D37 for ; Wed, 31 Aug 2016 08:55:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933767AbcHaIzb (ORCPT ); Wed, 31 Aug 2016 04:55:31 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:34876 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933633AbcHaIxk (ORCPT ); Wed, 31 Aug 2016 04:53:40 -0400 Received: by mail-pa0-f41.google.com with SMTP id hb8so16651041pac.2 for ; Wed, 31 Aug 2016 01:53:39 -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:in-reply-to:references; bh=1COGoXLtn9RE+IkK83eMu8Qp4bNAs4y+sKCt3dj/N04=; b=KMg5Fntqup0t9sbnRlXhOQ/oka4JSGhV0eYRBMQGtB2K/H5dnxtn81hzKYC2kf3w7G HDQXWfTwtRYzIRW+OvjI/JbfAQ3KTd5eW/BZmeGLlOA5M7QK0pstDIbwNVYyI/wChHzv Hu6RRj2nJerhm6qdJJJuhyjJM8c+1RB6M9svQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1COGoXLtn9RE+IkK83eMu8Qp4bNAs4y+sKCt3dj/N04=; b=JPDv49Dh0oriCwCGHR0RXE8USFOzsXGnI0fGkoHwxMUmhcmoH9EdIZOwHKDt9H9mVA CJY3kXE8VinGvzeBg1s+8nIfs/prw8syVYx35FvC7Cwg8p0IjZDlaALinihjwx5WE/2m WGBKjXtuzi5CTbLYRsrx/p+VXZ+qzI43nuKOfNr1AOln+qUiFihV8VVTWRzyEVRw7IGo XRdQpDN3s1FQh2Kok75CKv7mP0hPuSDRoSwzb62AjAsUVtXRIIucP/fcQ06awDD8nmgX uV+1Pmfvwc87LVLIJL3mCrona/Z3iJqwGovExmoGwjEkgt6rF8VOdfqESrCMNAeozylN 91Lw== X-Gm-Message-State: AE9vXwM8yvRPj/vhynbluypG3i/FnLub+4WjbLaPbm0rQhEDlmGbZRbFV3fQ61oJNnyKQG0x X-Received: by 10.66.13.200 with SMTP id j8mr14714971pac.150.1472633619193; Wed, 31 Aug 2016 01:53:39 -0700 (PDT) Received: from localhost.localdomain ([69.46.80.35]) by smtp.gmail.com with ESMTPSA id fj19sm63300449pab.37.2016.08.31.01.53.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Aug 2016 01:53:38 -0700 (PDT) From: Leo Yan To: Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , Zhang Rui , Eduardo Valentin , Arnd Bergmann , Simon Horman , Krzysztof Kozlowski , Thierry Reding , Riku Voipio , Srinivas Kandagatla , Rob Herring , Philipp Zabel Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, Guodong Xu , Amit Kucheria , Leo Yan Subject: [PATCH 2/3] thermal: hisilicon: fix for dependency Date: Wed, 31 Aug 2016 16:50:16 +0800 Message-Id: <1472633417-9330-3-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1472633417-9330-1-git-send-email-leo.yan@linaro.org> References: <1472633417-9330-1-git-send-email-leo.yan@linaro.org> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The thermal driver is standalone driver which is used to enable thermal sensors, so it can be used with any cooling device and should not bind with CPU cooling device driver. This original patch is suggested by Amit Kucheria; so it's to polish the dependency in Kconfig, and remove the dependency with CPU_THERMAL. Signed-off-by: Leo Yan --- drivers/thermal/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 2d702ca..91ebab3 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -177,8 +177,10 @@ config THERMAL_EMULATION config HISI_THERMAL tristate "Hisilicon thermal driver" - depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST + depends on ARCH_HISI || COMPILE_TEST depends on HAS_IOMEM + depends on OF + default y help Enable this to plug hisilicon's thermal sensor driver into the Linux thermal framework. cpufreq is used as the cooling device to throttle