Commit e0f875c3 authored by Rui Miguel Silva's avatar Rui Miguel Silva Committed by Greg Kroah-Hartman

greybus: sdio: add field to get_caps response

Frequency maximum and minimum are needed to complete the configuration
of the controller. Add them to get_caps response operation.
Signed-off-by: default avatarRui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 1575ef18
...@@ -1002,6 +1002,8 @@ struct gb_sdio_get_caps_response { ...@@ -1002,6 +1002,8 @@ struct gb_sdio_get_caps_response {
__le32 ocr; __le32 ocr;
__le16 max_blk_count; __le16 max_blk_count;
__le16 max_blk_size; __le16 max_blk_size;
__le32 f_min;
__le32 f_max;
} __packed; } __packed;
/* set ios request: response has no payload */ /* set ios request: response has no payload */
......
...@@ -122,6 +122,10 @@ static int gb_sdio_get_caps(struct gb_sdio_host *host) ...@@ -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_sd = mmc->ocr_avail;
mmc->ocr_avail_mmc = 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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment