Re: [PATCH 20/21] drm: mxsfb: Merge mxsfb_set_pixel_fmt() and mxsfb_set_bus_fmt()

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The mxsfb_set_pixel_fmt() and mxsfb_set_bus_fmt() functions both deal > with format configuration, are always called in a row from > mxsfb_crtc_mode_set_nofb(), and set fields from the LCDC_CTRL register. > This requires a read-modify-update cycle in m

[PATCH 20/21] drm: mxsfb: Merge mxsfb_set_pixel_fmt() and mxsfb_set_bus_fmt()

2020-03-09 Thread Laurent Pinchart
The mxsfb_set_pixel_fmt() and mxsfb_set_bus_fmt() functions both deal with format configuration, are always called in a row from mxsfb_crtc_mode_set_nofb(), and set fields from the LCDC_CTRL register. This requires a read-modify-update cycle in mxsfb_set_bus_fmt(). Make this more efficient by mergi