From patchwork Fri Oct 20 15:11:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 116507 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1799832qgn; Fri, 20 Oct 2017 08:13:17 -0700 (PDT) X-Received: by 10.84.143.162 with SMTP id 31mr4378021plz.254.1508512397245; Fri, 20 Oct 2017 08:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508512397; cv=none; d=google.com; s=arc-20160816; b=EfeV3wXgLTgEkIPmIo+gC4m+fG3oOkr1VgbAUmK94N81WmQG+toLRZT7sUYGFeZM02 zlSQCyey8zXTz6IGZRTaEC8JpM9u0aab89ATivw/ELJDvg7obfqGS5GkCnGb65VZIySX cy+hyyARCU5umrtbxPNRH02FVTke3uy95R1qLWM9ezK0C1gAT2f69PGjxRYxx3zSy2Lu QXxz2ipd8nxzmw4Nz5URaTFY+DHwRyH9ez23qsKQJ33byYG3edycMwn/i5Jo0bkc03/L Gmy6e46bmDaH46ysbdUxydHeJCqhGxwViKsh7GgPGYRSyZ+NbSqfYNjm2YKT94eOT+Ia BWaQ== 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=IuwsfI/bgzUDE6M2EPzrrUqhWwqKUdXX6sXZ3lcUupg=; b=wqZqFXZ+g3zCAjTrrcTos9JYCbVwoKxdUAzuEwA2xfI5AiBOR5JflXZ9XGd0MX22oH 7wiPYej0+x5zInrKnllBxT93yIEJz358erY6GhcocSmtL0pWWRfMT8m8rCZj75UkGPpd IvtyBn5U6yD2Ho4q+A6MoMt1VdqrUg9Tt62os2JZxiuoYZkaziyAJ9q3dccRrzUnIXjx 7y1+7HqpU4idq6hPjR1jB5hdlLTkzh5iE/updJ3LfrKc3YjKuwlMfSOuemezot6OAGy1 Ts85aQRjP53oUZib3S/ddMiNBrv3bBLDXDBz1NOkSC3j8zS3xaRCQ1MP94l3jS3dIWE+ Pg2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fug8Ww9m; 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 x5si904494pfx.187.2017.10.20.08.13.16; Fri, 20 Oct 2017 08:13:17 -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=fug8Ww9m; 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 S1752259AbdJTPNO (ORCPT + 27 others); Fri, 20 Oct 2017 11:13:14 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:46643 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751843AbdJTPNN (ORCPT ); Fri, 20 Oct 2017 11:13:13 -0400 Received: by mail-wm0-f67.google.com with SMTP id m72so22651116wmc.1 for ; Fri, 20 Oct 2017 08:13:12 -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=IuwsfI/bgzUDE6M2EPzrrUqhWwqKUdXX6sXZ3lcUupg=; b=fug8Ww9mZxbzAqpAsvdmaIdFvnNqnoWYpaIy50JXW71xwaz1QFuO2fserjW9MxlV+R 2nSqERoiw+/xAjvPwtvcH7ddEXoxMinUYGJEBMPVuETtcY6kXrQIunkbd+GIJbAe/q3D 8J7FvbehGgpU2WwQzZWIdWCK9qPj8XSX158Rs= 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=IuwsfI/bgzUDE6M2EPzrrUqhWwqKUdXX6sXZ3lcUupg=; b=TSde8m6K0nIo26HV2JOixeoK6RNYjzCTPxZhWAtKKyqr5nzlwg0QUWPmXOhO66KfR+ HD9rMfkpRgVfK+hmrDEYMB3VAOp5ctNbR+yYui6xvgLWV8fQc7xDo3rNH/dtRHg//uvK Te25iZKv+o4xdHLdRUYCHl9Ykpx+knqfR5Zoxrwfbr8k7SG8VAZy1byMSZbryern7q80 yySkwZNOV0YDecwpWSUCIWZMG+r9rHUH0DV1FoPsgmMXkWDNn50FIWgqVQS3KNwQww0R 0TfvZ9hBN0+rfavb7SP8aqy/cjrN0KwdnLeDOzRzQlj2zZSvOZohmfhgsc9CSYvtvnbK Jz+g== X-Gm-Message-State: AMCzsaX4QHObwGd4QpRBneZSXpJDgLdqOnnnh3xwr9INSTbyVfo9qcX6 qP9aiYQdr14+/UAQOn7Rd8Ba5A== X-Google-Smtp-Source: ABhQp+RjbJeuNX+R8PuDm+TZx1wmfzebhi2ymelwiucSSrxOMP47xvZ7QMIDlUye6E1mrfaY6UtjSg== X-Received: by 10.28.10.145 with SMTP id 139mr2044024wmk.5.1508512391757; Fri, 20 Oct 2017 08:13:11 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:3dc8:5a4d:8d23:3c7c]) by smtp.gmail.com with ESMTPSA id 4sm1249416wmm.1.2017.10.20.08.13.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Oct 2017 08:13:10 -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 V2 0/4] thermal/drivers/hisi: Add hi3660 thermal driver support Date: Fri, 20 Oct 2017 17:11:03 +0200 Message-Id: <1508512267-18302-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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: - 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