From b49f184b640dcfab7ede394cf2a1ff4fe3d154f5 Mon Sep 17 00:00:00 2001 From: Ben Collins Date: Sat, 3 Mar 2012 12:43:27 -0800 Subject: [PATCH] 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: Ben Collins Signed-off-by: Bernie Thompson --- drivers/video/udlfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c index cbf030d0dfc..4330cf4b17a 100644 --- a/drivers/video/udlfb.c +++ b/drivers/video/udlfb.c @@ -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++; -- 2.39.5