From patchwork Thu Aug 5 19:21:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 12422007 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 549C5C432BE for ; Thu, 5 Aug 2021 19:21:20 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 125D060E78 for ; Thu, 5 Aug 2021 19:21:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 125D060E78 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=crapouillou.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 53751887B3; Thu, 5 Aug 2021 19:21:18 +0000 (UTC) Received: from aposti.net (aposti.net [89.234.176.197]) by gabe.freedesktop.org (Postfix) with ESMTPS id CF4ED6EB30 for ; Thu, 5 Aug 2021 19:21:16 +0000 (UTC) From: Paul Cercueil To: Greg Kroah-Hartman , Rob Herring , "Rafael J . Wysocki" , David Airlie , Daniel Vetter , Sam Ravnborg Cc: list@opendingux.net, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org, Paul Cercueil Subject: [PATCH 0/2] gpu/drm: ingenic: Handle disabled drivers Date: Thu, 5 Aug 2021 21:21:07 +0200 Message-Id: <20210805192110.90302-1-paul@crapouillou.net> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, A small patchset to make sure that the ingenic-drm driver won't fail to probe if an optional device (e.g. HDMI chip) has its driver disabled in the kernel config. Since most of the boards using the ingenic-drm driver have a LCD panel attached, the drivers for external devices (be it a HDMI transmitter or a TV encoder) really are optional and shouldn't prevent the DRM driver from probing. Cheers, -Paul Paul Cercueil (2): drivers core: Export driver_deferred_probe_check_state() gpu/drm: ingenic: Add workaround for disabled drivers drivers/base/dd.c | 1 + drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 12 ++++++++++++ 2 files changed, 13 insertions(+)