From patchwork Wed Apr 10 08:20:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 10893441 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A5ED917E1 for ; Wed, 10 Apr 2019 08:20:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84A3728A05 for ; Wed, 10 Apr 2019 08:20:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78C6C28A0B; Wed, 10 Apr 2019 08:20:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 20D0E28A0C for ; Wed, 10 Apr 2019 08:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=aB0bvGc8lJOfheeJdVsZ1OAy4qoBE1jxUuLo+mnlEA0=; b=LN4 eJlaIF7zKYGty9q2p4Scr8JfkZk03/Cr+p/z9steSpRgaDiMQ+/c+ZbnmccT/TpxqBEwBrqAQDbYp mjeVFg2tgq5cM8Pf9N5Nr6ZR1kBOSERS0np9UMW5eYQZB/j9QMl0M1sHfV9UF94n5GwlUPUPMAWZZ sib3aIWn2vBHQOBDluyQjERGPvMk4X3wTJEOLa8fyf/Ol+QX4dcGL2RuI7CvqArnftTD5XX0SWd7V YSVLZ5uF0ykMN5qE0LtMi1rmmL6COU6n8LMQmbMrgL89AhGbt2zm8z08pTQ87zdaVzwZZjMTLJKSf g93+9MOqgNdsTrKTAGYus2Mg3vQy7JQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hE8TJ-0008GI-9o; Wed, 10 Apr 2019 08:20:41 +0000 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hE8TG-00086k-Ja for linux-arm-kernel@lists.infradead.org; Wed, 10 Apr 2019 08:20:40 +0000 Received: by mail-lf1-x142.google.com with SMTP id z9so1113597lfh.6 for ; Wed, 10 Apr 2019 01:20:38 -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=/H33UR2lbvV2qXIXD3WcE8LMFe5SakmefXrAMYhEKWI=; b=ggzb/CTEwtPOa+EtvWGn1UyvsYhP3zmyRCmLzifWKfhBrG7ZLkoxFTyA1k1bruzB2q yFPqMMZ9y2ejMENPYsMYts6p3phKjY3QVcPX1/PCwI7FdMF8w9KtlnSjPtdFB14Yppee KrbYq74mFwtqMUImgXqSDwoWYCCWeKfUKkiRqiVb9xp2R5dthxQGH3mNeymy53KfXegr ELA8P9LsUFWS2sp6oqDxidOfLoEtMdBwQ42ccgPTmMphJ9VTtw3fYv0szs1emgzfirAz wOBNO+ZQFBfpMVS/TTZ5B9zQWNaDixPizVLTkp+kGPWLS0n/W3RSPDQxwDmC6PyW3X+4 LWdg== 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=/H33UR2lbvV2qXIXD3WcE8LMFe5SakmefXrAMYhEKWI=; b=fTXP5NPadEesklqHdjOLwujYJB0uLrisXuBnyF3PUKng19DfHDLk3ZLF2GHq4f/82Z iWBvOrO0QGgsS80kDUhZ81G/ZorxML9GehOCaR90h8q63/nsa7/2fMj0BrHLjlOw7OYm ZSgJspuLIc+4GcFEt95/JdLX9gaIrNCKEViu3KPzqNuCqDFPje1/tImppS5H0u3VnViA fvMCDlPWjHlH8A6Y5SYs7CQ2YvLriK2FwxwVvSFqUgsHoOubLASyZGLtsvrkav38A6kI zHwaALD45LLPAmzJB3PqRmSMdGOIdqV74tmD25XVqqDpCIq5CWdgmqjsObwXCDHUian1 Bzvw== X-Gm-Message-State: APjAAAWHFwtOLExVl0ojCKLBw7IWCDQfl5odp/fDiDL/nhIa5ALiR0tN sqOIF6solUPGFwb0Og2NweQ3dQ== X-Google-Smtp-Source: APXvYqxj1Ip2ypHe+hw332XrFBM/4q7jYmi3ORQv5pz/nSCfKTbW1Hx9Wf5eP40FkP2S/yccF99zBA== X-Received: by 2002:a19:c51a:: with SMTP id w26mr21562594lfe.59.1554884436642; Wed, 10 Apr 2019 01:20:36 -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 q6sm3385189lfj.36.2019.04.10.01.20.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2019 01:20:36 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Subject: [RESEND PATCH v2 0/5] drivers: firmware: psci: Some cleanup and refactoring Date: Wed, 10 Apr 2019 10:20:20 +0200 Message-Id: <20190410082025.5989-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190410_012038_656938_ACF78FE5 X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Ulf Hansson , Lorenzo Pieralisi , Daniel Lezcano , Lina Iyer , Sudeep Holla , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Rafael, could you please queue this series via your pm-tree? It has been acked by PSCI aintainers and it's ready to go. There is no dependency, so the changes are standalone. Kind regards Ulf Hansson Changes in v2: - Drop two patches from the series. - Added acks and other tags, no other changes. Background: 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. [1] https://lkml.org/lkml/2018/11/29/1801 Ulf Hansson (5): drivers: firmware: psci: Move psci to separate directory MAINTAINERS: Update files for PSCI drivers: firmware: psci: Split psci_dt_cpu_init_idle() drivers: firmware: psci: Simplify error path of psci_dt_init() drivers: firmware: psci: Announce support for OS initiated suspend mode MAINTAINERS | 2 +- drivers/firmware/Kconfig | 15 +--- drivers/firmware/Makefile | 3 +- drivers/firmware/psci/Kconfig | 13 ++++ drivers/firmware/psci/Makefile | 4 + drivers/firmware/{ => psci}/psci.c | 86 +++++++++++++--------- drivers/firmware/{ => psci}/psci_checker.c | 0 include/uapi/linux/psci.h | 5 ++ 8 files changed, 78 insertions(+), 50 deletions(-) create mode 100644 drivers/firmware/psci/Kconfig create mode 100644 drivers/firmware/psci/Makefile rename drivers/firmware/{ => psci}/psci.c (93%) rename drivers/firmware/{ => psci}/psci_checker.c (100%)