projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2d8090
)
greybus: interface: fix es2 boot-status mask
author
Johan Hovold
<johan@hovoldconsulting.com>
Tue, 29 Mar 2016 22:56:01 +0000
(18:56 -0400)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Wed, 30 Mar 2016 21:17:40 +0000
(14:17 -0700)
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>
drivers/staging/greybus/interface.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/interface.c
b/drivers/staging/greybus/interface.c
index
deb5b26
..
3b18f61
100644
(file)
--- 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;