From patchwork Tue Apr 4 02:47:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Gerlach X-Patchwork-Id: 9660765 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9B904602B7 for ; Tue, 4 Apr 2017 02:48:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9423E2832B for ; Tue, 4 Apr 2017 02:48:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8897B28304; Tue, 4 Apr 2017 02:48:53 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 4515528304 for ; Tue, 4 Apr 2017 02:48:53 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=FJqiZIUcPPYbSYi09GuKQPG6EOcMOc6RStGuhQZDWhw=; b=VkW35dGKS7Ya4M EDxwIQzA/uOzlls7VhMVrpLqFOGWM8eLuZMkzp5dIfnIEJUJfqljU2maIHGASCY9pa6SUw5/zDc0t mJ3H7ddTIOCIexLfU9/jLV1KGisoOGRVHhMF3JN1wZdruuKANMzNUpNx64mhPiDj2u9FR9uwX7R+8 FOB5u3bQWd8UUZje1Pmc1AkII2/DIs1A1L6edaQpAcYhFeNPRi+vZKWyLUdM5ClUZqGG71Ovst6ay 7YuxeQBYznWgZ61ciEyz5kWYoFZG+9fEWtzFMQjcDMO2RUAigYwrbOkwMjjPyJpApuy0sXaQyTG9U SbO0ZPxQkf0GoTVEO43g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cvEWZ-0005Md-ON; Tue, 04 Apr 2017 02:48:51 +0000 Received: from fllnx210.ext.ti.com ([198.47.19.17]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cvEWM-00059z-Bb for linux-arm-kernel@lists.infradead.org; Tue, 04 Apr 2017 02:48:40 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v342lpOO009208; Mon, 3 Apr 2017 21:47:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1491274071; bh=9znyGiBb6gNxFdHJla8x0L5nnf5MzR0XFoNP7AM32zQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PbWYdpm4EYM3FSinlnbH9i6prM2FjUjBuZgT/l49UJtdO8nCIEmE6MFglR+alim9t Mf4SEjhbXUp5r7fwV+SRfgjZJLGwu/vclpziT34y4Z7WzwOoQtrn5Z63an/kIPJZ/j dVwl4kSfSX8QId9jE9HgFNv5GMPSZk94FjvXDKRs= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v342lpPI007611; Mon, 3 Apr 2017 21:47:51 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Mon, 3 Apr 2017 21:47:50 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v342ln7c014498; Mon, 3 Apr 2017 21:47:49 -0500 Received: from localhost (uda0274052.am.dhcp.ti.com [128.247.83.19]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id v342ln316141; Mon, 3 Apr 2017 21:47:49 -0500 (CDT) From: Dave Gerlach To: Ulf Hansson , "Rafael J . Wysocki" , Kevin Hilman , Santosh Shilimkar , Rob Herring , Arnd Bergmann Subject: [PATCH v5 2/5] PM / Domains: Do not check if simple providers have phandle cells Date: Mon, 3 Apr 2017 21:47:29 -0500 Message-ID: <20170404024732.32699-3-d-gerlach@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170404024732.32699-1-d-gerlach@ti.com> References: <20170404024732.32699-1-d-gerlach@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170403_194838_532758_699B352B X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. 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: Nishanth Menon , devicetree@vger.kernel.org, Dave Gerlach , Keerthy , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Tero Kristo , Russell King , Sudeep Holla , Olof Johansson , linux-arm-kernel@lists.infradead.org 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 There is no reason that a platform genpd driver registered using of_genpd_add_provider_simple needs to be constrained to having no cells in the "power-domains" phandle. Currently the genpd framework will fail if any arguments are passed with for a simple provider but the framework does not actually care, so remove the check for phandle argument count. This will allow greater flexibility for genpd providers to use their own arguments that are passed in the phandle and interpret them however they see fit. Acked-by: Kevin Hilman Acked-by: Ulf Hansson Signed-off-by: Dave Gerlach --- drivers/base/power/domain.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index e697dec9d25b..8e0550c27394 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1622,8 +1622,6 @@ static struct generic_pm_domain *genpd_xlate_simple( struct of_phandle_args *genpdspec, void *data) { - if (genpdspec->args_count != 0) - return ERR_PTR(-EINVAL); return data; }