From patchwork Tue Mar 7 10:22:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Gerlach X-Patchwork-Id: 9608555 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 8A762602B4 for ; Tue, 7 Mar 2017 10:24:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BDE9284D9 for ; Tue, 7 Mar 2017 10:24:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EB0A284E9; Tue, 7 Mar 2017 10:24:08 +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 F3657284D9 for ; Tue, 7 Mar 2017 10:24:07 +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=Ifi7aMrd7OB4Qjp2Fq1+rAGiPAOfop1nGK1qLxcjEI4=; b=EEYL1h8cyBgJ/S gu6vPPPTKja4OacJ/f951swodZD8EY2Fuc34att1jfRTjGc0mGY2jKRwFfJ0aut4OgGGo1NSIK7Ck jF47FKXFp33qaDKodKaUC3tEyQXl4PHmT/VQuk6+iZ1FoWOM7cazaok6IFoWEtXNPlrZS0ecbyCrm BuPOsmreeSquEaHcjp1iyOx7uP5ZjNs2/CMh00k0cJCsCAlUBU0x3eqhJ53yI9V5GICO9wdj0dMQG VYGjE97vEDRC+/K0kEbxLIgRDgKtfYoAM9JBKP3Ky7CBlrNtNfeJkPME1CLHAZaiFw+6KVHP+Q5xY 9sd7zb/uwaC7Ard2C9lg==; 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 1clCHf-0003jd-OW; Tue, 07 Mar 2017 10:23:59 +0000 Received: from lelnx193.ext.ti.com ([198.47.27.77]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1clCHG-0003gW-NE for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2017 10:23:36 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v27AMra8000565; Tue, 7 Mar 2017 04:22:53 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1488882173; bh=GzDvI8RXZIfEmuhlvGwCajjuc3DV6iLVgc4JXo2Xpu4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=kZym1gI7yHfc490DmyUSPjyjPHVI0yL4Yq7jZcGuqhxOW6QMxtHV0WdHE6UOhOdUn npgyNFYw4nfzI+yhkS6tdeMRa1BSDzFqjcLcpF8kuW6psO6S7bmNO3CRhRUZ0kMYrn S2s1OjqOyJ3nxlgndEA0ar0wRNRsi+2GiSbZo/rI= Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v27AMrBK013995; Tue, 7 Mar 2017 04:22:53 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Tue, 7 Mar 2017 04:22:52 -0600 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 v27AMqEC011892; Tue, 7 Mar 2017 04:22:52 -0600 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 v27AMq321041; Tue, 7 Mar 2017 04:22:52 -0600 (CST) From: Dave Gerlach To: Ulf Hansson , "Rafael J. Wysocki" , Kevin Hilman , Santosh Shilimkar , Rob Herring Subject: [PATCH v4 2/5] PM / Domains: Do not check if simple providers have phandle cells Date: Tue, 7 Mar 2017 04:22:31 -0600 Message-ID: <1488882154-21485-3-git-send-email-d-gerlach@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1488882154-21485-1-git-send-email-d-gerlach@ti.com> References: <1488882154-21485-1-git-send-email-d-gerlach@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170307_022334_880978_867B7928 X-CRM114-Status: UNSURE ( 8.60 ) 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 , 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. Signed-off-by: Dave Gerlach Acked-by: Kevin Hilman Acked-by: Ulf Hansson --- v3->v4: Drop ti,sci-id device property and instead describe using phandle cell for id. 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; }