From: Thierry Reding <thierry.reding@gmail.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: David Airlie <airlied@linux.ie>,
Philippe CORNU <philippe.cornu@st.com>,
dri-devel <dri-devel@lists.freedesktop.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drm/panel: rm68200: add backlight dependency
Date: Wed, 14 Mar 2018 11:52:30 +0100 [thread overview]
Message-ID: <20180314105230.GA8564@ulmo> (raw)
In-Reply-To: <CAK8P3a3A37_q0PEXFqi2iLR_bJxW=trB3tksZqyjG5MYwaMuXA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2088 bytes --]
On Wed, Mar 14, 2018 at 09:49:54AM +0100, Arnd Bergmann wrote:
> On Wed, Mar 14, 2018 at 12:01 AM, Thierry Reding
> <thierry.reding@gmail.com> wrote:
> > On Tue, Mar 13, 2018 at 09:59:54PM +0100, Arnd Bergmann wrote:
> >> Like many other panel drivers, this one fails to build
> >> when backlight support is disabled:
> >>
> >> drivers/gpu/drm/panel/panel-raydium-rm68200.o: In function `rm68200_probe':
> >> panel-raydium-rm68200.c:(.text+0x14a): undefined reference to `devm_of_find_backlight'
> >>
> >> This adds the appropriate dependency.
> >>
> >> Fixes: 2b7ed18bed1a ("drm/panel: Add support for Raydium RM68200 panel driver")
> >> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> >> ---
> >> drivers/gpu/drm/panel/Kconfig | 1 +
> >> 1 file changed, 1 insertion(+)
> >
> > This shouldn't be necessary. include/linux/backlight.h defines a stub if
> > the backlight class is not enabled.
> >
> > What tree are you seeing this on?
>
> This is on linux-next.
>
> It must be with BACKLIGHT_CLASS_DEVICE=m and
> DRM_PANEL_RAYDIUM_RM68200=y, meaning that it should
> be sufficient to do
>
> depends on BACKLIGHT_CLASS_DEVICE || BACKLIGHT_CLASS_DEVICE=n
>
> to force DRM_PANEL_RAYDIUM_RM68200 to be a loadable module
> whenever BACKLIGHT_CLASS_DEVICE=m. For the patch, I looked at
> what the other drivers in the same directory do and followed their
> example.
>
> I see three options here:
>
> 1. update my patch changelog with the explanation I wrote here but leave it
> untouched
> 2. use the more elaborate dependency (after testing) but not change the
> others
> 3. change all panel drivers with a backlight dependency the same way,
> possibly with a helper symbol like
>
> config BACKLIGHT_CLASS_DEVICE_OPTIONAL
> tristate
> default m if BACKLIGHT_CLASS_DEVICE=m
> default y
>
> Arnd
I went with option 1) and added some text that hopefully clarifies the
issue.
https://cgit.freedesktop.org/drm/drm-misc/commit/?id=a8efe516316472ac771ba3f591295c7515e46172
Thierry
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
WARNING: multiple messages have this Message-ID (diff)
From: Thierry Reding <thierry.reding@gmail.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: David Airlie <airlied@linux.ie>,
Philippe CORNU <philippe.cornu@st.com>,
Linus Walleij <linus.walleij@linaro.org>,
dri-devel <dri-devel@lists.freedesktop.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drm/panel: rm68200: add backlight dependency
Date: Wed, 14 Mar 2018 11:52:30 +0100 [thread overview]
Message-ID: <20180314105230.GA8564@ulmo> (raw)
In-Reply-To: <CAK8P3a3A37_q0PEXFqi2iLR_bJxW=trB3tksZqyjG5MYwaMuXA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2088 bytes --]
On Wed, Mar 14, 2018 at 09:49:54AM +0100, Arnd Bergmann wrote:
> On Wed, Mar 14, 2018 at 12:01 AM, Thierry Reding
> <thierry.reding@gmail.com> wrote:
> > On Tue, Mar 13, 2018 at 09:59:54PM +0100, Arnd Bergmann wrote:
> >> Like many other panel drivers, this one fails to build
> >> when backlight support is disabled:
> >>
> >> drivers/gpu/drm/panel/panel-raydium-rm68200.o: In function `rm68200_probe':
> >> panel-raydium-rm68200.c:(.text+0x14a): undefined reference to `devm_of_find_backlight'
> >>
> >> This adds the appropriate dependency.
> >>
> >> Fixes: 2b7ed18bed1a ("drm/panel: Add support for Raydium RM68200 panel driver")
> >> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> >> ---
> >> drivers/gpu/drm/panel/Kconfig | 1 +
> >> 1 file changed, 1 insertion(+)
> >
> > This shouldn't be necessary. include/linux/backlight.h defines a stub if
> > the backlight class is not enabled.
> >
> > What tree are you seeing this on?
>
> This is on linux-next.
>
> It must be with BACKLIGHT_CLASS_DEVICE=m and
> DRM_PANEL_RAYDIUM_RM68200=y, meaning that it should
> be sufficient to do
>
> depends on BACKLIGHT_CLASS_DEVICE || BACKLIGHT_CLASS_DEVICE=n
>
> to force DRM_PANEL_RAYDIUM_RM68200 to be a loadable module
> whenever BACKLIGHT_CLASS_DEVICE=m. For the patch, I looked at
> what the other drivers in the same directory do and followed their
> example.
>
> I see three options here:
>
> 1. update my patch changelog with the explanation I wrote here but leave it
> untouched
> 2. use the more elaborate dependency (after testing) but not change the
> others
> 3. change all panel drivers with a backlight dependency the same way,
> possibly with a helper symbol like
>
> config BACKLIGHT_CLASS_DEVICE_OPTIONAL
> tristate
> default m if BACKLIGHT_CLASS_DEVICE=m
> default y
>
> Arnd
I went with option 1) and added some text that hopefully clarifies the
issue.
https://cgit.freedesktop.org/drm/drm-misc/commit/?id=a8efe516316472ac771ba3f591295c7515e46172
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-03-14 10:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-13 20:59 [PATCH] drm/panel: rm68200: add backlight dependency Arnd Bergmann
2018-03-13 20:59 ` Arnd Bergmann
2018-03-13 23:01 ` Thierry Reding
2018-03-13 23:01 ` Thierry Reding
2018-03-14 8:49 ` Arnd Bergmann
2018-03-14 8:49 ` Arnd Bergmann
2018-03-14 10:52 ` Thierry Reding [this message]
2018-03-14 10:52 ` Thierry Reding
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=20180314105230.GA8564@ulmo \
--to=thierry.reding@gmail.com \
--cc=airlied@linux.ie \
--cc=arnd@arndb.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=philippe.cornu@st.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.