Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4741846pxj; Tue, 25 May 2021 15:31:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXA/GQljdGD6MKKM3iaMSebqB0012up1vLzVNCi/3L8i6vuzpDOWAFLVo03IieZ15CBK5n X-Received: by 2002:a05:6e02:1088:: with SMTP id r8mr26066296ilj.76.1621981870828; Tue, 25 May 2021 15:31:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621981870; cv=none; d=google.com; s=arc-20160816; b=rl9aTCwauyPWDPD5MBcqTAsB8dCJR52ncK4qTh4VdYCTzUbNhAbHIZHd6MqqFIDalt /145CZpMxAEaJJWDWS29FPanDwDAahuNNdl40l0zIdRJ8J43gcyiXEKTrs7m5IRzGtQq JX//Dk0LMbTxSw9jNI3mKfEpR3uP2uq4Tp8AlwwSXucF4Z8el1C31qkgxVEqCVEMKGwE CUg/UfAZ/aC+i7W2oN113vZpNFxttYpqow2mNlICcyWq0Cbhsq8mcltcdYi1J7f1rhUt yri9ebMyov4y9pme+PkJZP+ldLuoVNiO2vCBFB732aD+1svB2s3PyyTI23I6sIpyCMnH Refw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=77q3DZMZPPpB0keslIkWoHumWWxEyqyXlz0Dozp9ftk=; b=OdjNGijwVyyGXeXj3dCQHa1Ws1PNJC98Qp960dH7B28WB54fryiBgaVUtjCZ/BNGbC l+MueXythxQHNuhv9qvy58QGs9vzU9fT+azE8dvuS/2u+3w6L5EFXuhQE2xr6n1GEfhi 05zEMbYmkqvGrW0jH2VBC3W+nDfJPnvXXWR1Xrg0IhJgrZn705nS8+DjZLutVbL8FdzM dnl4fp/FL3s9SS60rdJSYtuzMpJR5Z4pdSSZMzzJo2gC/oAdUA4xehzFHNIkVnn5XqDx C/7tketweZ93Fp+79rzUpBnAE5A9JZw/rjNxnWaGelmGYpaXGhms7x1oI4jVQ5JL3QCL pHlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k14si19053377ilu.10.2021.05.25.15.30.57; Tue, 25 May 2021 15:31:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233387AbhEYUtu (ORCPT + 99 others); Tue, 25 May 2021 16:49:50 -0400 Received: from mga18.intel.com ([134.134.136.126]:9161 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbhEYUtt (ORCPT ); Tue, 25 May 2021 16:49:49 -0400 IronPort-SDR: fw7LG9KOQb6Go4AAIO8v/+qFV5qXRSSr5E7vR9iU8OdyJDUv23mgwqbn7zhDeoviKkR8cQGIbP OS9droRzOxsg== X-IronPort-AV: E=McAfee;i="6200,9189,9995"; a="189676392" X-IronPort-AV: E=Sophos;i="5.82,329,1613462400"; d="scan'208";a="189676392" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2021 13:48:18 -0700 IronPort-SDR: qb089ME/bLHQ8KPl/xV9Cx5jb2qy4u2a0DuaAim2RUjDrwDN4tdCwZIc8oYerlHppxzyXQGREK gQOd44WoZrgg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,329,1613462400"; d="scan'208";a="435842393" Received: from spandruv-desk.jf.intel.com ([10.54.75.21]) by orsmga007.jf.intel.com with ESMTP; 25 May 2021 13:48:18 -0700 From: Srinivas Pandruvada To: daniel.lezcano@linaro.org, rui.zhang@intel.com, amitk@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH 0/2] thermal: int340x: processor_thermal: Add new PCI MMIO based thermal driver Date: Tue, 25 May 2021 13:48:09 -0700 Message-Id: <20210525204811.3793651-1-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds a new thermal driver, which uses PCI MMIO for temperature and trips. To reuse the code the first patch just reorganizes the existing code. This series needs the following patch to cleanly apply: [PATCH 1/2] thermal: int340x: processor_thermal: Export mailbox interface sent on 16th May, 21. Srinivas Pandruvada (2): thermal: int340x: processor_thermal: Split enumeration and processing part thermal: int340x: processor_thermal: Add PCI MMIO based thermal driver .../thermal/intel/int340x_thermal/Makefile | 3 + .../intel/int340x_thermal/int3401_thermal.c | 82 ++++ .../processor_thermal_device.c | 289 ++------------ .../processor_thermal_device.h | 9 +- .../processor_thermal_device_pci.c | 371 ++++++++++++++++++ .../processor_thermal_device_pci_legacy.c | 163 ++++++++ 6 files changed, 658 insertions(+), 259 deletions(-) create mode 100644 drivers/thermal/intel/int340x_thermal/int3401_thermal.c create mode 100644 drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c create mode 100644 drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci_legacy.c -- 2.27.0