tnt submitted this change.

View Change


Approvals: Jenkins Builder: Verified tnt: Looks good to me, approved laforge: Looks good to me, but someone else must approve
icE1usb fw: fix usb cdc notification struct attributes

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: I7323c335c7cefe30446fb560b9381a3519b65f12
---
M firmware/ice40-riscv/icE1usb/usb_gps.c
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/firmware/ice40-riscv/icE1usb/usb_gps.c b/firmware/ice40-riscv/icE1usb/usb_gps.c
index 7ca89fd..f2b09b4 100644
--- a/firmware/ice40-riscv/icE1usb/usb_gps.c
+++ b/firmware/ice40-riscv/icE1usb/usb_gps.c
@@ -49,7 +49,7 @@
struct usb_cdc_notif_serial_state {
struct usb_ctrl_req hdr;
uint16_t bits;
-};
+} __attribute__((packed,aligned(4)));


static void

To view, visit change 36174. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-e1-hardware
Gerrit-Branch: master
Gerrit-Change-Id: I7323c335c7cefe30446fb560b9381a3519b65f12
Gerrit-Change-Number: 36174
Gerrit-PatchSet: 1
Gerrit-Owner: tnt <tnt@246tNt.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: tnt <tnt@246tNt.com>
Gerrit-MessageType: merged