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: 113021 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp5016742qgf; Tue, 19 Sep 2017 07:58:14 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDDt8e9ujesAst6IZdjovGxtSVDsMF28koMhZUDYC2VIyFZUVYd/AQ53QhvjaT5Dt+Kmp3j X-Received: by 10.99.115.5 with SMTP id o5mr1599040pgc.225.1505833094238; Tue, 19 Sep 2017 07:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505833094; cv=none; d=google.com; s=arc-20160816; b=w3Tz1I0DbFo4ULbRttyUUSy+el1FGsT5r4RF3LrT3sRDGetPQOY7zcBN1S6L3RoW0l KPogxnl8Tx0B9hMBRAxoXiMuQXtHCBovTH1ctO7xSRQZ70bi2+r4fglvVTiizgMXZ8Dq hpk8JRCIfQMFS1HslaaKDignd94hPGhOa7XXB62CucUGk0gmoGYS2QgDe0WZSkCrG0nK sjAQ9PADj/BwAbBi3TOj5S3VtOEAU8TnZgEPMJogAP8D51h96rpYYE37O1cbznaau7PI qvQ2kByI9/2Tex7S56Y+oh/gEfRcBEbV00nr1qoyyT7H9XoN6e5JHFkR7tpLjfkWHOXB ht1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=0CevNBYqFpwz8V2y2ftyeVFnYb23UEHSrx8brpY5JJc=; b=m1qE50UxujUHoToEYv3Wbb9Tg3InDO1fzrJUnNYHfI5H/x8RDNRdXxDEQKyfVGLSwc 75UYtercydXZCowpAq93oTAe5IqyJ8ST4jonxcgUUl2BabAyjjQapnYyYxD7UgPCOi4K P09OArEn4jZUHG9CGPDzMoubQDgayqztehOXDdyHPbqkeYpcPXI4vaj/EK1NU+updr4Q o6jA5M5ACk7BEZmplgRcyXb83cTbHwsYAUKSnDrsDbBvRlcCIVPRSK5DHELj+Gz+mm7d IVRR8Ycbdn8Y1+uOkCFBHiYe0ecAL+oafJ+gzuAP5re9/SGdZ+DvXB3qQnIorbBqhMK3 opnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TNjXW8oO; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p13si6736347pll.96.2017.09.19.07.58.13; Tue, 19 Sep 2017 07:58:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TNjXW8oO; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751024AbdISO6M (ORCPT + 12 others); Tue, 19 Sep 2017 10:58:12 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:18973 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750862AbdISO6L (ORCPT ); Tue, 19 Sep 2017 10:58:11 -0400 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" CC: , , , , Tony Lindgren , Dave Gerlach 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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(+) -- 2.13.4 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", }, + { } };