]> git.karo-electronics.de Git - linux-beck.git/commitdiff
greybus: greybus_protocol: fix order of sdio get caps response
authorRui Miguel Silva <rui.silva@linaro.org>
Tue, 9 Aug 2016 22:35:34 +0000 (23:35 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 10 Aug 2016 10:00:32 +0000 (12:00 +0200)
Order of the field of the sdio get caps operation response were wrong,
that influence later the frequencies used by core, during normal
operation.

Tested: verified that the values inserted by the fw are the correct ones
for the field.

Suggested-by: Jackson Chang <jacksonc@bsquare.com>
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h

index 8484f05fc42708bac59ecdcabfb5611a5ca2517f..3082cbf3b1b2f0660feacfd6f4a5d4c639291138 100644 (file)
@@ -1540,10 +1540,10 @@ struct gb_sdio_get_caps_response {
 
        /* see possible values below at vdd */
        __le32 ocr;
-       __le16 max_blk_count;
-       __le16 max_blk_size;
        __le32 f_min;
        __le32 f_max;
+       __le16 max_blk_count;
+       __le16 max_blk_size;
 } __packed;
 
 /* set ios request: response has no payload */