From patchwork Tue Sep 19 14:57:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Gerlach X-Patchwork-Id: 9959257 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 A664D6056A for ; Tue, 19 Sep 2017 14:58:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5DE928E61 for ; Tue, 19 Sep 2017 14:58:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9AF6428E6F; Tue, 19 Sep 2017 14:58:14 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 1C16928E61 for ; Tue, 19 Sep 2017 14:58:14 +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: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=piARsFjxLrYYgSws/G7LKifhcI2t3xtuEU1yC4IMzIk=; b=ldUjEGEXvjaKIM REJbbzExB0XIfwpSrZTeCdqH2WVGuvevSDjOVwIqtNqBEir5XMqtbTghBdSZHXT0oZSsyeWMItQM/ maA5RZxzU4tWO2bOLEZbTww8KCOWVtqHVForDf0TuJKd8vZzXU6zR9oNXV8fZoMEwnLhOJT6J/sqx BG+IIXQ8FkYnmHrC2SOOZHp3ki463bcwZy37KcjvelSy+GKBzQv6C1P3RGWbqyk+nEorlq+3ieFE8 RY9L+W/ffls0ISoCyE9aPqyf48IGQzySXUPAN2y8TC1e8m2Xrmf2NCOpQma4GKbc0yJ0DxNKmjaYE KW3HpR9KhHyxS6N/5V9Q==; 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 1duJyT-0000JB-BC; Tue, 19 Sep 2017 14:58:09 +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 1duJyL-0000FD-SW for linux-arm-kernel@lists.infradead.org; Tue, 19 Sep 2017 14:58:07 +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 v8JEvajW025114; Tue, 19 Sep 2017 09:57:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1505833056; bh=AAnWpQESUVxLlnt+h+U6C8W57JNqPy3Gldc0EX5vf1Q=; h=From:To:CC:Subject:Date; b=TNjXW8oOyZviQlKNnSac5m79sTH9+iTOxfgq+CEPagXpKPPqi0QL+mxONLu8OA7GE xXzThLq3p5G+OUp1Wcx2mro1TM5V3YSECL/PJEBtdl8zxZt+yA9NiFMDqEc7DbbTmP S4VNZNQ9YBXC3HiJsYsyRcRgrcPX9AcJditSlSwo= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8JEvakq006801; Tue, 19 Sep 2017 09:57:36 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Tue, 19 Sep 2017 09:57:35 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Tue, 19 Sep 2017 09:57:35 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8JEvZ2D023705; Tue, 19 Sep 2017 09:57:35 -0500 Received: from localhost (uda0274052.dhcp.ti.com [128.247.59.203]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id v8JEvZ301115; Tue, 19 Sep 2017 09:57:35 -0500 (CDT) From: Dave Gerlach To: Viresh Kumar , "Rafael J . Wysocki" Subject: [PATCH] cpufreq: dt-platdev: Add devices covered by ti-cpufreq to blacklist Date: Tue, 19 Sep 2017 09:57:30 -0500 Message-ID: <20170919145730.8981-1-d-gerlach@ti.com> X-Mailer: git-send-email 2.13.4 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170919_075802_027702_9684BBC7 X-CRM114-Status: UNSURE ( 7.99 ) 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: Dave Gerlach , Tony Lindgren , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, 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 Commit edeec420de24 ("cpufreq: dt-platdev: Automatically create cpufreq device with OPP v2") causes a cpufreq-dt platform device to be automatically created for any platform with an OPP v2 node defined. However, ti-cpufreq registers the cpufreq-dt platdev at the end of probe in order to ensure the ti-cpufreq driver probes first and provides the necessary opp-supported-hw for cpufreq-dt. With this new patch now a dupluicate cpufreq-dt is created, which we do not want. To avoid this, add the platforms handled by ti-cpufreq to the blacklist provided in the aforementioned commit to allow ti-cpufreq to continue creating the cpufreq-dt platdev. This applies to am335x, am437x, dra7xx, and am57xx. Fixes: edeec420de24 ("cpufreq: dt-cpufreq: platdev Automatically create device with OPP v2") Signed-off-by: Dave Gerlach --- drivers/cpufreq/cpufreq-dt-platdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index a020da7940d6..c6f554ba9bb3 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -106,6 +106,10 @@ static const struct of_device_id whitelist[] __initconst = { * platforms using "operating-points-v2" property. */ static const struct of_device_id blacklist[] __initconst = { + { .compatible = "ti,am33xx", }, + { .compatible = "ti,am43", }, + { .compatible = "ti,dra7", }, + { } };