From e12811eff7f9948d6cce661eef4a5910d747f194 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 29 Mar 2016 18:56:01 -0400 Subject: [PATCH] greybus: interface: fix es2 boot-status mask The ES2 boot status is stored in the least significant byte. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c index deb5b2641f4a..3b18f611f66d 100644 --- a/drivers/staging/greybus/interface.c +++ b/drivers/staging/greybus/interface.c @@ -60,7 +60,7 @@ static int gb_interface_read_and_clear_boot_status(struct gb_interface *intf) */ if (intf->ddbl1_manufacturer_id == ES2_DDBL1_MFR_ID && intf->ddbl1_product_id == ES2_DDBL1_PROD_ID) - init_status = value; + init_status = value & 0xff; else init_status = value >> 24; -- 2.20.1