From patchwork Sat Sep 1 14:08:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 10584803 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5B9CC5A4 for ; Sat, 1 Sep 2018 14:17:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 641012A3E5 for ; Sat, 1 Sep 2018 14:17:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56ADB2A3FC; Sat, 1 Sep 2018 14:17:11 +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=-2.1 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 D40432A3E5 for ; Sat, 1 Sep 2018 14:17:10 +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:To:MIME-Version:Subject:From:References :In-Reply-To:Message-Id:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ji8KsSO0ELzMI9cOe0gpc9re4BmluaAvt93uIaWecd0=; b=MycvC64NgBCg3V wF8lmiaGKysBgMdBkfl2OFpLS6wkDkpL/Mlf2BM8K9+jzIkRLlis0EioziHTurTkVzN8xWavTMAJx evkW3a/HvqsyPTdVKozzlHAm1t2exu0at0IkyH2w5XUd79iPW3aj91GULPlR9fCyd1sbseeQK3mni U3nQJ18a4mhXm3vtRg1RDDbs0bRBI042oqrRslpkpUI9zNSvOhC7+dXLAqNE4tp2kt7j7VRfTRiye 0KbaZ0HvnSJXGVE/GK7C6P6D6cVqNvf3R/olNuFYuTWMzLHZ78uf9/AxN9lYmz3NXsxBi5h/SGtkY dQG+l4xRu4sa4BiBKyHQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fw6hu-0006aP-No; Sat, 01 Sep 2018 14:16:58 +0000 Received: from rere.qmqm.pl ([91.227.64.183]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fw6aL-0000hK-A3 for linux-arm-kernel@lists.infradead.org; Sat, 01 Sep 2018 14:09:14 +0000 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 422dNt0Zc2zsB; Sat, 1 Sep 2018 16:08:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1535810894; bh=MxtO5Mhr0GkPH8MUP06AqtRLFfui2zInQhDye32pDvw=; h=Date:In-Reply-To:References:From:Subject:To:Cc:Cc:From; b=Yhp3Tp6EQXbfc0dSesPwSojrVm80yMMtxs0yG9v81ZFXoECCQhjbYEutwfk37OEE9 Zet9Ziqg0TJeO5X2+ajB80EWwLXhxD1nu2NYsN6z/OILiw2qhTC6AGOEuav28rVXU8 q0oNRyS/p9MbVgi9idGghRffSk82id74eV60wuXkFeAZBeSflB0+8kBJjKaSMPgEoK rEIAU9d6BEJaSHVd5XxemeqtTWfbMJwsxT/0ER4fFeByqOByBi8zIP/8IoU6d6xenE /DVF+znYsb5WTNwak+vA8CkyVdrPFl/OiTw9T38mp/b2NQ/YnrUXCe5bG5OGDiV7f+ oJb79Vy2E0crA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.100.0 at mail Date: Sat, 01 Sep 2018 16:08:51 +0200 Message-Id: In-Reply-To: References: From: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= Subject: [PATCH v3 13/13] drm/tegra: kick out simplefb MIME-Version: 1.0 To: dri-devel@lists.freedesktop.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180901_070909_785546_D1041378 X-CRM114-Status: UNSURE ( 8.24 ) 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: linux-fbdev@vger.kernel.org, Bartlomiej Zolnierkiewicz , David Airlie , Eric Anholt , amd-gfx@lists.freedesktop.org, Jonathan Hunter , Alex Deucher , Thierry Reding , Gerd Hoffmann , linux-tegra@vger.kernel.org, Dave Airlie , Maxime Ripard , virtualization@lists.linux-foundation.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 Kick out firmware fb when loading Tegra driver. Signed-off-by: Michał Mirosław Acked-by: Daniel Vetter --- drivers/gpu/drm/tegra/drm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 7afe2f635f74..b51ec138fed2 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -1203,6 +1203,10 @@ static int host1x_drm_probe(struct host1x_device *dev) dev_set_drvdata(&dev->dev, drm); + err = drm_fb_helper_remove_conflicting_framebuffers(NULL, "tegradrmfb", false); + if (err < 0) + goto unref; + err = drm_dev_register(drm, 0); if (err < 0) goto unref;