ACPI: video: Handle fetching EDID that is longer than 256 bytes
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 1 Feb 2024 22:11:15 +0000 (16:11 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Feb 2024 13:03:47 +0000 (14:03 +0100)
commit5d389afc1f8fea707225bc2ee64e00d85dab623a
treee47bae68760b0d7cf1942d22bf82020df7bdb5fc
parent54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478
ACPI: video: Handle fetching EDID that is longer than 256 bytes

The ACPI specification allows for an EDID to be up to 512 bytes but
the _DDC EDID fetching code will only try up to 256 bytes.

Modify the code to instead start at 512 bytes and work it's way
down instead.

As _DDC is now called up to 4 times on a machine debugging messages
are noisier than necessary.  Decrease from info to debug.

Link: https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/Apx_B_Video_Extensions/output-device-specific-methods.html#ddc-return-the-edid-for-this-device
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
[ rjw: Type mismatch fix, minor whitespace adjustment ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_video.c