diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-03-29 18:56:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-03-30 14:17:40 -0700 |
commit | e12811eff7f9948d6cce661eef4a5910d747f194 (patch) | |
tree | 05aa9d24c3e9d1ac472223bd20048033dd5d758e /drivers/staging/greybus/interface.c | |
parent | c2d80906fbe529ee4b1963bf83d84e53e02e44c2 (diff) | |
download | op-kernel-dev-e12811eff7f9948d6cce661eef4a5910d747f194.zip op-kernel-dev-e12811eff7f9948d6cce661eef4a5910d747f194.tar.gz |
greybus: interface: fix es2 boot-status mask
The ES2 boot status is stored in the least significant byte.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/interface.c')
-rw-r--r-- | drivers/staging/greybus/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |