[PATCH v5 4/7] drm: sun4i: dsi: Add mode_set function
Jagan Teki
jagan at amarulasolutions.com
Mon Nov 22 13:51:57 UTC 2021
Hi Maxime,
On Mon, Nov 22, 2021 at 6:58 PM Maxime Ripard <maxime at cerno.tech> wrote:
>
> On Mon, Nov 22, 2021 at 06:35:58PM +0530, Jagan Teki wrote:
> > On Mon, Nov 22, 2021 at 3:38 PM Maxime Ripard <maxime at cerno.tech> wrote:
> > >
> > > On Mon, Nov 22, 2021 at 12:22:20PM +0530, Jagan Teki wrote:
> > > > Get the display mode settings via mode_set bridge function
> > > > instead of explicitly de-reference.
> > >
> > > What's wrong with dereferencing the mode?
> >
> > Nothing wrong with dereferencing, however we have built-in API to that job.
>
> That's not an API though?
May be we can call it bridge or encoding function, I usually call
these ops are API's.
>
> It's perfectly valid to dereference the pointer in atomic_enable, and
> that patch would consume memory for no particular reason.
Again, I'm not pointing any mistake in dereference and certainly not
understand about what memory consumption issue here. I'm doing it here
since I'm doing it via mode_set in other drivers. No problem for me
either way.
Thanks,
Jagan.
More information about the dri-devel
mailing list