Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1035223imm; Wed, 20 Jun 2018 10:27:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIdR03xacqx0LqnmtG7S23wvOdbaj0aVBHhaGTsJiXEs/WMoy4O3h39fDS0TEDvdbb1CPpV X-Received: by 2002:a17:902:2c83:: with SMTP id n3-v6mr24494330plb.211.1529515672354; Wed, 20 Jun 2018 10:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529515672; cv=none; d=google.com; s=arc-20160816; b=LUcCmloB6g9Kznmak3YH0GFYWhJQmXFtvgffcEPxTCCAUUW37eD+hiDTieXLRR6e0H rAlsqdUBiIyy69xzeoqV6Ohbm8oduDdX79RZBDZL5VvQ5XrIl8zUJjHAC+rIl9D1X9u/ YYActxuAXZ7qeMhSjEIZZYTE90Tl34oUZ5LW1+icTkn3EnlFa+SwU5vp4vcUx99mmNGE flbcaHTIJfSLFrBs8rLjVAa8nf9ASn/ZmEGbBAj75M0LaivivXPFvyHD2Wifrad9c4iR 7MaxRxirCbC5GFEWQLTN8lOTWiioaBHPTKDAhtwZkFpfEfyOmiX3GLuxKyGxrq9t+Uz5 iE9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=24N1Dc3/4aVSfatj0cCLPTM9sDMCdxo5zYgoCR5YTHc=; b=j0Arnb1897kz3IggUnOmO6Pfn3IecPNoA14YLIegT4KyrFEWHgZRX7V3QgejqLmecE D5pzXIDaqe1Zu+MCOvJ5eNBpWvHxF9rcZe9YpTioHi3RW2/kQvnY4r2fnvIP1PDolxyl smyjD/z+OhlBAhLEPeqWdSXla9BOdDXXboSlWS1svkjOBs6iC4ufn5rTK5WL1f+1AK2T Yx9zL5IdjPH78s+JrMtQuChWQIORFzA+NZfq+ZOsUXDstd63LtschdbSi2hhkXF2kdGE lmdXt70FdlZ8ilzTBu3sNeEDDx1zBGMEoP0heEKAz13x/S5//C7w+2jhB4Jh8y8bhs5f 3gxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J+KVAB9a; 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 w13-v6si2779573plp.51.2018.06.20.10.27.38; Wed, 20 Jun 2018 10:27:52 -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=J+KVAB9a; 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 S932872AbeFTR00 (ORCPT + 99 others); Wed, 20 Jun 2018 13:26:26 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:45850 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932383AbeFTRXA (ORCPT ); Wed, 20 Jun 2018 13:23:00 -0400 Received: by mail-lf0-f68.google.com with SMTP id a13-v6so443153lfk.12 for ; Wed, 20 Jun 2018 10:22:59 -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=24N1Dc3/4aVSfatj0cCLPTM9sDMCdxo5zYgoCR5YTHc=; b=J+KVAB9aTvpKYALS4Wr+p8D1kMK7oRy9jJrRhoI+y086Fdf81Z8+HqPtV1GeeYQCev KBJmQpmVoALyf7MJJsszcCcX9bDGTcZhH8yNCkG5/lMXAHjHIwdCTEX+qxQfzfQVsAwh 71D19Qu7OO+blVZjgHCqMdR+Jvl2sdvOR79ks= 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:in-reply-to :references; bh=24N1Dc3/4aVSfatj0cCLPTM9sDMCdxo5zYgoCR5YTHc=; b=Uy/QsV78zEVyXlZxWq95jMj0aj4WRZxuxfaq60/9MhFa4dFi1QoWNKkKn5ymhUmZ1q YaqgMzch98qaiXV89Wux5YphBNLA+maXmwzDWr53kXU0t66ntW6BZydX4/3YRV2ICqrs FJ/A2NbsZJw8MDvrAVFr/iR4lAkE5j2wb12BAd35jLP9M3HXI0UE6zdAdrlobCdrtMYT f/+ZXzEVvkUvq4Uh1vxqyiofq5YOo+JdHnwdzwK/GHa/DZ5Bcg7YmS13MAqsgKpOPZm4 myjE7TZ0sY6MIxG5xFar0gGe/VXKPbXJO9pRWUG/koBeGBp23kzWZ9+qkheauDup1UC0 9t6w== X-Gm-Message-State: APt69E3FFasBiXVTmCv71qSLM3MHK9XEV1qR9nnm4Nm+njjiLaLAV7QJ oFcZvdWrc7me97yTXr7PxBieSw== X-Received: by 2002:a2e:8350:: with SMTP id l16-v6mr14437649ljh.7.1529515378526; Wed, 20 Jun 2018 10:22:58 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id b2-v6sm514441lji.85.2018.06.20.10.22.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jun 2018 10:22:57 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , Mark Rutland , linux-pm@vger.kernel.org Cc: Kevin Hilman , Lina Iyer , Lina Iyer , Ulf Hansson , Rob Herring , Daniel Lezcano , Thomas Gleixner , Vincent Guittot , Stephen Boyd , Juri Lelli , Geert Uytterhoeven , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 13/26] drivers: firmware: psci: Move psci to separate directory Date: Wed, 20 Jun 2018 19:22:13 +0200 Message-Id: <20180620172226.15012-14-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180620172226.15012-1-ulf.hansson@linaro.org> References: <20180620172226.15012-1-ulf.hansson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some following changes extends the PSCI driver with some additional new files. Let's avoid to continue cluttering the toplevel firmware directory and first move the PSCI files into a PSCI sub-directory. Suggested-by: Mark Rutland Signed-off-by: Ulf Hansson --- drivers/firmware/Kconfig | 15 +-------------- drivers/firmware/Makefile | 3 +-- drivers/firmware/psci/Kconfig | 13 +++++++++++++ drivers/firmware/psci/Makefile | 4 ++++ drivers/firmware/{ => psci}/psci.c | 0 drivers/firmware/{ => psci}/psci_checker.c | 0 6 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 drivers/firmware/psci/Kconfig create mode 100644 drivers/firmware/psci/Makefile rename drivers/firmware/{ => psci}/psci.c (100%) rename drivers/firmware/{ => psci}/psci_checker.c (100%) diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig index 6e83880046d7..923c42d5a2e6 100644 --- a/drivers/firmware/Kconfig +++ b/drivers/firmware/Kconfig @@ -5,20 +5,6 @@ menu "Firmware Drivers" -config ARM_PSCI_FW - bool - -config ARM_PSCI_CHECKER - bool "ARM PSCI checker" - depends on ARM_PSCI_FW && HOTPLUG_CPU && CPU_IDLE && !TORTURE_TEST - help - Run the PSCI checker during startup. This checks that hotplug and - suspend operations work correctly when using PSCI. - - The torture tests may interfere with the PSCI checker by turning CPUs - on and off through hotplug, so for now torture tests and PSCI checker - are mutually exclusive. - config ARM_SCMI_PROTOCOL bool "ARM System Control and Management Interface (SCMI) Message Protocol" depends on ARM || ARM64 || COMPILE_TEST @@ -286,6 +272,7 @@ config TI_SCI_PROTOCOL config HAVE_ARM_SMCCC bool +source "drivers/firmware/psci/Kconfig" source "drivers/firmware/broadcom/Kconfig" source "drivers/firmware/google/Kconfig" source "drivers/firmware/efi/Kconfig" diff --git a/drivers/firmware/Makefile b/drivers/firmware/Makefile index e18a041cfc53..ea284e551dc8 100644 --- a/drivers/firmware/Makefile +++ b/drivers/firmware/Makefile @@ -2,8 +2,6 @@ # # Makefile for the linux kernel. # -obj-$(CONFIG_ARM_PSCI_FW) += psci.o -obj-$(CONFIG_ARM_PSCI_CHECKER) += psci_checker.o obj-$(CONFIG_ARM_SCPI_PROTOCOL) += arm_scpi.o obj-$(CONFIG_ARM_SCPI_POWER_DOMAIN) += scpi_pm_domain.o obj-$(CONFIG_ARM_SDE_INTERFACE) += arm_sdei.o @@ -26,6 +24,7 @@ CFLAGS_qcom_scm-32.o :=$(call as-instr,.arch armv7-a\n.arch_extension sec,-DREQU obj-$(CONFIG_TI_SCI_PROTOCOL) += ti_sci.o obj-$(CONFIG_ARM_SCMI_PROTOCOL) += arm_scmi/ +obj-y += psci/ obj-y += broadcom/ obj-y += meson/ obj-$(CONFIG_GOOGLE_FIRMWARE) += google/ diff --git a/drivers/firmware/psci/Kconfig b/drivers/firmware/psci/Kconfig new file mode 100644 index 000000000000..26a3b32bf7ab --- /dev/null +++ b/drivers/firmware/psci/Kconfig @@ -0,0 +1,13 @@ +config ARM_PSCI_FW + bool + +config ARM_PSCI_CHECKER + bool "ARM PSCI checker" + depends on ARM_PSCI_FW && HOTPLUG_CPU && CPU_IDLE && !TORTURE_TEST + help + Run the PSCI checker during startup. This checks that hotplug and + suspend operations work correctly when using PSCI. + + The torture tests may interfere with the PSCI checker by turning CPUs + on and off through hotplug, so for now torture tests and PSCI checker + are mutually exclusive. diff --git a/drivers/firmware/psci/Makefile b/drivers/firmware/psci/Makefile new file mode 100644 index 000000000000..1956b882470f --- /dev/null +++ b/drivers/firmware/psci/Makefile @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 +# +obj-$(CONFIG_ARM_PSCI_FW) += psci.o +obj-$(CONFIG_ARM_PSCI_CHECKER) += psci_checker.o diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci/psci.c similarity index 100% rename from drivers/firmware/psci.c rename to drivers/firmware/psci/psci.c diff --git a/drivers/firmware/psci_checker.c b/drivers/firmware/psci/psci_checker.c similarity index 100% rename from drivers/firmware/psci_checker.c rename to drivers/firmware/psci/psci_checker.c -- 2.17.1