[PATCH] drm/udl: Bugfix in EDID reading routine

Robert Tarasov tutankhamen at chromium.org
Wed Mar 13 01:05:28 UTC 2019


I've already submitted the new one.

On Tue, Mar 12, 2019 at 1:02 AM Jani Nikula <jani.nikula at linux.intel.com>
wrote:

> On Mon, 11 Mar 2019, Robert Tarasov <tutankhamen at chromium.org> wrote:
> > Yes, you're right. Will prepare another patch which will use
> > drm_do_get_edid()
>
> Oh, you might want to have this patch first with cc: stable and all
> that, and do the cleanup afterwards.
>
> BR,
> Jani.
>
>
> >
> > On Mon, Mar 11, 2019 at 4:33 AM Jani Nikula <jani.nikula at linux.intel.com
> >
> > wrote:
> >
> >> On Fri, 08 Mar 2019, Robert Tarasov <tutankhamen at chromium.org> wrote:
> >> > Fixed bug with reading of last EDID extra block in drm/udl driver.
> >> > Previouse approach read all the blocks except the last one.
> >> >
> >> > Signed-off-by: Robert Tarasov <tutankhamen at chromium.org>
> >> > ---
> >> >  drivers/gpu/drm/udl/udl_connector.c | 2 +-
> >> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >> >
> >> > diff --git a/drivers/gpu/drm/udl/udl_connector.c
> >> b/drivers/gpu/drm/udl/udl_connector.c
> >> > index c3dc1fd20cb4..68b221b9a01f 100644
> >> > --- a/drivers/gpu/drm/udl/udl_connector.c
> >> > +++ b/drivers/gpu/drm/udl/udl_connector.c
> >> > @@ -70,7 +70,7 @@ static bool udl_get_edid(struct udl_device *udl, u8
> >> **result_buff,
> >> >                       memcpy(buff_ptr, block_buff, EDID_LENGTH);
> >> >                       kfree(block_buff);
> >> >                       buff_ptr += EDID_LENGTH;
> >> > -                     for (i = 1; i < extensions; ++i) {
> >> > +                     for (i = 1; i <= extensions; ++i) {
> >> >                               if (udl_get_edid_block(udl, i,
> buff_ptr)) {
> >> >                                       buff_ptr += EDID_LENGTH;
> >> >                               } else {
> >>
> >> Ugh. Why doesn't udl use drm_do_get_edid()?
> >>
> >> BR,
> >> Jani.
> >>
> >>
> >> --
> >> Jani Nikula, Intel Open Source Graphics Center
> >>
>
> --
> Jani Nikula, Intel Open Source Graphics Center
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190312/d0a52aae/attachment-0001.html>


More information about the dri-devel mailing list