From patchwork Fri Oct 29 12:02:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 516451 Delivered-To: patch@linaro.org Received: by 2002:adf:eccd:0:0:0:0:0 with SMTP id s13csp84593wro; Fri, 29 Oct 2021 05:03:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTNRNw9syZeC5vkYSCrhgHaBr0/aXfbyi1JoQloLmpthSwGeQGVOXICCEUFQ9ffrn/yuqZ X-Received: by 2002:a17:903:41d0:b0:13f:1bbf:1535 with SMTP id u16-20020a17090341d000b0013f1bbf1535mr9387549ple.52.1635508996428; Fri, 29 Oct 2021 05:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635508996; cv=none; d=google.com; s=arc-20160816; b=kjUed1OvhMLXA3BkjAs/o2RCiBKGSI9XWw2d4+QkV/Bj9FgwspuqVY20l2hwHWfDit iWRfpYZVf9PTWbjrZD/aDBUXrhrFcxbrzPS9VTJLkYK4YfbAh+a7pyeWbKPhhlNXOPwS qYT1F5Z+NYUL2OMu1jLckYLxCP7btcW6w3uUv5SDIgmH7RqqOOZZY4yDIJR4O1IBWgoR MSYjhPwms1k5i0ogzTKHP4WRTpTAWSGsFAQp11eqD9EgX/UyTJcy091CVVuYY6+glQ5X fR04LvyFmY9WkocaG5UxmvNvNt2HaxTj5lKzCHNgmLSUFWS2S9HSyWyIst/9/4KASfdm YeBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :delivered-to; bh=IsDaB2cUO0DEYC4uewJYui//5ZhwNKTAuBWVbMubWZM=; b=JUI2xkEeU4kF+HODixOZ5RK3V0IRmVX8Gcfi0UIuSeomwSyggMv58n/NEx7QQOJ3EH OJVznU3BDdDPd1oElE/tcicyjmgY+7VxOnCCxiT8ZghoAkyeEz+5HeVnq3CRxmHAaGVe xIShx2fJyNYX+ev1fQNP8OVbI6eFbUvGcAHZa33F74a9Dx+jgCNnd4JwlFf0wQyrGZvj 63uxYmbOCeTizWsMF4UyMG6b7NZYlNBsTeq+RbNOC7fGprL0luJq3BCsclTyXGi5lENr XyaeA8UxzjtBHqXrSy/hnv2v5CUYevrhFTfYI5it4umKvL24KuY8l+PpmHe3n5ojIwBl KHhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dvQh47Ba; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id o20si6994778pll.57.2021.10.29.05.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 05:03:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dvQh47Ba; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CF6306EA54; Fri, 29 Oct 2021 12:03:13 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id C468E6EA54 for ; Fri, 29 Oct 2021 12:03:12 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 1150E610EA; Fri, 29 Oct 2021 12:03:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635508992; bh=2IyJsR8W6tA2KwPjXHjKViZaH1uY8qqJVOQ80yvHAQc=; h=From:To:Cc:Subject:Date:From; b=dvQh47BaFWFWxweGZR9oJCcL+p3cOgpXRp307Sk6XP8m0IBbZi7r9Yl5fOsmW8rqh oWOGhvZmgo2wd1FNkBzk2XnTLKocaJAzbq/gq0IYTAvOY2dKo/mTC2olFWAtgTeOUa CZdR8tPd7/gdznNhTq+IrWuGY/LxKyF4Ax+yifcaOfc2lHf3BREZIw9GWKW830lj13 SQd5ITBddonm9nwOIUaTsHNBBqrOBZt+kAAjYsm+gyKwqkcs5tdK0xKoh/NJd7FLYY lkXoU4n1ejLlihwprDIALH6f1sTvgSzyvu8vl4W85hx/FIUhW2y2r8AIWozzBbdLgC kl5AlBQh1NllA== From: Arnd Bergmann To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: Arnd Bergmann , "Acked-by : Jani Nikula" , Javier Martinez Canillas , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , Kees Cook , Lukas Bulwahn , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm: fb_helper: improve CONFIG_FB dependency Date: Fri, 29 Oct 2021 14:02:38 +0200 Message-Id: <20211029120307.1407047-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 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" From: Arnd Bergmann My previous patch correctly addressed the possible link failure, but as Jani points out, the dependency is now stricter than it needs to be. Change it again, to allow DRM_FBDEV_EMULATION to be used when DRM_KMS_HELPER and FB are both loadable modules and DRM is linked into the kernel. As a side-effect, the option is now only visible when at least one DRM driver makes use of DRM_KMS_HELPER. This is better, because the option has no effect otherwise. Fixes: 606b102876e3 ("drm: fb_helper: fix CONFIG_FB dependency") Suggested-by: Acked-by: Jani Nikula Reviewed-by: Javier Martinez Canillas Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/Kconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.29.2 diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index c08860db2520..d2e6d8ce5000 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig @@ -117,9 +117,8 @@ config DRM_DEBUG_MODESET_LOCK config DRM_FBDEV_EMULATION bool "Enable legacy fbdev support for your modesetting driver" - depends on DRM - depends on FB=y || FB=DRM - select DRM_KMS_HELPER + depends on DRM_KMS_HELPER + depends on FB=y || FB=DRM_KMS_HELPER select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT