Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp20510pxb; Fri, 29 Oct 2021 05:06:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5MynwpGTJW2TFmbWunZEYRI4pxh6z5BYO3T6FUbqq2ZizKjxNblJ4hTYw7CFAbqL/X+7H X-Received: by 2002:a05:6a00:b48:b0:47c:23e:ecb7 with SMTP id p8-20020a056a000b4800b0047c023eecb7mr10345790pfo.42.1635509215466; Fri, 29 Oct 2021 05:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635509215; cv=none; d=google.com; s=arc-20160816; b=RLNu/kamKYtNqmpSOVLxh5dufxpOq2aIMfN1l3LeJTNiVYsh6vGivahaXJzgaX35og jZMbuAmqr/6+21vwa6HmdZ2eMWkgWLr2FMiYVrp7DngGlkdbU0H/mCQPmnLayZIXEQre lhchmnI/S7Swlnf/OP3zTgnPd8/daF3PFiHNg6ec+3TAZ10JsVXOoMRPdzVwXIGthlWb w0vVaH2z3pXQclbbUTmw9wpwg09LatBEdB1XQ7wCqpdt8Zdk0IZJpoE0+W0SuU68dhr+ wJ+vRoSV2PVG5p0g5zj+witD1xkJrwuzLVEaxW7FyBxCYnz58u/B2qJ1Pl+W2VoRg7qc 5Y0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IsDaB2cUO0DEYC4uewJYui//5ZhwNKTAuBWVbMubWZM=; b=mkzivJYUO2obSUWYkVBWAIwPDdFTuFJ/12xxeBuGBwFtLgYkSHzeXx6Nju+riJAUH+ 1AaXDc1zRmLE/8fw4w7nKJr8g055BLLIUEUCYNkB01n5JkPU9zWgh3EzyTDM99valsXg wgHqCJB70MTLRjozH6pgOCMappiKnW609xolaTbeS5yBEpyfsbrT/putBlfNnq7d8V+i xztavq8bLPtK4/TR/2v0eMDQ9YganNjaALJhwS9Ste0yg5Ro9gGXMeOyqYpZcueosLdS w0AlZLbxZspEP+AiWPSNCec+8A6uv8rtVXSRoXqOGC0D04HoHI7lFl9Yx1rb4dzW7STq LDUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dvQh47Ba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si7490855pgm.281.2021.10.29.05.06.34; Fri, 29 Oct 2021 05:06:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dvQh47Ba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231178AbhJ2MFl (ORCPT + 99 others); Fri, 29 Oct 2021 08:05:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:60168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbhJ2MFl (ORCPT ); Fri, 29 Oct 2021 08:05:41 -0400 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=20K=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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) 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 -- 2.29.2