[igt-dev] [PATCH i-g-t] lib/igt_edid_template: Fix parenthesis for vertical pulse coding

Paul Kocialkowski paul.kocialkowski at bootlin.com
Mon Jan 14 14:20:35 UTC 2019


Hi,

On Thu, 2019-01-03 at 17:54 +0100, Paul Kocialkowski wrote:
> Add missing parenthesis in the macro coding the vertical pulse high
> bits. Without them, the shift takes precedence over the logical and
> operation, which is not how these bits should be coded according to
> the spec.
> 
> Signed-off-by: Paul Kocialkowski <paul.kocialkowski at bootlin.com>

Looks like this patch was reviewed and CI-tested, so it should be ready
for inclusion. Would someone like to pick it up?

Thanks in advance!

Cheers,

Paul

> ---
>  lib/igt_edid_template.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/igt_edid_template.h b/lib/igt_edid_template.h
> index de421e080a88..8dbd19caea4c 100644
> --- a/lib/igt_edid_template.h
> +++ b/lib/igt_edid_template.h
> @@ -8,7 +8,7 @@
>  #define op(ho, hp, vo, vp) ((ho) & 0xff), ((hp) & 0xff), \
>  		(((vo) & 0xf) << 4) | ((vp) & 0xf), \
>  		(((ho) & 0x300) >> 2) | (((hp) & 0x300) >> 4) \
> -		| (((vo) & 0x30) >> 2) | ((vp) & 0x30 >> 4)
> +		| (((vo) & 0x30) >> 2) | (((vp) & 0x30) >> 4)
>  
>  static unsigned char EDID_NAME[EDID_LENGTH] = {
>  	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, /* header */
-- 
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com



More information about the igt-dev mailing list