efi/bgrt: Accept BGRT tables with a version of 0
commit55087c5713dcf1c6279d223e380cc79f8f9b4f23
authorHans de Goede <hdegoede@redhat.com>
Fri, 31 Jan 2020 13:06:23 +0000 (31 14:06 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sat, 22 Feb 2020 22:37:37 +0000 (22 23:37 +0100)
tree1b49bc6bc2fad35037655701fd334b2cf340b264
parentf32ea1cd124c9a8b847e33123d156cb55699fa51
efi/bgrt: Accept BGRT tables with a version of 0

Some (somewhat older) laptops have a correct BGRT table, except that the
version field is 0 instead of 1.

This has been seen on several Ivy Bridge based Lenovo models.

For now the spec. only defines version 1, so it is reasonably safe to
assume that tables with a version of 0 really are version 1 too,
which is what this commit does so that the BGRT table will be accepted
by the kernel on laptop models with this issue.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200131130623.33875-1-hdegoede@redhat.com
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efi-bgrt.c