]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
greybus: sdio: add need poll to host caps
authorRui Miguel Silva <rui.silva@linaro.org>
Thu, 2 Jul 2015 18:11:36 +0000 (19:11 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 6 Jul 2015 18:15:42 +0000 (11:15 -0700)
As we do not have, yet, a event callback to notify core about changes
we add the MMC_CAP_NEEDS_POLL capability to the rest of the caps
received from the module.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/sdio.c

index 544dbda82460a81a06d99720a9d696a3461af33e..33d5fe69ed63c96c487d10952ac1dfaff5e5aee1 100644 (file)
@@ -85,7 +85,7 @@ static void _gb_sdio_set_host_caps(struct gb_sdio_host *host, u32 r)
 #endif
                (r & GB_SDIO_CAP_HS200_1_8V ? MMC_CAP2_HS200_1_8V_SDR : 0);
 
-       host->mmc->caps = caps;
+       host->mmc->caps = caps | MMC_CAP_NEEDS_POLL;
        host->mmc->caps2 = caps2;
 
        if (caps & MMC_CAP_NONREMOVABLE)