From: Johan Hovold Date: Tue, 29 Mar 2016 22:56:01 +0000 (-0400) Subject: greybus: interface: fix es2 boot-status mask X-Git-Tag: v4.14-rc1~2366^2~378^2~21^2~563 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e12811eff7f9948d6cce661eef4a5910d747f194;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c index deb5b26..3b18f61 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;