diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2015-10-08 14:10:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-10-10 00:02:06 +0300 |
commit | e0f875c336f792d4c2b0d09436426724ae14713e (patch) | |
tree | 91d833f67e072f4b6213c857fc3cbc02d56d77ee /drivers/staging/greybus/sdio.c | |
parent | 1575ef18aea40ab1f6915917901a80ca780188a6 (diff) | |
download | linux-e0f875c336f792d4c2b0d09436426724ae14713e.tar.xz |
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.c | 4 |
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; } |