]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
greybus: loopback: Add reserved fields to transfer request
authorAxel Haslam <ahaslam@baylibre.com>
Wed, 10 Feb 2016 13:19:29 +0000 (14:19 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 17 Feb 2016 03:24:23 +0000 (19:24 -0800)
All loopback transfer operations should have an identical header
format in order to facilitate bandwidth and data movement analysis.

Suggested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h

index cd64ac84dad2388c105a1ec98030276f812a960e..6b192924a566adde43a993ac4f4dfc3a43fcc09f 100644 (file)
@@ -1053,8 +1053,14 @@ struct gb_uart_serial_state_request {
 #define GB_LOOPBACK_TYPE_TRANSFER              0x03
 #define GB_LOOPBACK_TYPE_SINK                  0x04
 
+/*
+ * Loopback request/response header format should be identical
+ * to simplify bandwidth and data movement analysis.
+ */
 struct gb_loopback_transfer_request {
        __le32  len;
+       __le32  reserved0;
+       __le32  reserved1;
        __u8    data[0];
 } __packed;