From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/edid: Use block local to refer to the block
Date: Mon, 17 Oct 2016 14:28:57 +0200 [thread overview]
Message-ID: <20161017122857.GI20761@phenom.ffwll.local> (raw)
In-Reply-To: <20161017083514.21772-2-chris@chris-wilson.co.uk>
On Mon, Oct 17, 2016 at 09:35:13AM +0100, Chris Wilson wrote:
> Now that we have the name "block" free once more, we can use it to point
> to the start of a block within the edid.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Merged the 2 prep patches to drm-misc for now. I'll wait with 3/3 until
you&Ville reach some agreement.
Thanks, Daniel
> ---
> drivers/gpu/drm/drm_edid.c | 12 +++++-------
> 1 file changed, 5 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
> index 3b4ac28f509e..95de47ba1e77 100644
> --- a/drivers/gpu/drm/drm_edid.c
> +++ b/drivers/gpu/drm/drm_edid.c
> @@ -1313,15 +1313,13 @@ struct edid *drm_do_get_edid(struct drm_connector *connector,
> edid = new;
>
> for (j = 1; j <= edid[0x7e]; j++) {
> + u8 *block = edid + (valid_extensions + 1) * EDID_LENGTH;
> +
> for (i = 0; i < 4; i++) {
> - if (get_edid_block(data,
> - edid + (valid_extensions + 1) * EDID_LENGTH,
> - j, EDID_LENGTH))
> + if (get_edid_block(data, block, j, EDID_LENGTH))
> goto out;
> - if (drm_edid_block_valid(edid + (valid_extensions + 1)
> - * EDID_LENGTH, j,
> - print_bad_edid,
> - NULL)) {
> + if (drm_edid_block_valid(block, j,
> + print_bad_edid, NULL)) {
> valid_extensions++;
> break;
> }
> --
> 2.9.3
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-10-17 12:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-13 19:43 [PATCH] drm/edid: Only print the bad edid when aborting Chris Wilson
2016-10-13 20:20 ` ✗ Fi.CI.BAT: warning for " Patchwork
2016-10-14 6:07 ` Saarinen, Jani
2016-10-14 10:46 ` [PATCH] " Ville Syrjälä
2016-10-14 10:59 ` Chris Wilson
2016-10-17 6:19 ` Daniel Vetter
2016-10-17 8:35 ` [PATCH 1/3] drm/edid: Rename local variable block to edid Chris Wilson
2016-10-17 8:35 ` [PATCH 2/3] drm/edid: Use block local to refer to the block Chris Wilson
2016-10-17 12:28 ` Daniel Vetter [this message]
2016-10-17 8:35 ` [PATCH 3/3] drm/edid: Only print the bad edid when aborting Chris Wilson
2016-10-17 11:07 ` Ville Syrjälä
2016-10-24 11:33 ` [PATCH v2] " Chris Wilson
2016-10-24 11:36 ` Chris Wilson
2016-10-24 11:38 ` [PATCH v3] " Chris Wilson
2016-10-24 18:48 ` Sean Paul
2016-10-24 12:46 ` ✗ Fi.CI.BAT: warning for drm/edid: Only print the bad edid when aborting (rev3) Patchwork
2016-10-24 12:58 ` Saarinen, Jani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161017122857.GI20761@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=chris@chris-wilson.co.uk \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.