From: Rui Miguel Silva Date: Thu, 8 Oct 2015 11:10:51 +0000 (+0100) Subject: greybus: sdio: add field to get_caps response X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1149 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=e0f875c336f792d4c2b0d09436426724ae14713e;p=linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index dbf409fa16f3..44a213377cbe 100644 --- a/drivers/staging/greybus/greybus_protocols.h +++ b/drivers/staging/greybus/greybus_protocols.h @@ -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 */ 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; }