From patchwork Thu Feb 28 13:59:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 159369 Delivered-To: patches@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp671263jad; Thu, 28 Feb 2019 05:59:25 -0800 (PST) X-Received: by 2002:ac2:41cb:: with SMTP id d11mr4333797lfi.3.1551362365361; Thu, 28 Feb 2019 05:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551362365; cv=none; d=google.com; s=arc-20160816; b=uy8W1vmNhEO1xRuIBm7XxoR+f09/5aDptga6ItwACCg8iadLRb41corDOhYWPHWDQv nl6RcUPUnqkW3EtPn/lQKqF4zgeos9AtQTRfIpoleB7jEUU8tze9Bo5YH4j4vKy9zLyx dcXLRPJiqv5eI6816bIfIvtVYFVFz/GSdER4AMFM6KJw27rD3vcPx1I+qnXiP8k+0dR1 0rAhnMuDTjysKtcyfIESpVVzco8/KMqscc5gMl32BTWs4LmBs7H868mNgDD59yxoV3cG vOLX9xLMiuRqvUXMkqmU/84pNAsp9h2vVCSOzy3STdmeyBl473/idtriahS4CM1CGszl aFwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=fIxnpfTVRo4NqTG5VV5AlJ5Aa6I4ShK+i0R4B6GW15c=; b=eFiQdo/gMOf7KaTPRZuDO4AAZpWuusBuUzyWqp1lXhbn1ONn18itII+Vx1wxLt4fwj yPpbLDLIMZ692pdjvIaQ3ueYoZRJQRVjOQudpn43b5Sdkvm92qG41Mk0OGIZn0vYESsr toOjllkvy3NDnd/sPBzP3lAN7tpovc0KHrmfk+D7PqXAplpxEEeQRqRYBoDgVs/H2WyM 9ZWb204cHeI1G9iuujZg5zIVTTbmhuCos+0ZcGO7vGzje9ou3L4eCl/lOx2C1Uh0OvFX 8WE/h5Ao9Ct6Pti/QZGJ6VXua6yQrBF5mK62tvoCLuqk24XFAr3VNZgefvJKO8p30LBu 3rww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HFU0EUIk; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h18sor11716053lja.11.2019.02.28.05.59.24 for (Google Transport Security); Thu, 28 Feb 2019 05:59:25 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HFU0EUIk; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=fIxnpfTVRo4NqTG5VV5AlJ5Aa6I4ShK+i0R4B6GW15c=; b=HFU0EUIkFncF3jV5TSFJxzyIka13FnPpFxqA552ehqSZHqj3DSBUnCge5GdAGbFiS3 gUUh+Udg8zGWQUK6lABMAAcCDP1k7bqb83dSr3IeLwM3YmpyIQZSY9AC9rFubfeRraeB GF4x5dSaBDmQ84sRkm6prj+r6F4IwGb+rJgpuM1RBlWLY/0bn4vOX5MNXSzhGd6wCsW/ n4UxM1xVTZUbYC3Rx1Uk1Kk+3AyHMM/vZ5sPDTCmrDgTvCPwX3v6Gpai2+nurBdWyCyM vupSPX7Rbw1lELDiKH58KDGpKFcM5ZvXGYhcO+868DONwakXg4Mk0XAmz9IVwOnpRnSB VAkw== 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=fIxnpfTVRo4NqTG5VV5AlJ5Aa6I4ShK+i0R4B6GW15c=; b=Ap+qa2MD+BXRy0G4N2sMlnI9pZzQFRmrzTqjQpg3WnY8bNI5aoH2mrZ5OS7OPiSklw ho9Dor/Tm8AjrQBpz9kSCyGi4nfjfUtLLa+9kq3yY9k84XCF8X1WzH0KKn4ea6265k9v y7mmNi8jDQcpU/bHD0RxVVuAfhxBTTq+Oq/HG1rHG80Y6x5ILtPmFyrW6n0o6B+4wMon O36ZbF7HU9tMsPmNO7YJ1fyKL2wzIK2qGRd0wcPVLWVSzufqoTXExmNVpksZkXWdiZbj 3rJO4SBvS0/Heu2ron7Xt7o4IA2faDy122GTWj3gQs0a6UPhYWT8g5RLepY+q0sDo3+m i/Mw== X-Gm-Message-State: AHQUAuacqXy5/lmyUvACeRdJw0LGBzkcWNmB8sBjQke2YFlw/6KcaseP XRVKrrIJKcJ0V6Of42bvMP1UKZdK X-Google-Smtp-Source: AHgI3Iba1tmoGWaqmJvAgv0DWF/bI5FNwKcCY5PoKkrjmdfh1AFwNiQtUFDdbdwzrhyunz1qAqhrlQ== X-Received: by 2002:a2e:9f0b:: with SMTP id u11mr5043730ljk.64.1551362364517; Thu, 28 Feb 2019 05:59:24 -0800 (PST) Return-Path: Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id v20sm4090265ljv.83.2019.02.28.05.59.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 05:59:23 -0800 (PST) From: Ulf Hansson To: "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , Mark Rutland Cc: Daniel Lezcano , Lina Iyer , Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] drivers: firmware: psci: Some cleanup and refactoring Date: Thu, 28 Feb 2019 14:59:12 +0100 Message-Id: <20190228135919.3747-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 All of these patches have been sent earlier, but part of a bigger series [1]. Instead of waiting for that series to get reviewed and accepted, I have split it up, such that these trivial independent cleanups can go in as a first step. The only intentional function change, should be the last patch, where we start checking if PSCI OSI mode is supported in the PSCI FW and print a message about it, as that is quite useful information for the user/developer. As there is a ARM/ARM64 "tree wide" change included, it would be nice if this could go in already for v5.1-rc1, to set the foundation for the next cycle. I know it's *really* late for that, but maybe Rafael can help take it via his pm-tree, if all acks are received of course? Kind regards Ulf Hansson [1] https://lkml.org/lkml/2018/11/29/1801 Ulf Hansson (7): drivers: firmware: psci: Move psci to separate directory MAINTAINERS: Update files for PSCI drivers: firmware: psci: Split psci_dt_cpu_init_idle() ARM/ARM64: cpuidle: Let back-end init ops take the driver as input drivers: firmware: psci: Simplify state node parsing drivers: firmware: psci: Simplify error path of psci_dt_init() drivers: firmware: psci: Announce support for OS initiated suspend mode MAINTAINERS | 2 +- arch/arm/include/asm/cpuidle.h | 4 +- arch/arm/kernel/cpuidle.c | 5 +- arch/arm64/include/asm/cpu_ops.h | 4 +- arch/arm64/include/asm/cpuidle.h | 6 +- arch/arm64/kernel/cpuidle.c | 6 +- drivers/cpuidle/cpuidle-arm.c | 2 +- drivers/firmware/Kconfig | 15 +-- drivers/firmware/Makefile | 3 +- drivers/firmware/psci/Kconfig | 13 +++ drivers/firmware/psci/Makefile | 4 + drivers/firmware/{ => psci}/psci.c | 114 ++++++++++++--------- drivers/firmware/{ => psci}/psci_checker.c | 0 drivers/soc/qcom/spm.c | 3 +- include/linux/psci.h | 4 +- include/uapi/linux/psci.h | 5 + 16 files changed, 113 insertions(+), 77 deletions(-) create mode 100644 drivers/firmware/psci/Kconfig create mode 100644 drivers/firmware/psci/Makefile rename drivers/firmware/{ => psci}/psci.c (91%) rename drivers/firmware/{ => psci}/psci_checker.c (100%) -- 2.17.1