From: Javier Martinez Canillas <javierm@redhat.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: "Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Emma Anholt" <emma@anholt.net>,
"Chun-Kuang Hu" <chunkuang.hu@kernel.org>,
"David Airlie" <airlied@linux.ie>,
"Laurentiu Palcu" <laurentiu.palcu@oss.nxp.com>,
"Liviu Dudau" <liviu.dudau@arm.com>,
"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
"Gurchetan Singh" <gurchetansingh@chromium.org>,
"Paul Cercueil" <paul@crapouillou.net>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Shawn Guo" <shawnguo@kernel.org>,
linux-stm32@st-md-mailman.stormreply.com,
"Jerome Brunet" <jbrunet@baylibre.com>,
"Marek Vasut" <marex@denx.de>, "Hao Fang" <fanghao11@huawei.com>,
linux-aspeed@lists.ozlabs.org,
"Samuel Holland" <samuel@sholland.org>,
"Kevin Hilman" <khilman@baylibre.com>,
"Neil Armstrong" <narmstrong@baylibre.com>,
"Alexey Brodkin" <abrodkin@synopsys.com>,
"Michal Simek" <michal.simek@xilinx.com>,
"Jernej Skrabec" <jernej.skrabec@gmail.com>,
"Xinliang Liu" <xinliang.liu@linaro.org>,
"Chen-Yu Tsai" <wens@csie.org>, "Joel Stanley" <joel@jms.id.au>,
"Dave Airlie" <airlied@redhat.com>,
"Xinwei Kong" <kong.kongxinwei@hisilicon.com>,
virtualization@lists.linux-foundation.org,
"NXP Linux Team" <linux-imx@nxp.com>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Raphael Gallais-Pou" <raphael.gallais-pou@foss.st.com>,
"Martin Blumenstingl" <martin.blumenstingl@googlemail.com>,
"Chen Feng" <puck.chen@hisilicon.com>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
"Alison Wang" <alison.wang@nxp.com>,
linux-mips@vger.kernel.org, "Sam Ravnborg" <sam@ravnborg.org>,
"Hans de Goede" <hdegoede@redhat.com>,
linux-mediatek@lists.infradead.org,
dri-devel@lists.freedesktop.org,
"Alain Volmat" <alain.volmat@foss.st.com>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
linux-amlogic@lists.infradead.org,
"Mario Limonciello" <mario.limonciello@amd.com>,
"Evan Quan" <evan.quan@amd.com>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Yong Wu" <yong.wu@mediatek.com>,
linux-arm-kernel@lists.infradead.org,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
linux-sunxi@lists.linux.dev, amd-gfx@lists.freedesktop.org,
"Tomi Valkeinen" <tomba@kernel.org>,
"Hyun Kwon" <hyun.kwon@xilinx.com>,
"Boris Brezillon" <bbrezillon@kernel.org>,
"Andrew Jeffery" <andrew@aj.id.au>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Yannick Fertre" <yannick.fertre@foss.st.com>,
"Pan, Xinhui" <Xinhui.Pan@amd.com>,
linux-kernel@vger.kernel.org,
"Claudiu Beznea" <claudiu.beznea@microchip.com>,
linux-renesas-soc@vger.kernel.org,
"Solomon Chiu" <solomon.chiu@amd.com>,
"Kieran Bingham" <kieran.bingham+renesas@ideasonboard.com>,
"Philippe Cornu" <philippe.cornu@foss.st.com>,
"Nicolas Ferre" <nicolas.ferre@microchip.com>,
"Alex Deucher" <alexander.deucher@amd.com>,
"Tian Tao" <tiantao6@hisilicon.com>,
spice-devel@lists.freedesktop.org,
"Jyri Sarha" <jyri.sarha@iki.fi>,
"Christian König" <christian.koenig@amd.com>
Subject: Re: [PATCH 2/3] drm/fb-helper: Rename preferred_bpp drm_fbdev_generic_setup() parameter
Date: Mon, 2 May 2022 15:28:25 +0200 [thread overview]
Message-ID: <c0703a8c-3263-6dde-07e4-9f03680c6726@redhat.com> (raw)
In-Reply-To: <Ym/BtOM3OlPoE+nr@pendragon.ideasonboard.com>
Hello Laurent,
On 5/2/22 13:34, Laurent Pinchart wrote:
> Hi Javier,
>
> Thank you for the patch.
>
Thanks a lot for your feedback.
[snip]
>> +++ b/drivers/gpu/drm/drm_fb_helper.c
>> @@ -2501,8 +2501,16 @@ static const struct drm_client_funcs drm_fbdev_client_funcs = {
>> /**
>> * drm_fbdev_generic_setup() - Setup generic fbdev emulation
>> * @dev: DRM device
>> - * @preferred_bpp: Preferred bits per pixel for the device.
>> - * @dev->mode_config.preferred_depth is used if this is zero.
>> + * @options: options for the registered framebuffer.
>> + *
>> + * The @options parameter is a multi-field parameter that can contain
>> + * different options for the emulated framebuffer device registered.
>> + *
>> + * The options must be set using DRM_FB_SET_OPTION() and obtained using
>> + * DRM_FB_GET_OPTION(). The options field are the following:
>> + *
>> + * * DRM_FB_BPP: bits per pixel for the device. If the field is not set,
>> + * @dev->mode_config.preferred_depth is used instead.
>
> Do I assume correctly that a driver that would need to set multiple
> options would do something like
>
> drm_fbdev_generic_setup(dev, DRM_FB_SET_OPTION(DRM_FB_BPP, 32) |
> DRM_FB_SET_OPTION(DRM_FB_FW, 1));
>
That's correct, yes.
> ? If so, I would rename DRM_FB_SET_OPTION() to DRM_FB_OPTION() as it's
> computing the value of the option bitfield, it doesn't actually set it.
> Apart from that,
>
Right. I'll rename it.
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
Thanks!
--
Best regards,
Javier Martinez Canillas
Linux Engineering
Red Hat
next prev parent reply other threads:[~2022-05-02 13:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-02 8:48 [PATCH 0/3] drm: Allow simpledrm to setup its emulated FB as firmware provided Javier Martinez Canillas
2022-05-02 8:48 ` [PATCH 2/3] drm/fb-helper: Rename preferred_bpp drm_fbdev_generic_setup() parameter Javier Martinez Canillas
2022-05-02 11:34 ` Laurent Pinchart
2022-05-02 13:28 ` Javier Martinez Canillas [this message]
2022-05-02 10:35 ` [PATCH 0/3] drm: Allow simpledrm to setup its emulated FB as firmware provided Thomas Zimmermann
2022-05-02 10:49 ` Javier Martinez Canillas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c0703a8c-3263-6dde-07e4-9f03680c6726@redhat.com \
--to=javierm@redhat.com \
--cc=Xinhui.Pan@amd.com \
--cc=abrodkin@synopsys.com \
--cc=airlied@linux.ie \
--cc=airlied@redhat.com \
--cc=alain.volmat@foss.st.com \
--cc=alexander.deucher@amd.com \
--cc=alexandre.belloni@bootlin.com \
--cc=alexandre.torgue@foss.st.com \
--cc=alison.wang@nxp.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=andrew@aj.id.au \
--cc=bbrezillon@kernel.org \
--cc=christian.koenig@amd.com \
--cc=chunkuang.hu@kernel.org \
--cc=claudiu.beznea@microchip.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=emma@anholt.net \
--cc=evan.quan@amd.com \
--cc=fanghao11@huawei.com \
--cc=gregkh@linuxfoundation.org \
--cc=gurchetansingh@chromium.org \
--cc=hdegoede@redhat.com \
--cc=hyun.kwon@xilinx.com \
--cc=jbrunet@baylibre.com \
--cc=jernej.skrabec@gmail.com \
--cc=joel@jms.id.au \
--cc=jyri.sarha@iki.fi \
--cc=kernel@pengutronix.de \
--cc=khilman@baylibre.com \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=kong.kongxinwei@hisilicon.com \
--cc=kraxel@redhat.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=laurentiu.palcu@oss.nxp.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=linux-sunxi@lists.linux.dev \
--cc=liviu.dudau@arm.com \
--cc=marex@denx.de \
--cc=mario.limonciello@amd.com \
--cc=martin.blumenstingl@googlemail.com \
--cc=matthias.bgg@gmail.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=michal.simek@xilinx.com \
--cc=narmstrong@baylibre.com \
--cc=nicolas.ferre@microchip.com \
--cc=paul@crapouillou.net \
--cc=philippe.cornu@foss.st.com \
--cc=puck.chen@hisilicon.com \
--cc=raphael.gallais-pou@foss.st.com \
--cc=s.hauer@pengutronix.de \
--cc=sam@ravnborg.org \
--cc=samuel@sholland.org \
--cc=shawnguo@kernel.org \
--cc=solomon.chiu@amd.com \
--cc=spice-devel@lists.freedesktop.org \
--cc=tiantao6@hisilicon.com \
--cc=tomba@kernel.org \
--cc=tzimmermann@suse.de \
--cc=virtualization@lists.linux-foundation.org \
--cc=wens@csie.org \
--cc=xinliang.liu@linaro.org \
--cc=yannick.fertre@foss.st.com \
--cc=yong.wu@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).