X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fmmc%2Fhost.h;h=340cc0c9409fec53abf1ac08e11ec82139d06788;hb=7c8a2829c22a270acadc6aa3a937e2e7956b19f5;hp=1d09562ccf7394b2ae0a2cdf38cf52e17ccd53ec;hpb=7fd21be75dce605e7cf273bd64b6d733d422fb04;p=pandora-kernel.git diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 1d09562ccf73..340cc0c9409f 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -12,6 +12,7 @@ #include #include +#include #include #include @@ -108,6 +109,9 @@ struct mmc_host_ops { * It is optional for the host to implement pre_req and post_req in * order to support double buffering of requests (prepare one * request while another request is active). + * pre_req() must always be followed by a post_req(). + * To undo a call made to pre_req(), call post_req() with + * a nonzero err condition. */ void (*post_req)(struct mmc_host *host, struct mmc_request *req, int err); @@ -302,6 +306,10 @@ struct mmc_host { struct mmc_async_req *areq; /* active async req */ +#ifdef CONFIG_FAIL_MMC_REQUEST + struct fault_attr fail_mmc_request; +#endif + unsigned long private[0] ____cacheline_aligned; };