Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b49f184b authored by Ben Collins's avatar Ben Collins Committed by Bernie Thompson
Browse files

udlfb: Make sure to get correct endian keys from vendor descriptor



The driver was not using le16_to_cpu when reading keys from the vendor
descriptor, causing incorrect parsing. Mainly, sku_pixel_limit was not
being parsed on big-endian systems. This would result in a blank screen
on big-endian CPUs where the DL chips's max mode was smaller than the
monitor's native mode.

Signed-off-by: default avatarBen Collins <bcollins@ubuntu.com>
Signed-off-by: default avatarBernie Thompson <bernie@plugable.com>
parent 8d21547d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1541,7 +1541,7 @@ static int dlfb_parse_vendor_descriptor(struct dlfb_data *dev,
			u8 length;
			u16 key;

			key = *((u16 *) desc);
			key = le16_to_cpu(*((u16 *) desc));
			desc += sizeof(u16);
			length = *desc;
			desc++;