From patchwork Sun Oct 22 08:54:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 116627 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3456112qgn; Sun, 22 Oct 2017 01:56:45 -0700 (PDT) X-Received: by 10.84.236.12 with SMTP id q12mr7751908plk.314.1508662605586; Sun, 22 Oct 2017 01:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508662605; cv=none; d=google.com; s=arc-20160816; b=sgVmdl/3Tjui39yPtn0aJUczLOonpRJK7G0iKxUUJMlzk2LDfvNgTK2LR8boQ2PIH6 B8SbYa2U0FL87EB5GD+ts5zJC+VoRzN1EDgKU676P1RAjNxOVZoS01R2pHMKKw2eP/Hq WndBDyjHejLbrPQJHv3M7Jyy0TuAT+QyZBlVhf1uQVkVw8BS1KbU2X31sJQEMix9+TxT g5RPVxlWqzAIY7iw+o81jkgW5RkFK/4aEj2TFxPqIM0J5NJa5FuvdX2zIwt7eVZ1XJxA sJArGJw3w79KZL/EsL2IpgGfR1M8jXuO84ccczNJjz9RRGwvd0ZVyOCymtXod77EVJWn DU3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=3THuphdw0tHpkoLO8GuHZPFDDDZUVp1lwvevuI6GIxM=; b=JrOdW2WS6Rv7gIt2I2/dGO/DgqQryBlUIUydDllcdyPjDLsq9Vu13abJh3J9FNTnWd 8s3SUtcDhmCbeXkq8tMHr2dtR2Mx4NXzg7mcHNh70VhgzFVncl65ZfQk9MVLTNxLfZOl tVxjTnfiSdrAu4Jss9MI8HidNstwiQFP4XIqmuuWrtetZsmAoodARoh4fqBaKIQzPcJO C+o6T2KiokJAcdaP5Kbv5F4S2E7cdTwrc2aA2aDcR2rR4kKfOMjqp8vImFL5mXBGUtq6 diIFxkKz9Q3wnp5dVmS3Y/0ifcoLbjdd5I2qxeMHkobwsSQNw83/4XKuhVVmjDoxYHOw k2Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M/F5I1sr; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 e8si3300002pga.106.2017.10.22.01.56.45; Sun, 22 Oct 2017 01:56:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=M/F5I1sr; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1751383AbdJVI4o (ORCPT + 12 others); Sun, 22 Oct 2017 04:56:44 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:57053 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbdJVI4n (ORCPT ); Sun, 22 Oct 2017 04:56:43 -0400 Received: by mail-wm0-f68.google.com with SMTP id l68so4579433wmd.5 for ; Sun, 22 Oct 2017 01:56:42 -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=3THuphdw0tHpkoLO8GuHZPFDDDZUVp1lwvevuI6GIxM=; b=M/F5I1srqROjgv8WcY30TJ5HsiLj7KYN89Y2fAVZqOaAiTeD8ajBf3iMjxjnxI1Rq5 rcmUsfACm73wdYLy2oNucysBDttrRotlYXPWN1S+dKuXDr0ABH3iHGIlzjFevczZ3Pkh 5i+N3+WnbMdBMwtx7bARlodpz3D9/kXqeo/bc= 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=3THuphdw0tHpkoLO8GuHZPFDDDZUVp1lwvevuI6GIxM=; b=CskLz4GPJPnM5AE1/miSTolYeqNu+RaXxnPIcdcKKWAHhkyAJXYciSf9P5HT1HhCJH 7NaW3ZC+eTwylYE5Qiiom78LrwWFTjRNisXBIp5ueUr63oWmOPCj22n8YWN7wx3ZgqMH f4YQOjl0hBrONrjBOSRJHG8HZx1optzJaiXZV4uQbtdelc93uxrx8eHnIkZLT9pUhSo0 qZh0cbMEjLatjbMyonPTAJO9+bP7OhTsSavHqfcGCgy3ahphcQ1myQ2m42ufYqXMGh+l VGElZyAMoW9ViUqTx3VkAr3FkjCx77M6t9shSw1+W3wc2DHPln3mFwsDkWeJhJGjtZZD TJTw== X-Gm-Message-State: AMCzsaWnfBA6xTVdqcvJVyYJfLQG94i+YCtRRZQHiJyf/Re1V/0eIKlX NS+Njqpnjoic6UtdOnEY6u5EUA== X-Google-Smtp-Source: ABhQp+QpRskO3kPMVKJVNuAhkqG2UZnZ0sVGTJ8epeMOECSdoPNa5vfxmmt3iJqtGYFwab3O/zM37g== X-Received: by 10.28.84.78 with SMTP id p14mr3016060wmi.94.1508662602132; Sun, 22 Oct 2017 01:56:42 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:e9f1:dbdd:7436:9f6d]) by smtp.gmail.com with ESMTPSA id v8sm2701809wrg.80.2017.10.22.01.56.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Oct 2017 01:56:41 -0700 (PDT) From: Daniel Lezcano To: edubezval@gmail.com Cc: daniel.lezcano@linaro.org, rui.zhang@intel.com, kevin.wangtao@linaro.org, leo.yan@linaro.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH V3 0/4] thermal/drivers/hisi: Add hi3660 thermal driver support Date: Sun, 22 Oct 2017 10:54:31 +0200 Message-Id: <1508662475-6763-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This series adds the support for the hikey960 thermal driver. The tsensor is almost the same than the hi6220 but with a memory shared updated by a Cortex-M4. In order to handle both, the hi6220 and the hi3660, the current code should be prefixed with the platform name as we will add functions with the same purpose but slightly different. In addition, the core driver code is maintained untouched by using a set of ops filled at boot time. Changelog: - V3 : - Fixed sparse warning about void const * mismatch assignment - V2 : - Fixed extra carriage return, description length reported by checkpatch - Removed the multi-threshold interrupt - Removed DT bindings documentation and DT change as it is merge in the arm-soc tree now - Tested on hi6220 - V1 : initial post Kevin Wangtao (4): thermal/drivers/hisi: Put platform code together thermal/drivers/hisi: Add platform prefix to function name thermal/drivers/hisi: Prepare to add support for other hisi platforms thermal/drivers/hisi: Add support for hi3660 SoC drivers/thermal/hisi_thermal.c | 452 +++++++++++++++++++++++++++++------------ 1 file changed, 319 insertions(+), 133 deletions(-) -- 2.7.4