Message ID | 20230612141352.29939-1-tzimmermann@suse.de |
---|---|
Headers | show |
Series | fbdev: Make userspace interfaces optional | expand |
Hi Thomas, On Mon, Jun 12, 2023 at 04:07:59PM +0200, Thomas Zimmermann wrote: > The driver's backlight code requires the framebuffer to be > registered. Therefore reorder the cleanup calls for both data > structures. The init calls are already in the correct order. > > Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> > Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> > Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> > --- > drivers/video/fbdev/aty/radeon_base.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/video/fbdev/aty/radeon_base.c b/drivers/video/fbdev/aty/radeon_base.c > index 972c4bbedfa36..8f2a527c26ebf 100644 > --- a/drivers/video/fbdev/aty/radeon_base.c > +++ b/drivers/video/fbdev/aty/radeon_base.c > @@ -2517,9 +2517,8 @@ static void radeonfb_pci_unregister(struct pci_dev *pdev) > > del_timer_sync(&rinfo->lvds_timer); > arch_phys_wc_del(rinfo->wc_cookie); > - unregister_framebuffer(info); > - > radeonfb_bl_exit(rinfo); > + unregister_framebuffer(info); > > iounmap(rinfo->mmio_base); > iounmap(rinfo->fb_base); The mix of spaces and tabs for indent looks strange in the diff. Consider to use the style of the surrounding code if you are going to refresh the patch-set. Sam
Sam Ravnborg <sam@ravnborg.org> writes: Hello Sam, > Hi Thomas, > > Nice series, quite some preparations. > > On Mon, Jun 12, 2023 at 04:07:38PM +0200, Thomas Zimmermann wrote: [...] >> fbdev/smscufx: Detect registered fb_info from refcount > I did not try to understand the code, so others must review. > No worries, I already reviewed that one. >> fbdev/ep93xx-fb: Alloc DMA memory from hardware device >> fbdev/sh7760fb: Alloc DMA memory from hardware device > This smells like bug-fixes, and I do not see what impact the change has. > So again, someone else needs to provide review here. > And same for these.
On Mon, Jun 12, 2023 at 04:07:40PM +0200, Thomas Zimmermann wrote: > Rename struct bd6107_platform_data.fbdev to 'dev', as it stores a > pointer to the Linux platform device; not the fbdev device. Makes > the code easier to understand. > > Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> > Cc: Lee Jones <lee@kernel.org> > Cc: Daniel Thompson <daniel.thompson@linaro.org> > Cc: Jingoo Han <jingoohan1@gmail.com> > Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Daniel.
On Mon, Jun 12, 2023 at 04:07:41PM +0200, Thomas Zimmermann wrote: > 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: Daniel Thompson <daniel.thompson@linaro.org> Daniel.
On Mon, Jun 12, 2023 at 04:07:44PM +0200, Thomas Zimmermann wrote: > Rename struct lv5207lp_platform_data.fbdev to 'dev', as it stores a > pointer to the Linux platform device; not the fbdev device. Makes > the code easier to understand. > > Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> > 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 > Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Daniel.
Hi Sam and Javier Am 12.06.23 um 18:04 schrieb Javier Martinez Canillas: > Sam Ravnborg <sam@ravnborg.org> writes: > > Hello Sam, > >> Hi Thomas, >> >> Nice series, quite some preparations. >> >> On Mon, Jun 12, 2023 at 04:07:38PM +0200, Thomas Zimmermann wrote: > > [...] > >>> fbdev/smscufx: Detect registered fb_info from refcount >> I did not try to understand the code, so others must review. >> > > No worries, I already reviewed that one. > >>> fbdev/ep93xx-fb: Alloc DMA memory from hardware device >>> fbdev/sh7760fb: Alloc DMA memory from hardware device >> This smells like bug-fixes, and I do not see what impact the change has. >> So again, someone else needs to provide review here. >> > > And same for these. > Thanks to both of you for reviewing the patches. Best regards Thomas