]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
greybus: sdio: add field to get_caps response
authorRui Miguel Silva <rui.silva@linaro.org>
Thu, 8 Oct 2015 11:10:51 +0000 (12:10 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 9 Oct 2015 21:02:06 +0000 (14:02 -0700)
Frequency maximum and minimum are needed to complete the configuration
of the controller. Add them to get_caps response operation.

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
drivers/staging/greybus/sdio.c

index dbf409fa16f352168142d0f264a0c8b145487651..44a213377cbe76db8e6ffc0d92b8c025d58de42c 100644 (file)
@@ -1002,6 +1002,8 @@ struct gb_sdio_get_caps_response {
        __le32 ocr;
        __le16 max_blk_count;
        __le16 max_blk_size;
+       __le32 f_min;
+       __le32 f_max;
 } __packed;
 
 /* set ios request: response has no payload */
index bfa1181074d670cd3645706a98f91f90061e9cc8..ff68956108bf22a3e85ef3924e9db06ef2848d03 100644 (file)
@@ -122,6 +122,10 @@ static int gb_sdio_get_caps(struct gb_sdio_host *host)
        mmc->ocr_avail_sd = mmc->ocr_avail;
        mmc->ocr_avail_mmc = mmc->ocr_avail;
 
+       /* get frequency range values */
+       mmc->f_min = le32_to_cpu(response.f_min);
+       mmc->f_max = le32_to_cpu(response.f_max);
+
        return 0;
 }