edid: allow arbitrary-length checksums
commit5a4e88cf3b64c4a5c92e43a90260c34a6a52d011
authorKonstantin Nazarov <mail@knazarov.com>
Tue, 27 Apr 2021 15:08:23 +0000 (27 17:08 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 10 May 2021 09:41:02 +0000 (10 11:41 +0200)
treebd91e8450f1d3e71994146707dcc3a2193b53546
parent850dc61f5fd320a8d566b7da9365fd723511b7c3
edid: allow arbitrary-length checksums

Some of the EDID extensions like DisplayID do checksums of their
subsections. Currently checksums can be only applied to the whole
extension blocks which are 128 bytes.

This patch allows to checksum arbitrary parts of EDID, and not only
whole extension blocks.

Based-on: <20210303152948.59943-2-akihiko.odaki@gmail.com>
Signed-off-by: Konstantin Nazarov <mail@knazarov.com>
Message-Id: <20210315114639.91953-2-mail@knazarov.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20210427150824.638359-1-kraxel@redhat.com
Message-Id: <20210427150824.638359-8-kraxel@redhat.com>
hw/display/edid-generate.c