[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190711193855.GB5912@ravnborg.org>
Date: Thu, 11 Jul 2019 21:38:55 +0200
From: Sam Ravnborg <sam@...nborg.org>
To: Doug Anderson <dianders@...omium.org>
Cc: Thierry Reding <thierry.reding@...il.com>,
Heiko Stuebner <heiko@...ech.de>,
Sean Paul <seanpaul@...omium.org>, devicetree@...r.kernel.org,
Rob Herring <robh+dt@...nel.org>,
David Airlie <airlied@...ux.ie>,
Jeffy Chen <jeffy.chen@...k-chips.com>,
dri-devel <dri-devel@...ts.freedesktop.org>,
LKML <linux-kernel@...r.kernel.org>,
"open list:ARM/Rockchip SoC..." <linux-rockchip@...ts.infradead.org>,
Boris Brezillon <boris.brezillon@...labora.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Enric Balletbò <enric.balletbo@...labora.com>,
Stéphane Marchesin <marcheu@...omium.org>,
Ezequiel Garcia <ezequiel@...labora.com>,
Matthias Kaehlcke <mka@...omium.org>
Subject: Re: [PATCH v5 2/7] drm/panel: simple: Add ability to override
typical timing
Hi Doug.
> > > > > @@ -91,6 +92,8 @@ struct panel_simple {
> > > > > struct i2c_adapter *ddc;
> > > > >
> > > > > struct gpio_desc *enable_gpio;
> > > > > +
> > > > > + struct drm_display_mode override_mode;
> > > > I fail to see where this poiter is assigned.
> > >
> > > In panel_simple_parse_override_mode(). Specifically:
> > >
> > > drm_display_mode_from_videomode(&vm, &panel->override_mode);
> >
> > The above code-snippet is only called in the panel has specified display
> > timings using display_timings - it is not called when display_mode is
> > used.
> > So override_mode is only assigned in some cases and not all cases.
> > This needs to be fixed so we do not reference override_mode unless
> > it is set.
>
> I'm afraid I'm not following you here.
>
> * override_mode is a structure that's directly part of "struct panel_simple".
I had somehow confused myself to think this was a pointer.
And you are right that override_mode is properly initialized when the
structure is allocated.
Sorry for not reading the code and your replies carefully enough.
Sam
Powered by blists - more mailing lists