Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp125536iob; Tue, 3 May 2022 13:07:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFze13ObTEhHcHwUnqXD7BUZsJW5GrY5+bch0cMRRZYsj8Vwmds5Csn5G9qg+uno5agU6M X-Received: by 2002:a05:6a00:1492:b0:50e:11ae:f62f with SMTP id v18-20020a056a00149200b0050e11aef62fmr4036921pfu.43.1651608447576; Tue, 03 May 2022 13:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651608447; cv=none; d=google.com; s=arc-20160816; b=j6eQ+l3fNXLgTpav3bA3t0aVLu6rxO6CGosGYHLRNfppCVEXS0F76/xN26f/FMlMbw dowapa+/KhRJfFuGNY15V/8MtqKAI7N4ESBS9ywYX9jwYV8OkMH0HAoEkEXpgV2TuGBn gLjwzitBZp76UBSU25JRHG9oKMDxuzujR+RSnJRcjpPynl0uCYj1pAxVkHKQegy1no9m a9DIxreziKrYw1Ls1sqfkwCVov7sNxRKPS+qoimr5HR7poG0AVTX/jwbYDX68rrMrSKs 8AE+g8EatobHxd9riZp9aC51IWOSGg38s2AUP4vDTuE7nPeiZXFCj7TMSj4z4yQSJ2nq bGpQ== 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=0ebsl3t9Q4A5ZhggZdMt0K6huVQ4nPLjVF1HT4eHwHY=; b=gPzpcF2YNYbMqmsZ2TvfaoM6xp0IKbuDZF40XGKVrbb3Bxil+y3f81lwk0avG/xnNP f/kTvzM1nS1ic3a3liFt2rRdqbkP/yXePLHwXfx0L95DpNIeEwDBlAWOIDwcxcDIrViS ehmvOjoJia2zbbYJPll5PMJsNwJI9BdBumXdEqdI9dSFOtN7PD/i1ZYYryRLqZUcnm5k Id/7OX6UfwzlEyntTOr808K4KxCyeY/TRGYS6ytVTkIsOLpf0cxBkrmnl7I4hhOO6nd6 Crr/6nBRLWMux/x6f18yOac2QTAFEounJT8mv5Fnf/lYuhrs3C7xaAeGHtlSnDV9FWzY C1hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HaGnyx7p; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a170902ecce00b00153b2d16575si18335676plh.381.2022.05.03.13.07.02; Tue, 03 May 2022 13:07: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=@gmail.com header.s=20210112 header.b=HaGnyx7p; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240030AbiECRGd (ORCPT + 99 others); Tue, 3 May 2022 13:06:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240012AbiECRGb (ORCPT ); Tue, 3 May 2022 13:06:31 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1668530F42; Tue, 3 May 2022 10:02:59 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id b24so20568077edu.10; Tue, 03 May 2022 10:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0ebsl3t9Q4A5ZhggZdMt0K6huVQ4nPLjVF1HT4eHwHY=; b=HaGnyx7pBoke+0aSLZ+0Cl9i2Z3rtc277xsE07lgnGx2lIPgKNR+/cHf1BHMJd+tWY xLxDVjfXM0LpLkK6W47aSnLqvt4qcngT1GxJ9qnMFGWSSL68ZSpCJur0Qp+flnz9TG9V 8iSPz7fXNdaty2uNHB4TWoNsqJrz0v03bb5rxLo5UKkUbCeepA8IK+d4f511ABt2QcWd ZpC42ODRQgilCYofK3JnmcBW/XdrLxgbLavwJlZDJe38uRpGjKQRfb1xNvaHi8pmKFwS 8RYFI+ibpzWIAh8L22MX0fUODrvS/rlJYgws3AcC0d8zDmBJEhPw91evXIyGqHtd9B1w 9Xiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0ebsl3t9Q4A5ZhggZdMt0K6huVQ4nPLjVF1HT4eHwHY=; b=im+01IOU4Zoy13pHmsTejb3PMVCiXvIelSdvFm7ZuPdaApVanG/iC7B5SyButNzh88 MmkjbG7NCIs9itc0Zv/QaCWOfvkmeHMaVyZ4d110cjTn1f8vOS8I/CqRYS1r84q4XiQ6 ogmIkWFjwiX5rFwsEx3RReBqKuwOA9DcbFgNLsnihu60fPj4rGiLMEZufbHyCzS6m7tc NAd2OYYWBXTdT0YGlZKAz/s/SKdzNszQ7m6UzNZaEI3cgosU6to6Sd4aSweRXYVekDm6 vu7Y13ecVaHQ1I2CMhr5EB0/Bsfzgom0QMKZpMIeAsQdvOXO9IfvEXaU6MtDPmsDbCdh lFgQ== X-Gm-Message-State: AOAM5309Om5VFGj4a+z32x3cDRW4j58y9elGbwyHdKnw2sgqUPjXP5a/ 8qejceBq9hrDU5OLOG79eX5lijrt784= X-Received: by 2002:a05:6402:1941:b0:413:2822:9c8 with SMTP id f1-20020a056402194100b00413282209c8mr18716302edz.13.1651597377548; Tue, 03 May 2022 10:02:57 -0700 (PDT) Received: from kista.localnet (cpe1-3-76.cable.triera.net. [213.161.3.76]) by smtp.gmail.com with ESMTPSA id q8-20020aa7cc08000000b0042617ba637esm8000905edt.8.2022.05.03.10.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 10:02:56 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: linux-kernel@vger.kernel.org, Javier Martinez Canillas Cc: Daniel Vetter , Thomas Zimmermann , Laurent Pinchart , Javier Martinez Canillas , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-mediatek@lists.infradead.org, linux-mips@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, spice-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v3 2/3] drm/fb-helper: Rename preferred_bpp drm_fbdev_generic_setup() parameter Date: Tue, 03 May 2022 19:02:54 +0200 Message-ID: <2626921.mvXUDI8C0e@kista> In-Reply-To: <20220503071540.471667-3-javierm@redhat.com> References: <20220503071540.471667-1-javierm@redhat.com> <20220503071540.471667-3-javierm@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Dne torek, 03. maj 2022 ob 09:15:39 CEST je Javier Martinez Canillas napisal(a): > By default the bits per pixel for the emulated framebuffer device is set > to dev->mode_config.preferred_depth, but some devices need another value. > > Since this second parameter is only used by a few drivers, and to allow > drivers to use it for passing other configurations when registering the > fbdev, rename @preferred_bpp to @options and make it a multi-field param. > > The DRM_FB_OPTION() and DRM_FB_GET_OPTION() macros are provided to drivers > for computing options bitfield values and getting the values respectively > > For now, only the DRM_FB_BPP option exists but other options can be added. > > Suggested-by: Thomas Zimmermann > Signed-off-by: Javier Martinez Canillas > Reviewed-by: Thomas Zimmermann > Reviewed-by: Laurent Pinchart > --- > > Changes in v3: > - Drop the preferred_bpp local variable (Laurent Pinchart). > - Add a const qualifier to options parameter (Laurent Pinchart). > > Changes in v2: > - Rename DRM_FB_SET_OPTION() to DRM_FB_OPTION() and make more clear in > the kernel-doc what this macro does (Laurent Pinchart). > - Fix some kernel-doc issues I didn't notice in v1. > - Add Reviewed-by tags from Thomas and Laurent. > > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 +++-- > drivers/gpu/drm/arm/hdlcd_drv.c | 2 +- > drivers/gpu/drm/arm/malidp_drv.c | 2 +- > drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 2 +- > drivers/gpu/drm/ast/ast_drv.c | 2 +- > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- > drivers/gpu/drm/drm_drv.c | 2 +- > drivers/gpu/drm/drm_fb_helper.c | 26 ++++++++++++------- > drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 2 +- > .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 2 +- > drivers/gpu/drm/imx/dcss/dcss-kms.c | 2 +- > drivers/gpu/drm/imx/imx-drm-core.c | 2 +- > drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 +- > drivers/gpu/drm/mcde/mcde_drv.c | 2 +- > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- > drivers/gpu/drm/meson/meson_drv.c | 2 +- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 +- > drivers/gpu/drm/pl111/pl111_drv.c | 2 +- > drivers/gpu/drm/qxl/qxl_drv.c | 2 +- > drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 +- > drivers/gpu/drm/sti/sti_drv.c | 2 +- > drivers/gpu/drm/stm/drv.c | 2 +- > drivers/gpu/drm/sun4i/sun4i_drv.c | 2 +- For sun4i: Acked-by: Jernej Skrabec Best regard, Jernej > drivers/gpu/drm/tidss/tidss_drv.c | 2 +- > drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- > drivers/gpu/drm/tiny/arcpgu.c | 2 +- > drivers/gpu/drm/tiny/bochs.c | 2 +- > drivers/gpu/drm/tve200/tve200_drv.c | 2 +- > drivers/gpu/drm/vboxvideo/vbox_drv.c | 2 +- > drivers/gpu/drm/vc4/vc4_drv.c | 2 +- > drivers/gpu/drm/virtio/virtgpu_drv.c | 2 +- > drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 2 +- > include/drm/drm_fb_helper.h | 14 +++++++++- > 33 files changed, 64 insertions(+), 42 deletions(-)