drm/mxsfb: rename driver to mxsfb-drm
Subsystems (4)
Stefan Agner
maintainerPATCH 1/1 drm/mxsfb: rename driver to mxsfb-drm
There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...
Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.
--- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/mxsfb/mxsfb_drv.c +1 -1
@@ -424,7 +424,7 @@ static struct platform_driver mxsfb_platform_driver = { .remove = mxsfb_remove, .id_table = mxsfb_devtype, .driver = { - .name = "mxsfb", + .name = "mxsfb-drm", .of_match_table = mxsfb_dt_ids, }, };
Signature · 6 lines
2.17.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 8 lines · Stefan Agner
There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...
Quoted 4 lines
Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.
Signed-off-by Stefan Agner <[email protected]>
Yes, this driver name collision is annoying:
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Marek Vasut
maintainerQuoted 10 lines · Fabio Estevam
Quoted 8 lines · Stefan Agner
There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...
Quoted 9 lines
Quoted 4 lines
Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.
Signed-off-by Stefan Agner <[email protected]>Yes, this driver name collision is annoying:
Reviewed-by Fabio Estevam <[email protected]>
Why dont we just kill the old fbdev driver instead ?
Signature · 6 lines
Best regards, Marek Vasut _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Stefan Agner
maintainerQuoted 14 lines · Marek Vasut
Quoted 13 lines · Fabio Estevam
Quoted 11 lines · Stefan Agner
There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
Signed-off-by Stefan Agner <[email protected]>Yes, this driver name collision is annoying:
Reviewed-by Fabio Estevam <[email protected]>Why dont we just kill the old fbdev driver instead ?
The config is outside of my direct control, it's a distro kernel...
Or what do you mean exactly? Send a patch to remove the fbdev driver?
--
Stefan
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Marek Vasut
maintainerQuoted 19 lines · Stefan Agner
Quoted 18 lines · Marek Vasut
Quoted 17 lines · Fabio Estevam
Quoted 8 lines · Stefan Agner
There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...Quoted 4 lines
Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.
Signed-off-by Stefan Agner <[email protected]>Yes, this driver name collision is annoying:
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
Reviewed-by Fabio Estevam <[email protected]>Why dont we just kill the old fbdev driver instead ?
The config is outside of my direct control, it's a distro kernel...
Or what do you mean exactly? Send a patch to remove the fbdev driver?
Yes, remove the fbdev driver.
Signature · 6 lines
Best regards, Marek Vasut _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Stefan Agner
maintainer[adding Sascha and Bartlomiej]
Quoted 22 lines · Marek Vasut
Quoted 21 lines · Stefan Agner
Quoted 20 lines · Marek Vasut
Quoted 19 lines · Fabio Estevam
Quoted 8 lines · Stefan Agner
There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...Quoted 4 lines
Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.
Signed-off-by Stefan Agner <[email protected]>Yes, this driver name collision is annoying:
Reviewed-by Fabio Estevam <[email protected]>
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Why dont we just kill the old fbdev driver instead ?
The config is outside of my direct control, it's a distro kernel...
Or what do you mean exactly? Send a patch to remove the fbdev driver?
Yes, remove the fbdev driver.
Hm, forcing people to use the DRM driver with fbdev emulation is probably fine for most use cases. Currently you cannot use the fbdev ioctrl to change modes/settings to the framebuffer which is probably the only restriction...
It seems to me a rather extreme measure though, given we could fix the situation rather easily.
But I am ok to remove the fbdev driver, if that is what we want.
--
Stefan
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Fabio Estevam
reviewerQuoted 2 lines · Stefan Agner
It seems to me a rather extreme measure though, given we could fix the situation rather easily.
There are dtb's using the fbdev mxsfb driver like for example:arch/arm/boot/dts/imx28-evk.dts
If we kill the fbdev mxsfb driver then the display will stop working for some users and I don't think they will be happy.
Last time I tried it was not possible to use the original fbdev mxsfb bindings with the new drm driver.
Of course we can convert to the drm mxsfb driver, but IMHO we should avoid functional breakage all of a sudden.
In the meantime Stefan's patch seems to be a good approach.
_______________________________________________
dri-devel mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Marek Vasut
maintainerQuoted 10 lines · Fabio Estevam
Quoted 2 lines · Stefan Agner
It seems to me a rather extreme measure though, given we could fix the situation rather easily.
There are dtb's using the fbdev mxsfb driver like for example:
arch/arm/boot/dts/imx28-evk.dtsIf we kill the fbdev mxsfb driver then the display will stop working for some users and I don't think they will be happy.
Maybe it's time to fix them ?
Having two drivers for the same hardware in the kernel is a bad idea and the new driver was in the kernel for long enough for the user of the old deprecated bindings migrated over I think.
Quoted 5 lines
Last time I tried it was not possible to use the original fbdev mxsfb bindings with the new drm driver.
Of course we can convert to the drm mxsfb driver, but IMHO we should avoid functional breakage all of a sudden.
The driver was in the kernel for over a year now though, so it's not new and sudden anymore.
Quoted 2 lines
In the meantime Stefan's patch seems to be a good approach.
Signature · 6 lines
Best regards, Marek Vasut _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel