From patchwork Mon Dec 9 14:42:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 181043 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4439948ile; Mon, 9 Dec 2019 06:42:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxLR8+ryMj9iXn4fkBOyybq0SFKhfzjUbw11OzNKIR7LQmgI+CXhsfbPkALN4EtU1ibpHvA X-Received: by 2002:a54:460c:: with SMTP id p12mr5059594oip.18.1575902561309; Mon, 09 Dec 2019 06:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575902561; cv=none; d=google.com; s=arc-20160816; b=eC+BFnWdYzpQSth1pXAaiHcUseho0d85wHYpjvimbkHObQZQclGk1wDp9DPz/b+VS7 abd8tCajEXWHFn8aoJe39JTT06nvzq0/RXYI0fcOq1nliVpbBl7OFAewq01xi0N0aSq9 LgO77lciTRdPFxEZ3Jqu9cyXQodPN+gWs+DF7NI0IkmAcTefqGLoiisUYRzkFhjN/sUd I2qaZqXqglIhtcJm+cEdvQjVM6NQpsT6bzJX52mM/zqZZeeUst8fBbRdaTZTikjw6uLI wPsgnsL+79sIepH8yelIOVz8prJtiSP0265pt20qQW+0KMA2M+brMs1KkhY4YfZfewpW Mfpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=B9OLsy3glNyhloOu8PeWPNPqAtRcQ04jS9dbdJ3Yb+g=; b=LDuJdxgVrICO+iQBTPe4ahjk+8FUNjHummlFRzXqRf45n5vDVw9lD4oRqgBqhuKpV4 mqAbbxUcS3MlLfbnSh59z6oob5TJeqSG/5SO8SMMboK6H3+eHG9HSqDm+n2hhRvTbSco Ali0u2uV63H3t63IidmxDVN01mb5Z75IwTwzkySPfChWsRxR5UCfVut60nsqysnx+aPs YDzfFpjm8AmFlJNkcjDDivEa0F2qQ2C91sAP+ETc0PdkvwPeuqV6zRSyLCETTpge7QO1 oqHgfu36O+A/YaicG7RdiKMz2AKM5jVqdT0g5o15SA6ann5OB7fMZVcriZmnfKkaDpIF X5AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=zTG6Zyk8; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 w7si954664otk.88.2019.12.09.06.42.41; Mon, 09 Dec 2019 06:42:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=zTG6Zyk8; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1727855AbfLIOmk (ORCPT + 4 others); Mon, 9 Dec 2019 09:42:40 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:40374 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727845AbfLIOmj (ORCPT ); Mon, 9 Dec 2019 09:42:39 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xB9EgRD8015017; Mon, 9 Dec 2019 08:42:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1575902547; bh=B9OLsy3glNyhloOu8PeWPNPqAtRcQ04jS9dbdJ3Yb+g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=zTG6Zyk8kar0i15rq+dZVU0JJrO8rjoBMcVX/0sto2Cf+guoH3DSMcHJqOydV5kfF 93YaKS+KK+iBUOEOoYfFjRHh5PddshJFZZkaJAODTFR3fEB1iWC0ppEYj2ogFvfvmr ZJLNKnRVysveD9PBFDjfL1CVx7fxHqtGxSr2ytF4= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xB9EgRRG099057; Mon, 9 Dec 2019 08:42:27 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 9 Dec 2019 08:42:27 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Mon, 9 Dec 2019 08:42:27 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xB9EgGvh122297; Mon, 9 Dec 2019 08:42:24 -0600 From: Jyri Sarha To: , , , , , CC: , , , Subject: [PATCH v2 3/3] drm/tilcdc: panel: Add WARN() with a comment to tilcdc-panel probe Date: Mon, 9 Dec 2019 16:42:16 +0200 Message-ID: <54966ffd61ca46528bc55961c532001aa7463c30.1575901747.git.jsarha@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add WARN() to the beginnig of tilcdc-panel probe. The obsolete tilcdc-panel driver should not be used anymore, since tilcdc is fully capable of using generic drm panels like panel-simple and panel-common binding. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 10 ++++++++++ 1 file changed, 10 insertions(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.c b/drivers/gpu/drm/tilcdc/tilcdc_panel.c index 5584e656b857..cf8e2462a524 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_panel.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c @@ -309,6 +309,16 @@ static int panel_probe(struct platform_device *pdev) struct pinctrl *pinctrl; int ret; + /* + * The obsolete tilcdc-panel driver should not be used + * anymore, since tilcdc is fully capable of using generic drm + * panels like panel-simple and panel-common binding. + */ + + WARN(true, + "tilcdc-panel is obsolte and should not be used. Please update your configuration!\n", + dev_name(&pdev->dev)); + /* bail out early if no DT data: */ if (!node) { dev_err(&pdev->dev, "device-tree data is missing\n");