forked from Minki/linux
mmc: update kerneldoc
Make sure the kerneldoc comments are up to date and relevant. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
This commit is contained in:
parent
70f10482c6
commit
67a61c4847
@ -140,7 +140,16 @@ static void mmc_wait_done(struct mmc_request *mrq)
|
|||||||
complete(mrq->done_data);
|
complete(mrq->done_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
int mmc_wait_for_req(struct mmc_host *host, struct mmc_request *mrq)
|
/**
|
||||||
|
* mmc_wait_for_req - start a request and wait for completion
|
||||||
|
* @host: MMC host to start command
|
||||||
|
* @mrq: MMC request to start
|
||||||
|
*
|
||||||
|
* Start a new MMC custom command request for a host, and wait
|
||||||
|
* for the command to complete. Does not attempt to parse the
|
||||||
|
* response.
|
||||||
|
*/
|
||||||
|
void mmc_wait_for_req(struct mmc_host *host, struct mmc_request *mrq)
|
||||||
{
|
{
|
||||||
DECLARE_COMPLETION_ONSTACK(complete);
|
DECLARE_COMPLETION_ONSTACK(complete);
|
||||||
|
|
||||||
@ -150,8 +159,6 @@ int mmc_wait_for_req(struct mmc_host *host, struct mmc_request *mrq)
|
|||||||
mmc_start_request(host, mrq);
|
mmc_start_request(host, mrq);
|
||||||
|
|
||||||
wait_for_completion(&complete);
|
wait_for_completion(&complete);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_SYMBOL(mmc_wait_for_req);
|
EXPORT_SYMBOL(mmc_wait_for_req);
|
||||||
@ -192,6 +199,9 @@ EXPORT_SYMBOL(mmc_wait_for_cmd);
|
|||||||
* @data: data phase for command
|
* @data: data phase for command
|
||||||
* @card: the MMC card associated with the data transfer
|
* @card: the MMC card associated with the data transfer
|
||||||
* @write: flag to differentiate reads from writes
|
* @write: flag to differentiate reads from writes
|
||||||
|
*
|
||||||
|
* Computes the data timeout parameters according to the
|
||||||
|
* correct algorithm given the card type.
|
||||||
*/
|
*/
|
||||||
void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card,
|
void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card,
|
||||||
int write)
|
int write)
|
||||||
@ -240,15 +250,10 @@ void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card,
|
|||||||
EXPORT_SYMBOL(mmc_set_data_timeout);
|
EXPORT_SYMBOL(mmc_set_data_timeout);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* __mmc_claim_host - exclusively claim a host
|
* mmc_claim_host - exclusively claim a host
|
||||||
* @host: mmc host to claim
|
* @host: mmc host to claim
|
||||||
* @card: mmc card to claim host for
|
|
||||||
*
|
*
|
||||||
* Claim a host for a set of operations. If a valid card
|
* Claim a host for a set of operations.
|
||||||
* is passed and this wasn't the last card selected, select
|
|
||||||
* the card before returning.
|
|
||||||
*
|
|
||||||
* Note: you should use mmc_card_claim_host or mmc_claim_host.
|
|
||||||
*/
|
*/
|
||||||
void mmc_claim_host(struct mmc_host *host)
|
void mmc_claim_host(struct mmc_host *host)
|
||||||
{
|
{
|
||||||
@ -498,8 +503,10 @@ void __mmc_release_bus(struct mmc_host *host)
|
|||||||
* @host: host which changed state.
|
* @host: host which changed state.
|
||||||
* @delay: optional delay to wait before detection (jiffies)
|
* @delay: optional delay to wait before detection (jiffies)
|
||||||
*
|
*
|
||||||
* All we know is that card(s) have been inserted or removed
|
* MMC drivers should call this when they detect a card has been
|
||||||
* from the socket(s). We don't know which socket or cards.
|
* inserted or removed. The MMC layer will confirm that any
|
||||||
|
* present card is still functional, and initialize any newly
|
||||||
|
* inserted.
|
||||||
*/
|
*/
|
||||||
void mmc_detect_change(struct mmc_host *host, unsigned long delay)
|
void mmc_detect_change(struct mmc_host *host, unsigned long delay)
|
||||||
{
|
{
|
||||||
|
@ -93,6 +93,10 @@ EXPORT_SYMBOL(mmc_alloc_host);
|
|||||||
/**
|
/**
|
||||||
* mmc_add_host - initialise host hardware
|
* mmc_add_host - initialise host hardware
|
||||||
* @host: mmc host
|
* @host: mmc host
|
||||||
|
*
|
||||||
|
* Register the host with the driver model. The host must be
|
||||||
|
* prepared to start servicing requests before this function
|
||||||
|
* completes.
|
||||||
*/
|
*/
|
||||||
int mmc_add_host(struct mmc_host *host)
|
int mmc_add_host(struct mmc_host *host)
|
||||||
{
|
{
|
||||||
@ -126,7 +130,8 @@ EXPORT_SYMBOL(mmc_add_host);
|
|||||||
* @host: mmc host
|
* @host: mmc host
|
||||||
*
|
*
|
||||||
* Unregister and remove all cards associated with this host,
|
* Unregister and remove all cards associated with this host,
|
||||||
* and power down the MMC bus.
|
* and power down the MMC bus. No new requests will be issued
|
||||||
|
* after this function has returned.
|
||||||
*/
|
*/
|
||||||
void mmc_remove_host(struct mmc_host *host)
|
void mmc_remove_host(struct mmc_host *host)
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
* mmc_wait_for_app_cmd - start an application command and wait for
|
* mmc_wait_for_app_cmd - start an application command and wait for
|
||||||
completion
|
completion
|
||||||
* @host: MMC host to start command
|
* @host: MMC host to start command
|
||||||
* @rca: RCA to send MMC_APP_CMD to
|
* @card: Card to send MMC_APP_CMD to
|
||||||
* @cmd: MMC command to start
|
* @cmd: MMC command to start
|
||||||
* @retries: maximum number of retries
|
* @retries: maximum number of retries
|
||||||
*
|
*
|
||||||
|
@ -99,7 +99,7 @@ struct mmc_request {
|
|||||||
struct mmc_host;
|
struct mmc_host;
|
||||||
struct mmc_card;
|
struct mmc_card;
|
||||||
|
|
||||||
extern int mmc_wait_for_req(struct mmc_host *, struct mmc_request *);
|
extern void mmc_wait_for_req(struct mmc_host *, struct mmc_request *);
|
||||||
extern int mmc_wait_for_cmd(struct mmc_host *, struct mmc_command *, int);
|
extern int mmc_wait_for_cmd(struct mmc_host *, struct mmc_command *, int);
|
||||||
extern int mmc_wait_for_app_cmd(struct mmc_host *, struct mmc_card *,
|
extern int mmc_wait_for_app_cmd(struct mmc_host *, struct mmc_card *,
|
||||||
struct mmc_command *, int);
|
struct mmc_command *, int);
|
||||||
|
Loading…
Reference in New Issue
Block a user