* [PATCH v3 01/38] backlight/bd6107: Compare against struct fb_info.device
[not found] <20230613110953.24176-1-tzimmermann@suse.de>
@ 2023-06-13 11:06 ` Thomas Zimmermann
2023-06-14 13:51 ` Lee Jones
2023-06-13 11:06 ` [PATCH v3 03/38] backlight/gpio_backlight: " Thomas Zimmermann
` (2 subsequent siblings)
3 siblings, 1 reply; 9+ messages in thread
From: Thomas Zimmermann @ 2023-06-13 11:06 UTC (permalink / raw)
To: daniel, javierm, sam, deller, geert+renesas, lee, daniel.thompson,
jingoohan1, dan.carpenter, michael.j.ruhl
Cc: linux-fbdev, dri-devel, linux-sh, linux-omap, linux-staging,
linux-kernel, Thomas Zimmermann, Laurent Pinchart, stable
Struct bd6107_platform_data refers to a platform device within
the Linux device hierarchy. The test in bd6107_backlight_check_fb()
compares it against the fbdev device in struct fb_info.dev, which
is different. Fix the test by comparing to struct fb_info.device.
Fixes a bug in the backlight driver and prepares fbdev for making
struct fb_info.dev optional.
v2:
* move renames into separate patch (Javier, Sam, Michael)
Fixes: 67b43e590415 ("backlight: Add ROHM BD6107 backlight driver")
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: Lee Jones <lee@kernel.org>
Cc: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Jingoo Han <jingoohan1@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v3.12+
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
---
drivers/video/backlight/bd6107.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/backlight/bd6107.c b/drivers/video/backlight/bd6107.c
index f4db6c064635b..e3410444ea235 100644
--- a/drivers/video/backlight/bd6107.c
+++ b/drivers/video/backlight/bd6107.c
@@ -104,7 +104,7 @@ static int bd6107_backlight_check_fb(struct backlight_device *backlight,
{
struct bd6107 *bd = bl_get_data(backlight);
- return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->dev;
+ return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->device;
}
static const struct backlight_ops bd6107_backlight_ops = {
--
2.41.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v3 03/38] backlight/gpio_backlight: Compare against struct fb_info.device
[not found] <20230613110953.24176-1-tzimmermann@suse.de>
2023-06-13 11:06 ` [PATCH v3 01/38] backlight/bd6107: Compare against struct fb_info.device Thomas Zimmermann
@ 2023-06-13 11:06 ` Thomas Zimmermann
2023-06-13 11:06 ` [PATCH v3 05/38] backlight/lv5207lp: " Thomas Zimmermann
2023-06-13 11:06 ` [PATCH v3 14/38] fbdev/ep93xx-fb: Do not assign to struct fb_info.dev Thomas Zimmermann
3 siblings, 0 replies; 9+ messages in thread
From: Thomas Zimmermann @ 2023-06-13 11:06 UTC (permalink / raw)
To: daniel, javierm, sam, deller, geert+renesas, lee, daniel.thompson,
jingoohan1, dan.carpenter, michael.j.ruhl
Cc: linux-fbdev, dri-devel, linux-sh, linux-omap, linux-staging,
linux-kernel, Thomas Zimmermann, Laurent Pinchart, Rich Felker,
John Paul Adrian Glaubitz, stable
Struct gpio_backlight_platform_data refers to a platform device within
the Linux device hierarchy. The test in gpio_backlight_check_fb()
compares it against the fbdev device in struct fb_info.dev, which
is different. Fix the test by comparing to struct fb_info.device.
Fixes a bug in the backlight driver and prepares fbdev for making
struct fb_info.dev optional.
v2:
* move renames into separate patch (Javier, Sam, Michael)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 8b770e3c9824 ("backlight: Add GPIO-based backlight driver")
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: Rich Felker <dalias@libc.org>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Lee Jones <lee@kernel.org>
Cc: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Jingoo Han <jingoohan1@gmail.com>
Cc: linux-sh@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v3.12+
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
---
drivers/video/backlight/gpio_backlight.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c
index 6f78d928f054a..5c5c99f7979e3 100644
--- a/drivers/video/backlight/gpio_backlight.c
+++ b/drivers/video/backlight/gpio_backlight.c
@@ -35,7 +35,7 @@ static int gpio_backlight_check_fb(struct backlight_device *bl,
{
struct gpio_backlight *gbl = bl_get_data(bl);
- return gbl->fbdev == NULL || gbl->fbdev == info->dev;
+ return gbl->fbdev == NULL || gbl->fbdev == info->device;
}
static const struct backlight_ops gpio_backlight_ops = {
--
2.41.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v3 05/38] backlight/lv5207lp: Compare against struct fb_info.device
[not found] <20230613110953.24176-1-tzimmermann@suse.de>
2023-06-13 11:06 ` [PATCH v3 01/38] backlight/bd6107: Compare against struct fb_info.device Thomas Zimmermann
2023-06-13 11:06 ` [PATCH v3 03/38] backlight/gpio_backlight: " Thomas Zimmermann
@ 2023-06-13 11:06 ` Thomas Zimmermann
2023-06-13 11:06 ` [PATCH v3 14/38] fbdev/ep93xx-fb: Do not assign to struct fb_info.dev Thomas Zimmermann
3 siblings, 0 replies; 9+ messages in thread
From: Thomas Zimmermann @ 2023-06-13 11:06 UTC (permalink / raw)
To: daniel, javierm, sam, deller, geert+renesas, lee, daniel.thompson,
jingoohan1, dan.carpenter, michael.j.ruhl
Cc: linux-fbdev, dri-devel, linux-sh, linux-omap, linux-staging,
linux-kernel, Thomas Zimmermann, Laurent Pinchart, Yoshinori Sato,
Rich Felker, John Paul Adrian Glaubitz, stable
Struct lv5207lp_platform_data refers to a platform device within
the Linux device hierarchy. The test in lv5207lp_backlight_check_fb()
compares it against the fbdev device in struct fb_info.dev, which
is different. Fix the test by comparing to struct fb_info.device.
Fixes a bug in the backlight driver and prepares fbdev for making
struct fb_info.dev optional.
v2:
* move renames into separate patch (Javier, Sam, Michael)
Fixes: 82e5c40d88f9 ("backlight: Add Sanyo LV5207LP backlight driver")
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Lee Jones <lee@kernel.org>
Cc: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Jingoo Han <jingoohan1@gmail.com>
Cc: linux-sh@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v3.12+
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
---
drivers/video/backlight/lv5207lp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/backlight/lv5207lp.c b/drivers/video/backlight/lv5207lp.c
index 00673c8b66ac5..99ba4bc0a500d 100644
--- a/drivers/video/backlight/lv5207lp.c
+++ b/drivers/video/backlight/lv5207lp.c
@@ -67,7 +67,7 @@ static int lv5207lp_backlight_check_fb(struct backlight_device *backlight,
{
struct lv5207lp *lv = bl_get_data(backlight);
- return lv->pdata->fbdev == NULL || lv->pdata->fbdev == info->dev;
+ return lv->pdata->fbdev == NULL || lv->pdata->fbdev == info->device;
}
static const struct backlight_ops lv5207lp_backlight_ops = {
--
2.41.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v3 14/38] fbdev/ep93xx-fb: Do not assign to struct fb_info.dev
[not found] <20230613110953.24176-1-tzimmermann@suse.de>
` (2 preceding siblings ...)
2023-06-13 11:06 ` [PATCH v3 05/38] backlight/lv5207lp: " Thomas Zimmermann
@ 2023-06-13 11:06 ` Thomas Zimmermann
3 siblings, 0 replies; 9+ messages in thread
From: Thomas Zimmermann @ 2023-06-13 11:06 UTC (permalink / raw)
To: daniel, javierm, sam, deller, geert+renesas, lee, daniel.thompson,
jingoohan1, dan.carpenter, michael.j.ruhl
Cc: linux-fbdev, dri-devel, linux-sh, linux-omap, linux-staging,
linux-kernel, Thomas Zimmermann, stable
Do not assing the Linux device to struct fb_info.dev. The call to
register_framebuffer() initializes the field to the fbdev device.
Drivers should not override its value.
Fixes a bug where the driver incorrectly decreases the hardware
device's reference counter and leaks the fbdev device.
v2:
* add Fixes tag (Dan)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 88017bda96a5 ("ep93xx video driver")
Cc: <stable@vger.kernel.org> # v2.6.32+
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
---
drivers/video/fbdev/ep93xx-fb.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/video/fbdev/ep93xx-fb.c b/drivers/video/fbdev/ep93xx-fb.c
index f6cd200fe50ff..37309f9dbe828 100644
--- a/drivers/video/fbdev/ep93xx-fb.c
+++ b/drivers/video/fbdev/ep93xx-fb.c
@@ -474,7 +474,6 @@ static int ep93xxfb_probe(struct platform_device *pdev)
if (!info)
return -ENOMEM;
- info->dev = &pdev->dev;
platform_set_drvdata(pdev, info);
fbi = info->par;
fbi->mach_info = mach_info;
--
2.41.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v3 01/38] backlight/bd6107: Compare against struct fb_info.device
2023-06-13 11:06 ` [PATCH v3 01/38] backlight/bd6107: Compare against struct fb_info.device Thomas Zimmermann
@ 2023-06-14 13:51 ` Lee Jones
2023-06-14 14:13 ` Thomas Zimmermann
0 siblings, 1 reply; 9+ messages in thread
From: Lee Jones @ 2023-06-14 13:51 UTC (permalink / raw)
To: Thomas Zimmermann
Cc: daniel, javierm, sam, deller, geert+renesas, daniel.thompson,
jingoohan1, dan.carpenter, michael.j.ruhl, linux-fbdev, dri-devel,
linux-sh, linux-omap, linux-staging, linux-kernel,
Laurent Pinchart, stable
On Tue, 13 Jun 2023, Thomas Zimmermann wrote:
> Struct bd6107_platform_data refers to a platform device within
> the Linux device hierarchy. The test in bd6107_backlight_check_fb()
> compares it against the fbdev device in struct fb_info.dev, which
> is different. Fix the test by comparing to struct fb_info.device.
>
> Fixes a bug in the backlight driver and prepares fbdev for making
> struct fb_info.dev optional.
>
> v2:
> * move renames into separate patch (Javier, Sam, Michael)
>
> Fixes: 67b43e590415 ("backlight: Add ROHM BD6107 backlight driver")
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> Cc: Lee Jones <lee@kernel.org>
> Cc: Daniel Thompson <daniel.thompson@linaro.org>
> Cc: Jingoo Han <jingoohan1@gmail.com>
> Cc: dri-devel@lists.freedesktop.org
> Cc: <stable@vger.kernel.org> # v3.12+
> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
> ---
> drivers/video/backlight/bd6107.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Can the Backlight patches be applied without the others and visa versa?
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 01/38] backlight/bd6107: Compare against struct fb_info.device
2023-06-14 13:51 ` Lee Jones
@ 2023-06-14 14:13 ` Thomas Zimmermann
2023-06-16 14:37 ` Thomas Zimmermann
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Zimmermann @ 2023-06-14 14:13 UTC (permalink / raw)
To: Lee Jones
Cc: daniel, javierm, sam, deller, geert+renesas, daniel.thompson,
jingoohan1, dan.carpenter, michael.j.ruhl, linux-fbdev, dri-devel,
linux-sh, linux-omap, linux-staging, linux-kernel,
Laurent Pinchart, stable
[-- Attachment #1.1: Type: text/plain, Size: 1669 bytes --]
Hi
Am 14.06.23 um 15:51 schrieb Lee Jones:
> On Tue, 13 Jun 2023, Thomas Zimmermann wrote:
>
>> Struct bd6107_platform_data refers to a platform device within
>> the Linux device hierarchy. The test in bd6107_backlight_check_fb()
>> compares it against the fbdev device in struct fb_info.dev, which
>> is different. Fix the test by comparing to struct fb_info.device.
>>
>> Fixes a bug in the backlight driver and prepares fbdev for making
>> struct fb_info.dev optional.
>>
>> v2:
>> * move renames into separate patch (Javier, Sam, Michael)
>>
>> Fixes: 67b43e590415 ("backlight: Add ROHM BD6107 backlight driver")
>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
>> Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>> Cc: Lee Jones <lee@kernel.org>
>> Cc: Daniel Thompson <daniel.thompson@linaro.org>
>> Cc: Jingoo Han <jingoohan1@gmail.com>
>> Cc: dri-devel@lists.freedesktop.org
>> Cc: <stable@vger.kernel.org> # v3.12+
>> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
>> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
>> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
>> ---
>> drivers/video/backlight/bd6107.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Can the Backlight patches be applied without the others and visa versa?
Unfortunately not. The rest of the series requires the backlight patches.
Best regards
Thomas
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 01/38] backlight/bd6107: Compare against struct fb_info.device
2023-06-14 14:13 ` Thomas Zimmermann
@ 2023-06-16 14:37 ` Thomas Zimmermann
2023-06-19 8:31 ` Lee Jones
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Zimmermann @ 2023-06-16 14:37 UTC (permalink / raw)
To: Lee Jones
Cc: daniel.thompson, Laurent Pinchart, linux-kernel, geert+renesas,
linux-sh, jingoohan1, deller, linux-staging, javierm, dri-devel,
linux-fbdev, michael.j.ruhl, stable, linux-omap, sam,
dan.carpenter
[-- Attachment #1.1: Type: text/plain, Size: 567 bytes --]
Hi Lee
Am 14.06.23 um 16:13 schrieb Thomas Zimmermann:
[...]
>> Can the Backlight patches be applied without the others and visa versa?
>
> Unfortunately not. The rest of the series requires the backlight patches.
Are you OK with the patches going through drm?
Best regards
Thomas
>
> Best regards
> Thomas
>
>>
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 01/38] backlight/bd6107: Compare against struct fb_info.device
2023-06-16 14:37 ` Thomas Zimmermann
@ 2023-06-19 8:31 ` Lee Jones
2023-06-19 8:42 ` Thomas Zimmermann
0 siblings, 1 reply; 9+ messages in thread
From: Lee Jones @ 2023-06-19 8:31 UTC (permalink / raw)
To: Thomas Zimmermann
Cc: daniel.thompson, Laurent Pinchart, linux-kernel, geert+renesas,
linux-sh, jingoohan1, deller, linux-staging, javierm, dri-devel,
linux-fbdev, michael.j.ruhl, stable, linux-omap, sam,
dan.carpenter
On Fri, 16 Jun 2023, Thomas Zimmermann wrote:
> Hi Lee
>
> Am 14.06.23 um 16:13 schrieb Thomas Zimmermann:
> [...]
> > > Can the Backlight patches be applied without the others and visa versa?
> >
> > Unfortunately not. The rest of the series requires the backlight patches.
>
> Are you OK with the patches going through drm?
Shouldn't be an issue.
Please ensure my Ack is added to each patch, even if you have to RESEND.
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 01/38] backlight/bd6107: Compare against struct fb_info.device
2023-06-19 8:31 ` Lee Jones
@ 2023-06-19 8:42 ` Thomas Zimmermann
0 siblings, 0 replies; 9+ messages in thread
From: Thomas Zimmermann @ 2023-06-19 8:42 UTC (permalink / raw)
To: Lee Jones
Cc: daniel.thompson, Laurent Pinchart, linux-kernel, geert+renesas,
linux-sh, jingoohan1, deller, linux-staging, javierm, dri-devel,
linux-fbdev, michael.j.ruhl, stable, linux-omap, sam,
dan.carpenter
[-- Attachment #1.1: Type: text/plain, Size: 754 bytes --]
Am 19.06.23 um 10:31 schrieb Lee Jones:
> On Fri, 16 Jun 2023, Thomas Zimmermann wrote:
>
>> Hi Lee
>>
>> Am 14.06.23 um 16:13 schrieb Thomas Zimmermann:
>> [...]
>>>> Can the Backlight patches be applied without the others and visa versa?
>>>
>>> Unfortunately not. The rest of the series requires the backlight patches.
>>
>> Are you OK with the patches going through drm?
>
> Shouldn't be an issue.
>
> Please ensure my Ack is added to each patch, even if you have to RESEND.
>
Thank you so much.
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-06-19 8:44 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230613110953.24176-1-tzimmermann@suse.de>
2023-06-13 11:06 ` [PATCH v3 01/38] backlight/bd6107: Compare against struct fb_info.device Thomas Zimmermann
2023-06-14 13:51 ` Lee Jones
2023-06-14 14:13 ` Thomas Zimmermann
2023-06-16 14:37 ` Thomas Zimmermann
2023-06-19 8:31 ` Lee Jones
2023-06-19 8:42 ` Thomas Zimmermann
2023-06-13 11:06 ` [PATCH v3 03/38] backlight/gpio_backlight: " Thomas Zimmermann
2023-06-13 11:06 ` [PATCH v3 05/38] backlight/lv5207lp: " Thomas Zimmermann
2023-06-13 11:06 ` [PATCH v3 14/38] fbdev/ep93xx-fb: Do not assign to struct fb_info.dev Thomas Zimmermann
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).