From patchwork Mon Jul 3 23:05:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 115515 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp861396vqx; Mon, 3 Jul 2023 16:58:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlEz9uDoPGxUbsd0r6thAHEfpD2bN2EIdHmEImiEIF/lxb8nCX5IiGaUX9LQHTm5JemQVpIp X-Received: by 2002:a17:902:720c:b0:1ae:3ff8:7fa7 with SMTP id ba12-20020a170902720c00b001ae3ff87fa7mr12263253plb.4.1688428707089; Mon, 03 Jul 2023 16:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688428707; cv=none; d=google.com; s=arc-20160816; b=FjM3PrBE8d9AK4yJMm19kjKZ0RBXMA4oTnYOeiTJ88WcFrrCtmoZnzyZNCnc/I6eRG kXt4IEZTvghGx5Ppvh6fPt1p5v3NHtNcoF8EkqlWsPDMs7u/Z5EVqQUB/nJT32xlnRV7 z7/rb5fpBayFNrkxe26AabTrbntV0G+QZrcOSRZmmIb/4UHLiCVDPzhaORvzZ6rFEbN2 dc9/2u3VHhnJWQggBpeQn7wapoxAq9nRfSI4S/xWoGgWQAx6p7ysDGLyua81yIJ2BC+Q +RKd4RV5DQSE8zdhl9CWBEYcLaEJ+DK2zB900wWBOPDJhFDHeQ+2KsNPr3AG97E2UFSf nAjg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PPkOUuxZ5llhFetMPklJdNaHUXTC+DjeRtC4vPngfEk=; fh=crLTCNTuu1ZoVn5VJfN7ZkajGyhPbc8TNyPvDhKPw6o=; b=PUFmUjN23mtIgS1qqwoUbTkjudbrmZHZJCQyNhtZQWtfz/Bn5sm7I3/g/9rSmSM+ub MfDo6cBVC79JOdcmhpiiW9eBqzuZSE21etuGc+WYipeYTlOxhgEvxtYtth5V/unAtrlH PHQ9WdzJzCvFFgcZJ1wEQVsUwUp3YG6GexYjoxaQjjVQkEdUwIa1v5HFIPOE6c4pdFhB 4r3lbm58UR1RryP9e+kZBZtiUWAm+AU0T3jrEi795yJxY2Psg6udvc4TlAH/Wm7zBFv4 +rpMLTNmtKY/IKWzk011oinECly4qRGu1VNC32ax9Kw7My8B848GnCFFTDKNf/ZbdewX vVfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fibYtvyQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a170903028300b001b80ecdcb88si16238456plr.473.2023.07.03.16.58.13; Mon, 03 Jul 2023 16:58:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fibYtvyQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230294AbjGCXGd (ORCPT + 99 others); Mon, 3 Jul 2023 19:06:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230273AbjGCXGb (ORCPT ); Mon, 3 Jul 2023 19:06:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AEB6E6E for ; Mon, 3 Jul 2023 16:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688425544; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PPkOUuxZ5llhFetMPklJdNaHUXTC+DjeRtC4vPngfEk=; b=fibYtvyQhuBNPrqUUcKVV7MLilskapsiIzz4A1B6yZLJ4oYCruyWdf4gOmkdjuGXRkiZoZ tfMwaRO5lO16QnxV+8axLHJaEsTBda/rgRjjzBAsv2J4usAtayEySl7yNqp5TO4FYSWKa0 fljidcHLJwAX0nC7P80IbDo47atnJV0= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-28-DDpYmeOyOfa3TfcvDCv7Pg-1; Mon, 03 Jul 2023 19:05:44 -0400 X-MC-Unique: DDpYmeOyOfa3TfcvDCv7Pg-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-3fa9a282fffso28518385e9.1 for ; Mon, 03 Jul 2023 16:05:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688425542; x=1691017542; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PPkOUuxZ5llhFetMPklJdNaHUXTC+DjeRtC4vPngfEk=; b=cw/nF9xkFxRt1tnkeA7v+DE/MuTlb3x3rCcidG90kmGZHORHOu1c4oaVXZg5gMdKYb Y1jb9vh8zSQs08dEvV7GGOyvcmdhoTF5QyX6kvJEAx9BA1jLtLZ0/ak3z7CV4Ac//7Qy cu1vXXRzPj8whc7wTBvEeEgekd2wNQVsb2MklFX9XICatDJmLN4gWnGrH84iOXLDcuHy /P4lw5EUppGvKom6hcRAc4lcP5+omBrTeSmxu2DDFMMLmR9KqMKLA1h/RTHCMJWZBrKM pKUPXsFr5S57BnYmx1DrhSGM29MWMlW2iswvB1wCz+pV5pIU9rcykSQv5cN+Pv1sPVoT CPfQ== X-Gm-Message-State: ABy/qLYVPUyKNhc1ASiPAvgw1/Ybch74fPM/6V/oyN4mDyY7yFAnWS9w XffvGzET5eNL+k2PTditmkmaPndJc04zVez9jLRzOi7xamre7cZAzUHy+CrQEq9z8Brvklc8bgr xEFsT/ivVgOKvHGsZvX+fmkHfUXMJPow8p/v9T1Sw6iiPnvLkMRSr5Ut65SY6up46/imjdQut3b Sc3etTLjs= X-Received: by 2002:a5d:4f83:0:b0:314:182a:3d96 with SMTP id d3-20020a5d4f83000000b00314182a3d96mr9283430wru.28.1688425542719; Mon, 03 Jul 2023 16:05:42 -0700 (PDT) X-Received: by 2002:a5d:4f83:0:b0:314:182a:3d96 with SMTP id d3-20020a5d4f83000000b00314182a3d96mr9283411wru.28.1688425542423; Mon, 03 Jul 2023 16:05:42 -0700 (PDT) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id cw13-20020a056000090d00b003112f836d4esm26504465wrb.85.2023.07.03.16.05.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 16:05:42 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven , Thomas Zimmermann , Arnd Bergmann , Javier Martinez Canillas , Greg Kroah-Hartman , Helge Deller , Jacek Lawrynowicz , Nipun Gupta , Oded Gabbay , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: [PATCH v4 1/5] video: Add auxiliary display drivers to Graphics support menu Date: Tue, 4 Jul 2023 01:05:25 +0200 Message-ID: <20230703230534.997525-2-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230703230534.997525-1-javierm@redhat.com> References: <20230703230534.997525-1-javierm@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770445820012760922?= X-GMAIL-MSGID: =?utf-8?q?1770445820012760922?= The drivers in this subsystem are for character-based LCD displays, which can fall into the same category of the DRM/KMS and fbdev drivers that are located under the "Graphics support" menu. Add auxdisplay there as well. Suggested-by: Thomas Zimmermann Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/Kconfig | 2 -- drivers/video/Kconfig | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/Kconfig b/drivers/Kconfig index 514ae6b24cb2..496ca02ee18f 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -129,8 +129,6 @@ source "drivers/dma-buf/Kconfig" source "drivers/dca/Kconfig" -source "drivers/auxdisplay/Kconfig" - source "drivers/uio/Kconfig" source "drivers/vfio/Kconfig" diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 8b2b9ac37c3d..acf02863ac7d 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -30,6 +30,8 @@ if HAS_IOMEM config HAVE_FB_ATMEL bool +source "drivers/auxdisplay/Kconfig" + source "drivers/char/agp/Kconfig" source "drivers/gpu/vga/Kconfig" From patchwork Mon Jul 3 23:05:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 115518 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp868329vqx; Mon, 3 Jul 2023 17:12:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlFK3fRWhnBb3IrHKnophSrwcMNVJUZg72NmDF9lhgO8wK5XCDAHEs0fDURu0AXG4EVxq84k X-Received: by 2002:a05:6a00:1249:b0:66f:3fc5:6167 with SMTP id u9-20020a056a00124900b0066f3fc56167mr14570013pfi.1.1688429554082; Mon, 03 Jul 2023 17:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688429554; cv=none; d=google.com; s=arc-20160816; b=AOBUJhq0edL8UqLXRGYAr1j0td0yudC3v5/Esn9Rhd7b3R+AZHXn15GgozGMtX1e0+ vOjquKrz7tas8Cz89wHgaSLXh9vJnlspnPV9vqmlQF/PAPav3K5VagH/plEV9EYxGDyp KiL7GiAB9Qw6lZm3mN6Pamr4Y2HYf84XikDAtGdpxL5KGsBsIRLdd1MeLREynGYFzu++ SOafuFiGF/ZRUCk7LSXkhiXdVgjhUr9vsMOM1Vp0uSeAp1wd0d5Jm4oDPledXWIVn3HG 8UDTIKz2lS+w0Tt2jVkIeBJOvcq52i913Qjok82nCqxHloxc3kQ4OYo9Ox+/in9jcOcx 8AHQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ytjztKBchoEvkVL0L2ZNLjWuHPbCVbw9mTADb8BljqM=; fh=yVQnLqWPlmWIQv49mpUKfPuavZgFHICbjZAlsWK3r1s=; b=aJSOlTVkzsY/+VJKhrEPwHfwKCAelA2NDPNrTKRXggggZNiWedWkx/dl8tatwJzqOE tAqszx2m2cPQs4ELXSGjx6/riaTbhIf9V9tfsVVxmdZEjmuaoGSe+vVsdE6rHOk+8LLs X41zbfLRJ7cnmmNntc2jft2KpbeR/n3cwFxJHUw27S0ilbY66K1xs7lnu+IZ5Kuu1kta gBj9GVmUMg87BQyn5boUc2TOIsGktBNFiTQzotNDoaOj84ClR6fK5PElswwLYUivjgBd hmEFyv9kUnVNPMXgal0d8H2bN+a4csdgzRa/rBRT0JbWH8Mo9uk286oyVu/xp8m3Z26l kOEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iyVbExEM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020a63e512000000b0054fe4cdd1a7si19138111pgh.716.2023.07.03.17.12.21; Mon, 03 Jul 2023 17:12:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iyVbExEM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230299AbjGCXGi (ORCPT + 99 others); Mon, 3 Jul 2023 19:06:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbjGCXGe (ORCPT ); Mon, 3 Jul 2023 19:06:34 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1D91E6D for ; Mon, 3 Jul 2023 16:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688425546; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ytjztKBchoEvkVL0L2ZNLjWuHPbCVbw9mTADb8BljqM=; b=iyVbExEM/Ig8+OI6/DjEsn92J0UflPkClLvYQQya1WWUayIHv2d5nsog+QFXuI5VgFIP3g jF5+2814X86yC/By2+/bWbczg57p3ZHKI3V6qHwqXK+Mw9yeK8jj+6TSxLxmDisGERmRYE qaSKsMhxtFso8FLSxHdqiADEnIqA4lE= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-447-TBFi6Dg1P4iwMRlenfUFmA-1; Mon, 03 Jul 2023 19:05:45 -0400 X-MC-Unique: TBFi6Dg1P4iwMRlenfUFmA-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-314256aedcbso1691217f8f.0 for ; Mon, 03 Jul 2023 16:05:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688425544; x=1691017544; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ytjztKBchoEvkVL0L2ZNLjWuHPbCVbw9mTADb8BljqM=; b=kgh8PmFx3Vzdo3ZBwBtGi22TfgJA09xJptdhzbXqToUzJ+tSFh2rJ0S+WWy8JuKd/s +af+W6d3IEqH/adRo7rQgfUVBu/DWM0KsZO6N1mjp3x5QlspkI2Ct0tsERYVEM3P2hBR 0HcA5ZBFT7GILOSzo63Zwccta7elFEWit3/Hz2OoAV7m7L1S5Ugd8aLuLBpBXYaj3RZW wpAek05K8sAYzK5HIlw3+FyAUTeLCVxi5XGrisHEdlRDyiSzbRpENWWYztKldwt1Ekwm AV/EDKbGSQ57fYolnrXn4IkmYe+ptPe8iZ5C/cdgSA5dvlukcRvN2aLQGptZXyAlTSIM ae5g== X-Gm-Message-State: ABy/qLZW42o/HFsabe8dxoxtMnTM+hKlAz7rmbe4evbwYBCN7+DMKxWz 1mNnJnCdxC4kGrsEFxs/EcIwioD6b4eEqnTyQJUhmSzK+BNEWyD6zMGnk46tL4otpLsMaX7pfJM ZNfOXslXNxCyrxa4/OxAOcPFh4yz/VPDCIIFlEM/oNwtOSNnXRfRnrYHcgtls57r3wDNMjs25rb V5EMpMsY0= X-Received: by 2002:a5d:554d:0:b0:314:824:3777 with SMTP id g13-20020a5d554d000000b0031408243777mr8906999wrw.48.1688425544156; Mon, 03 Jul 2023 16:05:44 -0700 (PDT) X-Received: by 2002:a5d:554d:0:b0:314:824:3777 with SMTP id g13-20020a5d554d000000b0031408243777mr8906981wrw.48.1688425543753; Mon, 03 Jul 2023 16:05:43 -0700 (PDT) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id cw13-20020a056000090d00b003112f836d4esm26504465wrb.85.2023.07.03.16.05.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 16:05:43 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven , Thomas Zimmermann , Arnd Bergmann , Javier Martinez Canillas , Andy Shevchenko , Daniel Vetter , Helge Deller , Randy Dunlap , Sam Ravnborg , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: [PATCH v4 2/5] fbdev: Move core fbdev symbols to a separate Kconfig file Date: Tue, 4 Jul 2023 01:05:26 +0200 Message-ID: <20230703230534.997525-3-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230703230534.997525-1-javierm@redhat.com> References: <20230703230534.997525-1-javierm@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770446708087629871?= X-GMAIL-MSGID: =?utf-8?q?1770446708087629871?= The drivers/video/fbdev/Kconfig defines both symbols for fbdev drivers and core fbdev symbols, that can be enabled independently of the fbdev drivers. Split the Kconfig in two, one that only has the symbols for fbdev drivers and another one that contains the fbdev core symbols. Suggested-by: Arnd Bergmann Signed-off-by: Javier Martinez Canillas --- (no changes since v1) drivers/video/fbdev/Kconfig | 203 +------------------------------ drivers/video/fbdev/core/Kconfig | 202 ++++++++++++++++++++++++++++++ 2 files changed, 204 insertions(+), 201 deletions(-) create mode 100644 drivers/video/fbdev/core/Kconfig diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index cecf15418632..06199f044546 100644 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -3,9 +3,6 @@ # fbdev configuration # -config FB_NOTIFY - bool - menuconfig FB tristate "Support for frame buffer devices" select FB_NOTIFY @@ -42,204 +39,6 @@ menuconfig FB (e.g. an accelerated X server) and that are not frame buffer device-aware may cause unexpected results. If unsure, say N. -config FIRMWARE_EDID - bool "Enable firmware EDID" - depends on FB - help - This enables access to the EDID transferred from the firmware. - On the i386, this is from the Video BIOS. Enable this if DDC/I2C - transfers do not work for your driver and if you are using - nvidiafb, i810fb or savagefb. - - In general, choosing Y for this option is safe. If you - experience extremely long delays while booting before you get - something on your display, try setting this to N. Matrox cards in - combination with certain motherboards and monitors are known to - suffer from this problem. - -config FB_DEVICE - bool "Provide legacy /dev/fb* device" - depends on FB - default y - help - Say Y here if you want the legacy /dev/fb* device file and - interfaces within sysfs anc procfs. It is only required if you - have userspace programs that depend on fbdev for graphics output. - This does not affect the framebuffer console. If unsure, say N. - -config FB_DDC - tristate - depends on FB - select I2C_ALGOBIT - select I2C - -config FB_CFB_FILLRECT - tristate - depends on FB - help - Include the cfb_fillrect function for generic software rectangle - filling. This is used by drivers that don't provide their own - (accelerated) version. - -config FB_CFB_COPYAREA - tristate - depends on FB - help - Include the cfb_copyarea function for generic software area copying. - This is used by drivers that don't provide their own (accelerated) - version. - -config FB_CFB_IMAGEBLIT - tristate - depends on FB - help - Include the cfb_imageblit function for generic software image - blitting. This is used by drivers that don't provide their own - (accelerated) version. - -config FB_CFB_REV_PIXELS_IN_BYTE - bool - depends on FB - help - Allow generic frame-buffer functions to work on displays with 1, 2 - and 4 bits per pixel depths which has opposite order of pixels in - byte order to bytes in long order. - -config FB_SYS_FILLRECT - tristate - depends on FB - help - Include the sys_fillrect function for generic software rectangle - filling. This is used by drivers that don't provide their own - (accelerated) version and the framebuffer is in system RAM. - -config FB_SYS_COPYAREA - tristate - depends on FB - help - Include the sys_copyarea function for generic software area copying. - This is used by drivers that don't provide their own (accelerated) - version and the framebuffer is in system RAM. - -config FB_SYS_IMAGEBLIT - tristate - depends on FB - help - Include the sys_imageblit function for generic software image - blitting. This is used by drivers that don't provide their own - (accelerated) version and the framebuffer is in system RAM. - -config FB_PROVIDE_GET_FB_UNMAPPED_AREA - bool - depends on FB - help - Allow generic frame-buffer to provide get_fb_unmapped_area - function to provide shareable character device support on nommu. - -menuconfig FB_FOREIGN_ENDIAN - bool "Framebuffer foreign endianness support" - depends on FB - help - This menu will let you enable support for the framebuffers with - non-native endianness (e.g. Little-Endian framebuffer on a - Big-Endian machine). Most probably you don't have such hardware, - so it's safe to say "n" here. - -choice - prompt "Choice endianness support" - depends on FB_FOREIGN_ENDIAN - -config FB_BOTH_ENDIAN - bool "Support for Big- and Little-Endian framebuffers" - -config FB_BIG_ENDIAN - bool "Support for Big-Endian framebuffers only" - -config FB_LITTLE_ENDIAN - bool "Support for Little-Endian framebuffers only" - -endchoice - -config FB_SYS_FOPS - tristate - depends on FB - -config FB_DEFERRED_IO - bool - depends on FB - -config FB_IO_HELPERS - bool - depends on FB - select FB_CFB_COPYAREA - select FB_CFB_FILLRECT - select FB_CFB_IMAGEBLIT - -config FB_SYS_HELPERS - bool - depends on FB - select FB_SYS_COPYAREA - select FB_SYS_FILLRECT - select FB_SYS_FOPS - select FB_SYS_IMAGEBLIT - -config FB_SYS_HELPERS_DEFERRED - bool - depends on FB - select FB_DEFERRED_IO - select FB_SYS_HELPERS - -config FB_HECUBA - tristate - depends on FB - depends on FB_DEFERRED_IO - -config FB_SVGALIB - tristate - depends on FB - help - Common utility functions useful to fbdev drivers of VGA-based - cards. - -config FB_MACMODES - tristate - depends on FB - -config FB_BACKLIGHT - tristate - depends on FB - select BACKLIGHT_CLASS_DEVICE - -config FB_MODE_HELPERS - bool "Enable Video Mode Handling Helpers" - depends on FB - help - This enables functions for handling video modes using the - Generalized Timing Formula and the EDID parser. A few drivers rely - on this feature such as the radeonfb, rivafb, and the i810fb. If - your driver does not take advantage of this feature, choosing Y will - just increase the kernel size by about 5K. - -config FB_TILEBLITTING - bool "Enable Tile Blitting Support" - depends on FB - help - This enables tile blitting. Tile blitting is a drawing technique - where the screen is divided into rectangular sections (tiles), whereas - the standard blitting divides the screen into pixels. Because the - default drawing element is a tile, drawing functions will be passed - parameters in terms of number of tiles instead of number of pixels. - For example, to draw a single character, instead of using bitmaps, - an index to an array of bitmaps will be used. To clear or move a - rectangular section of a screen, the rectangle will be described in - terms of number of tiles in the x- and y-axis. - - This is particularly important to one driver, matroxfb. If - unsure, say N. - -comment "Frame buffer hardware drivers" - depends on FB - config FB_GRVGA tristate "Aeroflex Gaisler framebuffer support" depends on FB && SPARC @@ -2244,3 +2043,5 @@ config FB_SM712 source "drivers/video/fbdev/omap/Kconfig" source "drivers/video/fbdev/omap2/Kconfig" source "drivers/video/fbdev/mmp/Kconfig" + +source "drivers/video/fbdev/core/Kconfig" diff --git a/drivers/video/fbdev/core/Kconfig b/drivers/video/fbdev/core/Kconfig new file mode 100644 index 000000000000..8e308d12c57b --- /dev/null +++ b/drivers/video/fbdev/core/Kconfig @@ -0,0 +1,202 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# fbdev core configuration +# + +config FB_NOTIFY + bool + +config FIRMWARE_EDID + bool "Enable firmware EDID" + depends on FB + help + This enables access to the EDID transferred from the firmware. + On the i386, this is from the Video BIOS. Enable this if DDC/I2C + transfers do not work for your driver and if you are using + nvidiafb, i810fb or savagefb. + + In general, choosing Y for this option is safe. If you + experience extremely long delays while booting before you get + something on your display, try setting this to N. Matrox cards in + combination with certain motherboards and monitors are known to + suffer from this problem. + +config FB_DEVICE + bool "Provide legacy /dev/fb* device" + depends on FB + default y + help + Say Y here if you want the legacy /dev/fb* device file and + interfaces within sysfs anc procfs. It is only required if you + have userspace programs that depend on fbdev for graphics output. + This does not affect the framebuffer console. If unsure, say N. + +config FB_DDC + tristate + depends on FB + select I2C_ALGOBIT + select I2C + +config FB_CFB_FILLRECT + tristate + depends on FB + help + Include the cfb_fillrect function for generic software rectangle + filling. This is used by drivers that don't provide their own + (accelerated) version. + +config FB_CFB_COPYAREA + tristate + depends on FB + help + Include the cfb_copyarea function for generic software area copying. + This is used by drivers that don't provide their own (accelerated) + version. + +config FB_CFB_IMAGEBLIT + tristate + depends on FB + help + Include the cfb_imageblit function for generic software image + blitting. This is used by drivers that don't provide their own + (accelerated) version. + +config FB_CFB_REV_PIXELS_IN_BYTE + bool + depends on FB + help + Allow generic frame-buffer functions to work on displays with 1, 2 + and 4 bits per pixel depths which has opposite order of pixels in + byte order to bytes in long order. + +config FB_SYS_FILLRECT + tristate + depends on FB + help + Include the sys_fillrect function for generic software rectangle + filling. This is used by drivers that don't provide their own + (accelerated) version and the framebuffer is in system RAM. + +config FB_SYS_COPYAREA + tristate + depends on FB + help + Include the sys_copyarea function for generic software area copying. + This is used by drivers that don't provide their own (accelerated) + version and the framebuffer is in system RAM. + +config FB_SYS_IMAGEBLIT + tristate + depends on FB + help + Include the sys_imageblit function for generic software image + blitting. This is used by drivers that don't provide their own + (accelerated) version and the framebuffer is in system RAM. + +config FB_PROVIDE_GET_FB_UNMAPPED_AREA + bool + depends on FB + help + Allow generic frame-buffer to provide get_fb_unmapped_area + function to provide shareable character device support on nommu. + +menuconfig FB_FOREIGN_ENDIAN + bool "Framebuffer foreign endianness support" + depends on FB + help + This menu will let you enable support for the framebuffers with + non-native endianness (e.g. Little-Endian framebuffer on a + Big-Endian machine). Most probably you don't have such hardware, + so it's safe to say "n" here. + +choice + prompt "Choice endianness support" + depends on FB_FOREIGN_ENDIAN + +config FB_BOTH_ENDIAN + bool "Support for Big- and Little-Endian framebuffers" + +config FB_BIG_ENDIAN + bool "Support for Big-Endian framebuffers only" + +config FB_LITTLE_ENDIAN + bool "Support for Little-Endian framebuffers only" + +endchoice + +config FB_SYS_FOPS + tristate + depends on FB + +config FB_DEFERRED_IO + bool + depends on FB + +config FB_IO_HELPERS + bool + depends on FB + select FB_CFB_COPYAREA + select FB_CFB_FILLRECT + select FB_CFB_IMAGEBLIT + +config FB_SYS_HELPERS + bool + depends on FB + select FB_SYS_COPYAREA + select FB_SYS_FILLRECT + select FB_SYS_FOPS + select FB_SYS_IMAGEBLIT + +config FB_SYS_HELPERS_DEFERRED + bool + depends on FB + select FB_DEFERRED_IO + select FB_SYS_HELPERS + +config FB_HECUBA + tristate + depends on FB + depends on FB_DEFERRED_IO + +config FB_SVGALIB + tristate + depends on FB + help + Common utility functions useful to fbdev drivers of VGA-based + cards. + +config FB_MACMODES + tristate + depends on FB + +config FB_BACKLIGHT + tristate + depends on FB + select BACKLIGHT_CLASS_DEVICE + +config FB_MODE_HELPERS + bool "Enable Video Mode Handling Helpers" + depends on FB + help + This enables functions for handling video modes using the + Generalized Timing Formula and the EDID parser. A few drivers rely + on this feature such as the radeonfb, rivafb, and the i810fb. If + your driver does not take advantage of this feature, choosing Y will + just increase the kernel size by about 5K. + +config FB_TILEBLITTING + bool "Enable Tile Blitting Support" + depends on FB + help + This enables tile blitting. Tile blitting is a drawing technique + where the screen is divided into rectangular sections (tiles), whereas + the standard blitting divides the screen into pixels. Because the + default drawing element is a tile, drawing functions will be passed + parameters in terms of number of tiles instead of number of pixels. + For example, to draw a single character, instead of using bitmaps, + an index to an array of bitmaps will be used. To clear or move a + rectangular section of a screen, the rectangle will be described in + terms of number of tiles in the x- and y-axis. + + This is particularly important to one driver, matroxfb. If + unsure, say N. From patchwork Mon Jul 3 23:05:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 115512 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp848156vqx; Mon, 3 Jul 2023 16:21:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ44eu/0U8TmfczxPp4xP+5qu4rxA4dlQ//DmwU6idyJFXiZQn3aRuhB/TC5nqs7av4prV4T X-Received: by 2002:a05:6a21:3389:b0:123:3ec2:360d with SMTP id yy9-20020a056a21338900b001233ec2360dmr17812801pzb.5.1688426494324; Mon, 03 Jul 2023 16:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688426494; cv=none; d=google.com; s=arc-20160816; b=ofINxqQqA6Hzvf6MLs6Cc2jfV4LTQJp9GBoi9rtB9BDH53CtQpWqx6uaPOpYCuGjEx /Awnqd+HpOfmj0O7oD7KxpIvVUfGZQz6sdPn1TzBVgdielSKhfy3t/Sk6dkF59/WOaQu 13VpYhYVYAwGJ5lT+Cfv+Yx3q7i8uFeTQfeqkyYQG99jjbPwwga4zVErcGmeRaT02s0R A5Fsr5C6qHnIGfp6hFxwfohFtfHGnbAHXwqIN8o3CFiO6Ce6c+QB9Aofnl2ggaOI/6Nf 8gyhAybKAwyqoJFTHWiHTuDyuxQwFV2xx+tMvCH22Bn6tnHiw1wc5ZkmOpCIORRn1nEA fXKQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TKwSmrhTaDUuj6nOeH5v86nAPSbYWAm2divbLmIUh94=; fh=wRUketpS4wBXUMgSmc8Q7BxWJM+HZKLHyaP4b92Es38=; b=EGlPpzsB101j1jOV/BVaDuNQCkZayF/DaRQ40aRRn6jwO29RMHT7tY+030DTm1l789 k0cVHQT0Cre1S9tB5wI3x3pI6uFFvzpBi+uxa6dOeJ/XkBk8VSA3I7yahjVJoWAK4CV3 fbJ6SFGURY3yYp3Nm3iRcWvD+gjYYBcF38InfUxjbf9WnhA9SwO1DBzjdFBmv7vg1rzG jHPxslePJ1+BW7oqAa7pScl8WrT7o3RPbbg4EYRKlaoLslk9VvqSoBdlgo3rY+ns7mTC oScyERTQ4AFHnc55AF2C5PGuk9Jim6Q0q9UqqZUWKVuA6QPvtVzvtaIVW3SpNnqPr3Pr Wkug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="gPVa/zqR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a27-20020a056a001d1b00b006824bcb19b5si9394439pfx.4.2023.07.03.16.21.22; Mon, 03 Jul 2023 16:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="gPVa/zqR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231218AbjGCXKC (ORCPT + 99 others); Mon, 3 Jul 2023 19:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230464AbjGCXKA (ORCPT ); Mon, 3 Jul 2023 19:10:00 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EAD4BB for ; Mon, 3 Jul 2023 16:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688425754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TKwSmrhTaDUuj6nOeH5v86nAPSbYWAm2divbLmIUh94=; b=gPVa/zqRPtGomRZdzkzuRbPY0eBZzaj5eOFidF7dqiYFBHf/eStkA5U4DQY1Eq5ac4M7te JbvNEV+Vs6g71Ju/NuMBn6nLQU0M7N2dPa+U3wcvxdOssccFtV5ntwwajLk+w832aQtdZD aOnqWhIiNMpfDBRKCai1+uwRIDt2bRA= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-156-S3u021cQNiaIRk1EPIyitQ-1; Mon, 03 Jul 2023 19:05:48 -0400 X-MC-Unique: S3u021cQNiaIRk1EPIyitQ-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3141a98a29aso2124851f8f.1 for ; Mon, 03 Jul 2023 16:05:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688425546; x=1691017546; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TKwSmrhTaDUuj6nOeH5v86nAPSbYWAm2divbLmIUh94=; b=K6O6mGsC1VaYTrE/YNmUUbYpGj8JWlc9SPBlbclb2qpfScXPD+27/uwTTsnnyAEhgk elpUxkiQm3qp4tgtjPghaU5xirUQ0Xrcwktre1xTdMo2TWOthXD3Bik/yNRz/wpPg6hB bJvsywpvGncU5Iw0czk4oSLK0MUceRIQz40hLED7UQtzZ9EK+e5TMsBj8NAfStTyKbAC 2k4xUMXIL3WbzAiVWUdsB1JELrJendN+SJIeysLWz1ovMCPoO4fps+YadR8/g8ZRU48q 7xI86BTDAF+PYWuDf0+/AliFmQDxsHOX57zHzwvi+dMt+wxTUjbFhz4jHS1k8BISA4TE VVTg== X-Gm-Message-State: ABy/qLb5Wmyv7FlYTI0xAE5+zb3DnlkdgZUiSNE00Y+ePIul0MZoFoTi r51g0OpmpQtbDG1CEpMnzx72JEE6KfaOyu/CNplfFk9Yy27T/VwZi/vcp9G5N+rx+hUMCY8rdHp vqAFrfQySbt7dtJLfs3DsaYR71feOjnFDJ6QxbgAJg8pWqM/zWWOb1RVZ0YjJ5o3y1+u1LS4ooK RlDPc5AyQ= X-Received: by 2002:adf:f8c8:0:b0:314:23e:c8fc with SMTP id f8-20020adff8c8000000b00314023ec8fcmr9734654wrq.33.1688425545237; Mon, 03 Jul 2023 16:05:45 -0700 (PDT) X-Received: by 2002:adf:f8c8:0:b0:314:23e:c8fc with SMTP id f8-20020adff8c8000000b00314023ec8fcmr9734638wrq.33.1688425545007; Mon, 03 Jul 2023 16:05:45 -0700 (PDT) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id cw13-20020a056000090d00b003112f836d4esm26504465wrb.85.2023.07.03.16.05.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 16:05:44 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven , Thomas Zimmermann , Arnd Bergmann , Javier Martinez Canillas , Daniel Vetter , David Airlie , Liviu Dudau , dri-devel@lists.freedesktop.org Subject: [PATCH v4 3/5] drm/arm: Make ARM devices menu depend on DRM Date: Tue, 4 Jul 2023 01:05:27 +0200 Message-ID: <20230703230534.997525-4-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230703230534.997525-1-javierm@redhat.com> References: <20230703230534.997525-1-javierm@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770443499381192013?= X-GMAIL-MSGID: =?utf-8?q?1770443499381192013?= Otherwise if CONFIG_DRM is disabled, menuconfig will show an empty menu. Signed-off-by: Javier Martinez Canillas Acked-by: Liviu Dudau --- (no changes since v1) drivers/gpu/drm/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/arm/Kconfig b/drivers/gpu/drm/arm/Kconfig index c1b89274d2a4..ddf20708370f 100644 --- a/drivers/gpu/drm/arm/Kconfig +++ b/drivers/gpu/drm/arm/Kconfig @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 menu "ARM devices" + depends on DRM config DRM_HDLCD tristate "ARM HDLCD" From patchwork Mon Jul 3 23:05:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 115519 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp868341vqx; Mon, 3 Jul 2023 17:12:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5wVS34G+pVaaxkZcWYa54gUjle3tHOZ7k7mAwvMua8GGMqbuwKCu9oWay+IZjOa2EtT8At X-Received: by 2002:a05:6a21:3391:b0:125:5f1d:9dbe with SMTP id yy17-20020a056a21339100b001255f1d9dbemr17378568pzb.2.1688429556156; Mon, 03 Jul 2023 17:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688429556; cv=none; d=google.com; s=arc-20160816; b=pai5G7RyTPaqcxxv5y/Qzqwu8Ys4wvgvoDDrmQxXgLGFAMqZ3OxJwEGg/F1qnfvdD/ h42E64ZpncGLajTQLxSMcMUOln39FHMpCrP6qIkxsB6ZoAujROWwtrHL0Zk5cfjEBLsw GiWBE5dcnZQdMm5aqdufpmmJjOlKfOWZn7sX/tNcTH4XMwnmFmhPUo/fGX5nZiX/3aFn cauoTULqtEJ9Pp3qelj/SWYTcxUz7FFyMYKDcWT78/dykzZGRDVFEXjl0eF84EkCKQZy mATpu9vEPP525oQcBYb7oHz5hvUlp+7QyPOg+BYpcFosrA/lM4I6sLZHfkEd3yhEhQzb 3V5g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uLDMtsQ7x8sK8Yp4yXeZqors8D/LGiL+rTQqlGxqvwY=; fh=LY2S9bPv9LIL3tcSQ+P0U6oU01GYOF5KDQiok7xHlnA=; b=ZxuVPHh+G/xaSoiypXQs6UwIy2Anqmson8vThBN6Xcuou410iBtbI4OMaim+rYSbBK 9jyqTqa1ALq7g99dQT4CzisSpLu4v3YHTxOjKM2rIIkNzRfuGhhOlm5CtAQNyFNUqWUL HMXHvA11aLf8+fe70seOLCfC5euYvc8UlAfLtiW2Py10EymrH0mfAQbJoSIRefSAHPV4 srWtRHE9mFYY1D1YBt9Aoa8DuRRaNNSBiFsWDYJqa7+RjALjIyffhLl6erdcwCGRZp1h X72OvR44iPTqX8XHBQEr/WLOAnbJORsUGMjuDhjSAVCHN55by36gCpwQR3PNSjE0rBBS tScw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CvnrYvAq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u62-20020a638541000000b0054ff0049d08si19060808pgd.404.2023.07.03.17.12.24; Mon, 03 Jul 2023 17:12:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CvnrYvAq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231129AbjGCXHZ (ORCPT + 99 others); Mon, 3 Jul 2023 19:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231131AbjGCXHT (ORCPT ); Mon, 3 Jul 2023 19:07:19 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41B13E72 for ; Mon, 3 Jul 2023 16:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688425549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uLDMtsQ7x8sK8Yp4yXeZqors8D/LGiL+rTQqlGxqvwY=; b=CvnrYvAqxF+qT8ZjP/AHJUw+NgW17B7ZeeZDqyFo/+60+t9h5Mk2J82ywbQ4Q8T+zEEUHh zf+ercLgUKLWO0dL9XkMcWzLwv9lh9IZYAtiaKS/805Ap/By/5PLEFx0JL8Z5oKC3cO1Bm jqAW7ODg02jaYKh4pySor835oWJio+A= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-108-mcOpe7G5MTeEMEpI_rd6xw-1; Mon, 03 Jul 2023 19:05:48 -0400 X-MC-Unique: mcOpe7G5MTeEMEpI_rd6xw-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-3fb40ec952bso31101505e9.0 for ; Mon, 03 Jul 2023 16:05:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688425547; x=1691017547; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uLDMtsQ7x8sK8Yp4yXeZqors8D/LGiL+rTQqlGxqvwY=; b=PvtGeWnSBjlURi2AjuXpBl//49Qb1vR9xKoUGmoTcNlMEmHfQNA4reIr0/JJ253w8l xmhxMHKSmoRgvcEQBcwfIxcrxmE2YgHK8X5uypPA8gD2Rj3391r81nl/ygkVlu5hDJLQ kqCer++M89llfmUzQ7RriYCZj+kqTOKXJUhB4h3RrV0NBosPCs3d9WJLwL7g131YeYHM lW7fWcqF5vJdvs+HOmhbo2B8x0DghCr042mdXovJ0C63LcLnJgNgUeqbnEDmEluJewtD 6G6mCiIHp8ik6NAvizQMnLna+rIoN8k95uz1MAnN+Ztby/d9mzRkj+ZxrqM/K2905sTV RFyA== X-Gm-Message-State: AC+VfDxSi++CqcRdLmVwpAHXQdzsXYP3KFTQCpL+14b3TA0bt0rUrWlZ 9P36Q5NQPWpSZVSf41IclCHIQHHk+drVlbcV/zcq/fE7oUBu73b9eLa+d9SUutq65+nw/m/jGFe ZX1W0cdsrjRuNazZk5ruQluttJBeCQfJlY5U7oDh3nTPrhWe3lHYYpBwHdlgIla0P89V3bqewka bUypkQ0c0= X-Received: by 2002:a1c:4c08:0:b0:3fb:b8a6:33f9 with SMTP id z8-20020a1c4c08000000b003fbb8a633f9mr9977087wmf.0.1688425546996; Mon, 03 Jul 2023 16:05:46 -0700 (PDT) X-Received: by 2002:a1c:4c08:0:b0:3fb:b8a6:33f9 with SMTP id z8-20020a1c4c08000000b003fbb8a633f9mr9977053wmf.0.1688425546709; Mon, 03 Jul 2023 16:05:46 -0700 (PDT) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id cw13-20020a056000090d00b003112f836d4esm26504465wrb.85.2023.07.03.16.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 16:05:46 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven , Thomas Zimmermann , Arnd Bergmann , Javier Martinez Canillas , Andy Shevchenko , Borislav Petkov , Daniel Vetter , Dave Hansen , Greg Kroah-Hartman , "H. Peter Anvin" , Helge Deller , Ingo Molnar , Randy Dunlap , Sam Ravnborg , Thomas Gleixner , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, x86@kernel.org Subject: [PATCH v4 4/5] fbdev: Split frame buffer support in FB and FB_CORE symbols Date: Tue, 4 Jul 2023 01:05:28 +0200 Message-ID: <20230703230534.997525-5-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230703230534.997525-1-javierm@redhat.com> References: <20230703230534.997525-1-javierm@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770446710228116428?= X-GMAIL-MSGID: =?utf-8?q?1770446710228116428?= Currently the CONFIG_FB option has to be enabled even if no legacy fbdev drivers are needed (e.g: only to have support for framebuffer consoles). The DRM subsystem has a fbdev emulation layer, but depends on CONFIG_FB and so it can only be enabled if that dependency is enabled as well. That means fbdev drivers have to be explicitly disabled if users want to enable CONFIG_FB, only to use fbcon and/or the DRM fbdev emulation layer. This patch introduces a non-visible CONFIG_FB_CORE symbol that could be enabled just to have core support needed for CONFIG_DRM_FBDEV_EMULATION, allowing CONFIG_FB to be disabled (and automatically disabling all the fbdev drivers). Nothing from fb_backlight.o and fbmon.o is used by the DRM fbdev emulation layer so these two objects can be compiled out when CONFIG_FB is disabled. Signed-off-by: Javier Martinez Canillas --- Changes in v4: - Fix menuconfig hierarchy that was broken in v3 (Arnd Bergmann). Changes in v3: - Really make a hidden symbol by removing the prompt (Arnd Bergmann). - Change FB_CORE to config instead of menuconfig (Arnd Bergmann). - Keep "depends on FB" for FIRMWARE_EDID (Arnd Bergmann). - Compile out fb_backlight.o and fbmon.o that are only needed for FB (Arnd Bergmann). - Make FB_DEVICE to depend on FB_CORE instead of selecting it. Changes in v2: - Keep "depends on FB" for FB_DDC, FB_HECUBA, FB_SVGALIB, FB_MACMODES, FB_BACKLIGHT, FB_MODE_HELPERS and FB_TILEBLITTING (Arnd Bergmann). - Don't change the fb.o object name (Arnd Bergmann). - Make FB_CORE a non-visible Kconfig symbol instead (Thomas Zimmermann). arch/x86/Makefile | 2 +- arch/x86/video/Makefile | 2 +- drivers/video/console/Kconfig | 2 +- drivers/video/fbdev/Kconfig | 10 ++++++++-- drivers/video/fbdev/core/Kconfig | 30 +++++++++++++++++------------- drivers/video/fbdev/core/Makefile | 8 ++++---- 6 files changed, 32 insertions(+), 22 deletions(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index b39975977c03..89a02e69be5f 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -259,7 +259,7 @@ drivers-$(CONFIG_PCI) += arch/x86/pci/ # suspend and hibernation support drivers-$(CONFIG_PM) += arch/x86/power/ -drivers-$(CONFIG_FB) += arch/x86/video/ +drivers-$(CONFIG_FB_CORE) += arch/x86/video/ #### # boot loader support. Several targets are kept for legacy purposes diff --git a/arch/x86/video/Makefile b/arch/x86/video/Makefile index 11640c116115..5ebe48752ffc 100644 --- a/arch/x86/video/Makefile +++ b/arch/x86/video/Makefile @@ -1,2 +1,2 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_FB) += fbdev.o +obj-$(CONFIG_FB_CORE) += fbdev.o diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig index a2a88d42edf0..1b5a319971ed 100644 --- a/drivers/video/console/Kconfig +++ b/drivers/video/console/Kconfig @@ -72,7 +72,7 @@ config DUMMY_CONSOLE_ROWS config FRAMEBUFFER_CONSOLE bool "Framebuffer Console support" - depends on FB && !UML + depends on FB_CORE && !UML select VT_HW_CONSOLE_BINDING select CRC32 select FONT_SUPPORT diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index 06199f044546..179e728aff5d 100644 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -4,9 +4,9 @@ # menuconfig FB - tristate "Support for frame buffer devices" + tristate "Support for frame buffer device drivers" + select FB_CORE select FB_NOTIFY - select VIDEO_CMDLINE help The frame buffer device provides an abstraction for the graphics hardware. It represents the frame buffer of some video hardware and @@ -30,6 +30,12 @@ menuconfig FB for more information. + This enables support for native frame buffer device (fbdev) drivers. + + The DRM subsystem provides support for emulated frame buffer devices + on top of KMS drivers, but this option allows legacy fbdev drivers to + be enabled as well. + Say Y here and to the driver for your graphics board below if you are compiling a kernel for a non-x86 architecture. diff --git a/drivers/video/fbdev/core/Kconfig b/drivers/video/fbdev/core/Kconfig index 8e308d12c57b..15ce529d579a 100644 --- a/drivers/video/fbdev/core/Kconfig +++ b/drivers/video/fbdev/core/Kconfig @@ -3,6 +3,10 @@ # fbdev core configuration # +config FB_CORE + select VIDEO_CMDLINE + tristate + config FB_NOTIFY bool @@ -23,7 +27,7 @@ config FIRMWARE_EDID config FB_DEVICE bool "Provide legacy /dev/fb* device" - depends on FB + depends on FB_CORE default y help Say Y here if you want the legacy /dev/fb* device file and @@ -39,7 +43,7 @@ config FB_DDC config FB_CFB_FILLRECT tristate - depends on FB + depends on FB_CORE help Include the cfb_fillrect function for generic software rectangle filling. This is used by drivers that don't provide their own @@ -47,7 +51,7 @@ config FB_CFB_FILLRECT config FB_CFB_COPYAREA tristate - depends on FB + depends on FB_CORE help Include the cfb_copyarea function for generic software area copying. This is used by drivers that don't provide their own (accelerated) @@ -55,7 +59,7 @@ config FB_CFB_COPYAREA config FB_CFB_IMAGEBLIT tristate - depends on FB + depends on FB_CORE help Include the cfb_imageblit function for generic software image blitting. This is used by drivers that don't provide their own @@ -63,7 +67,7 @@ config FB_CFB_IMAGEBLIT config FB_CFB_REV_PIXELS_IN_BYTE bool - depends on FB + depends on FB_CORE help Allow generic frame-buffer functions to work on displays with 1, 2 and 4 bits per pixel depths which has opposite order of pixels in @@ -71,7 +75,7 @@ config FB_CFB_REV_PIXELS_IN_BYTE config FB_SYS_FILLRECT tristate - depends on FB + depends on FB_CORE help Include the sys_fillrect function for generic software rectangle filling. This is used by drivers that don't provide their own @@ -79,7 +83,7 @@ config FB_SYS_FILLRECT config FB_SYS_COPYAREA tristate - depends on FB + depends on FB_CORE help Include the sys_copyarea function for generic software area copying. This is used by drivers that don't provide their own (accelerated) @@ -87,7 +91,7 @@ config FB_SYS_COPYAREA config FB_SYS_IMAGEBLIT tristate - depends on FB + depends on FB_CORE help Include the sys_imageblit function for generic software image blitting. This is used by drivers that don't provide their own @@ -126,22 +130,22 @@ endchoice config FB_SYS_FOPS tristate - depends on FB + depends on FB_CORE config FB_DEFERRED_IO bool - depends on FB + depends on FB_CORE config FB_IO_HELPERS bool - depends on FB + depends on FB_CORE select FB_CFB_COPYAREA select FB_CFB_FILLRECT select FB_CFB_IMAGEBLIT config FB_SYS_HELPERS bool - depends on FB + depends on FB_CORE select FB_SYS_COPYAREA select FB_SYS_FILLRECT select FB_SYS_FOPS @@ -149,7 +153,7 @@ config FB_SYS_HELPERS config FB_SYS_HELPERS_DEFERRED bool - depends on FB + depends on FB_CORE select FB_DEFERRED_IO select FB_SYS_HELPERS diff --git a/drivers/video/fbdev/core/Makefile b/drivers/video/fbdev/core/Makefile index 9150bafd9e89..2cd213716c12 100644 --- a/drivers/video/fbdev/core/Makefile +++ b/drivers/video/fbdev/core/Makefile @@ -1,10 +1,10 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_FB_NOTIFY) += fb_notify.o -obj-$(CONFIG_FB) += fb.o -fb-y := fb_backlight.o \ - fb_info.o \ - fbmem.o fbmon.o fbcmap.o \ +obj-$(CONFIG_FB_CORE) += fb.o +fb-y := fb_info.o \ + fbmem.o fbcmap.o \ modedb.o fbcvt.o fb_cmdline.o fb_io_fops.o +fb-$(CONFIG_FB) += fb_backlight.o fbmon.o fb-$(CONFIG_FB_DEFERRED_IO) += fb_defio.o fb-$(CONFIG_FB_DEVICE) += fb_chrdev.o \ fb_procfs.o \ From patchwork Mon Jul 3 23:05:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 115514 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp857706vqx; Mon, 3 Jul 2023 16:47:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlG0m5IZ5jBwb4W1aLDxINe6xlZ7IqXa9CImJtSq1Pw8PeLRKlqHWCS/i6e5SKyAIqzmFmR+ X-Received: by 2002:a17:90b:3706:b0:263:6297:9f73 with SMTP id mg6-20020a17090b370600b0026362979f73mr13397309pjb.1.1688428035418; Mon, 03 Jul 2023 16:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688428035; cv=none; d=google.com; s=arc-20160816; b=I6ds8iMNOzdL+klJhWF33bX9v4gUJXSIAHWWJR04CclbDPfRYB34IAtUdIyFOUKt0p 4GkVITxcsdrzc2H2/zkhGFs3OBEMqsk/MomuymWxUvdY56V1JwCZgSxoB77CBrzQG+T7 kGhavoacPyHSLnmTbVg/gy3711aZgEliS2Pgmg9gSDXZQkO2RqTOF4JEyED5oMH9XsBr O+UDh0/hOC4H5/fEfakJNnEA5mHa6cW4C19LDZ8/1v0xNRNFxGu0w2SZpBWNH+8utYuz u/qDmGZgip0hahXdTX+z5rn30IIm7CwGX4LLFSBfOQgZckNdnRPk8KsQ1SJ6Btq6zhOH USsg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Lkg59yW6N3qp9OWXgPkPBl5HF5mAhGC8YRJ6AIKa7QU=; fh=T6mOyG4OSSJeKV7JxJ4e8cUXI/jKpolPo3VarejOvkE=; b=Bmb+sTiVpR/2gtAp6Svln4WAkr9edT/ihqs+kNYNdqvvR0Uswx9pn6QouEQXkdiNeq Nd9KM/ttgyRJB+oSzfURJ4iRnx31Ovf57XCb1ihRwcI8VKNdDidbzqfT9Al6fzdQl1m2 4kHZF3DkR3yi+h+dWmvPvvqdBvJPVHo88nvxrbwBqdrx/O21InKlMMNsXvv9iZiMxdRR Oghsa+C1cwpjnehnMd1Z2lpfUBfBOOOb/qzVNifvxl6+i/mryxwBCWf6z3lBzGtXgLn8 BsNxBKXXJx3FOA8pKneeyO0qhtlmaxAjbz9gqbW2b7o1RrNq2aVafv/upnNT7P7a+f3B oyDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ecWbLF3Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a17090a9f4900b00262f8c7ed18si16033335pjv.94.2023.07.03.16.46.52; Mon, 03 Jul 2023 16:47:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ecWbLF3Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230374AbjGCXHR (ORCPT + 99 others); Mon, 3 Jul 2023 19:07:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230303AbjGCXHP (ORCPT ); Mon, 3 Jul 2023 19:07:15 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60218E76 for ; Mon, 3 Jul 2023 16:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688425551; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Lkg59yW6N3qp9OWXgPkPBl5HF5mAhGC8YRJ6AIKa7QU=; b=ecWbLF3Y1nXYYD95+nB8VZs1cEkAo2wQvByH9UVvyDH2P0lx2gdjFCzRIrZYBzIVddv8/s 6Y1yS2PCV0PgyPag0oF41cF211eZSeikaavvG8eHwE2QGSKNr6z4Dh+wNwGRSiK/iF27Mq t8RrL/4TkMqKrvTRsz07hIjFBT+nkZk= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-300-7JubERteNlig4l4Ee6XqLg-1; Mon, 03 Jul 2023 19:05:50 -0400 X-MC-Unique: 7JubERteNlig4l4Ee6XqLg-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-3f81dda24d3so57239165e9.1 for ; Mon, 03 Jul 2023 16:05:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688425549; x=1691017549; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Lkg59yW6N3qp9OWXgPkPBl5HF5mAhGC8YRJ6AIKa7QU=; b=dKDc9MsJ2Av8lGkEDKyQaJWfIBv6q0W2wew/MlBnSkTpqc7dcFDN95hCr0mlBiOmyq 3zTE8kQ5YlnLMFKyhiTZZEKynWzGOvpx257KZjFvD/RB2rGiCQq29ibpR7KXCTbI/Frv bPaMuLBLXaMy8N6TwlhXEPtzKe2gi8t6FlP9Jptw06GfdgKz2DEvcNKAEpSHBRPFhVts KF5plpIGF1mTbaJQKIAKKoONsHa86XsMmIoY03n6id5hL4oSkCpzNGiGXmUwrn9/PXYd aDJgxunk59TGgoIFE6cwyI6bZFnMUeZlhyZre7NlLBT8QMY8j1QTLIJhfDZm7F94WvlR p31w== X-Gm-Message-State: ABy/qLbPYVoY5jFFM/f3VofFdCX6YIXj3+9/17M8em+t+kJecmsJqNpu fluai3qORm5KBihdPAJFA4TrxByyxAb/5y3HUajvFBHaMWS0ihJ9gGrI8jp/jWtLNHK9H/7zJqv TyoQkQfJh32x7dy9bB0uNKS76ZwlFKxp8uL2eG15epEGO+BLav87+QS6V6Gn/XLSlxgy0dXhhP0 aAOWMMGpw= X-Received: by 2002:a7b:c3c1:0:b0:3fb:c77e:80f6 with SMTP id t1-20020a7bc3c1000000b003fbc77e80f6mr14175975wmj.36.1688425549111; Mon, 03 Jul 2023 16:05:49 -0700 (PDT) X-Received: by 2002:a7b:c3c1:0:b0:3fb:c77e:80f6 with SMTP id t1-20020a7bc3c1000000b003fbc77e80f6mr14175942wmj.36.1688425548710; Mon, 03 Jul 2023 16:05:48 -0700 (PDT) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id cw13-20020a056000090d00b003112f836d4esm26504465wrb.85.2023.07.03.16.05.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 16:05:47 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven , Thomas Zimmermann , Arnd Bergmann , Javier Martinez Canillas , Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , dri-devel@lists.freedesktop.org Subject: [PATCH v4 5/5] drm: Make FB_CORE to be selected if DRM fbdev emulation is enabled Date: Tue, 4 Jul 2023 01:05:29 +0200 Message-ID: <20230703230534.997525-6-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230703230534.997525-1-javierm@redhat.com> References: <20230703230534.997525-1-javierm@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770445115529064570?= X-GMAIL-MSGID: =?utf-8?q?1770445115529064570?= Now that fbdev core has been split in FB_CORE and FB, make the DRM symbol to select the FB_CORE option if the DRM fbdev emulation layer is enabled. This allows to disable the CONFIG_FB option if is not needed, which will avoid the need to explicitly disable each of the legacy fbdev drivers. Signed-off-by: Javier Martinez Canillas --- (no changes since v3) Changes in v3: - Make the DRM symbol to select FB_CORE if DRM_FBDEV_EMULATION is enabled (Arnd Bergmann). - Also make DRM select FB_SYS_HELPERS_DEFERRED if DRM_FBDEV_EMULATION - Make DRM_FBDEV_EMULATION to depend on DRM instead of DRM_KMS_HELPER. Changes in v2: - Make CONFIG_DRM_FBDEV_EMULATION to select FB_CORE (Thomas Zimmermann). drivers/gpu/drm/Kconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index afb3b2f5f425..775564558152 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig @@ -9,6 +9,9 @@ menuconfig DRM tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)" depends on (AGP || AGP=n) && !EMULATED_CMPXCHG && HAS_DMA select DRM_PANEL_ORIENTATION_QUIRKS + select DRM_KMS_HELPER if DRM_FBDEV_EMULATION + select FB_CORE if DRM_FBDEV_EMULATION + select FB_SYS_HELPERS_DEFERRED if DRM_FBDEV_EMULATION select HDMI select I2C select DMA_SHARED_BUFFER @@ -95,7 +98,6 @@ config DRM_KUNIT_TEST config DRM_KMS_HELPER tristate depends on DRM - select FB_SYS_HELPERS_DEFERRED if DRM_FBDEV_EMULATION help CRTC helpers for KMS drivers. @@ -131,8 +133,7 @@ config DRM_DEBUG_MODESET_LOCK config DRM_FBDEV_EMULATION bool "Enable legacy fbdev support for your modesetting driver" - depends on DRM_KMS_HELPER - depends on FB=y || FB=DRM_KMS_HELPER + depends on DRM select FRAMEBUFFER_CONSOLE if !EXPERT select FRAMEBUFFER_CONSOLE_DETECT_PRIMARY if FRAMEBUFFER_CONSOLE default y