diff options
Diffstat (limited to 'include/linux/mmc/host.h')
| -rw-r--r-- | include/linux/mmc/host.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 0b2439441cc8..8bc884121465 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
| @@ -93,8 +93,7 @@ struct mmc_host_ops { | |||
| 93 | */ | 93 | */ |
| 94 | void (*post_req)(struct mmc_host *host, struct mmc_request *req, | 94 | void (*post_req)(struct mmc_host *host, struct mmc_request *req, |
| 95 | int err); | 95 | int err); |
| 96 | void (*pre_req)(struct mmc_host *host, struct mmc_request *req, | 96 | void (*pre_req)(struct mmc_host *host, struct mmc_request *req); |
| 97 | bool is_first_req); | ||
| 98 | void (*request)(struct mmc_host *host, struct mmc_request *req); | 97 | void (*request)(struct mmc_host *host, struct mmc_request *req); |
| 99 | 98 | ||
| 100 | /* | 99 | /* |
| @@ -173,7 +172,7 @@ struct mmc_async_req { | |||
| 173 | * Check error status of completed mmc request. | 172 | * Check error status of completed mmc request. |
| 174 | * Returns 0 if success otherwise non zero. | 173 | * Returns 0 if success otherwise non zero. |
| 175 | */ | 174 | */ |
| 176 | int (*err_check) (struct mmc_card *, struct mmc_async_req *); | 175 | enum mmc_blk_status (*err_check)(struct mmc_card *, struct mmc_async_req *); |
| 177 | }; | 176 | }; |
| 178 | 177 | ||
| 179 | /** | 178 | /** |
| @@ -198,14 +197,12 @@ struct mmc_slot { | |||
| 198 | * @is_new_req wake up reason was new request | 197 | * @is_new_req wake up reason was new request |
| 199 | * @is_waiting_last_req mmc context waiting for single running request | 198 | * @is_waiting_last_req mmc context waiting for single running request |
| 200 | * @wait wait queue | 199 | * @wait wait queue |
| 201 | * @lock lock to protect data fields | ||
| 202 | */ | 200 | */ |
| 203 | struct mmc_context_info { | 201 | struct mmc_context_info { |
| 204 | bool is_done_rcv; | 202 | bool is_done_rcv; |
| 205 | bool is_new_req; | 203 | bool is_new_req; |
| 206 | bool is_waiting_last_req; | 204 | bool is_waiting_last_req; |
| 207 | wait_queue_head_t wait; | 205 | wait_queue_head_t wait; |
| 208 | spinlock_t lock; | ||
| 209 | }; | 206 | }; |
| 210 | 207 | ||
| 211 | struct regulator; | 208 | struct regulator; |
| @@ -495,11 +492,6 @@ static inline int mmc_host_uhs(struct mmc_host *host) | |||
| 495 | MMC_CAP_UHS_DDR50); | 492 | MMC_CAP_UHS_DDR50); |
| 496 | } | 493 | } |
| 497 | 494 | ||
| 498 | static inline int mmc_host_packed_wr(struct mmc_host *host) | ||
| 499 | { | ||
| 500 | return host->caps2 & MMC_CAP2_PACKED_WR; | ||
| 501 | } | ||
| 502 | |||
| 503 | static inline int mmc_card_hs(struct mmc_card *card) | 495 | static inline int mmc_card_hs(struct mmc_card *card) |
| 504 | { | 496 | { |
| 505 | return card->host->ios.timing == MMC_TIMING_SD_HS || | 497 | return card->host->ios.timing == MMC_TIMING_SD_HS || |
| @@ -546,6 +538,11 @@ static inline void mmc_retune_recheck(struct mmc_host *host) | |||
| 546 | host->retune_now = 1; | 538 | host->retune_now = 1; |
| 547 | } | 539 | } |
| 548 | 540 | ||
| 541 | static inline bool mmc_can_retune(struct mmc_host *host) | ||
| 542 | { | ||
| 543 | return host->can_retune == 1; | ||
| 544 | } | ||
| 545 | |||
| 549 | void mmc_retune_pause(struct mmc_host *host); | 546 | void mmc_retune_pause(struct mmc_host *host); |
| 550 | void mmc_retune_unpause(struct mmc_host *host); | 547 | void mmc_retune_unpause(struct mmc_host *host); |
| 551 | 548 | ||
