summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/sdio.c
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2015-10-08 12:10:51 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2015-10-09 14:02:06 -0700
commite0f875c336f792d4c2b0d09436426724ae14713e (patch)
tree91d833f67e072f4b6213c857fc3cbc02d56d77ee /drivers/staging/greybus/sdio.c
parent1575ef18aea40ab1f6915917901a80ca780188a6 (diff)
downloadlinux-e0f875c336f792d4c2b0d09436426724ae14713e.tar.bz2
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: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/sdio.c')
-rw-r--r--drivers/staging/greybus/sdio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c
index bfa1181074d6..ff68956108bf 100644
--- a/drivers/staging/greybus/sdio.c
+++ b/drivers/staging/greybus/sdio.c
@@ -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;
}