You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
mmc: mmc: Move mmc_switch_status()
Move the mmc_switch_status() function in preparation for calling it in mmc_select_hs400(). Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: <stable@vger.kernel.org> # 4.2+ Tested-by: Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
committed by
Ulf Hansson
parent
51b12f7764
commit
974007aaf2
+13
-13
@@ -1040,6 +1040,19 @@ static int mmc_select_hs_ddr(struct mmc_card *card)
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Caller must hold re-tuning */
|
||||||
|
static int mmc_switch_status(struct mmc_card *card)
|
||||||
|
{
|
||||||
|
u32 status;
|
||||||
|
int err;
|
||||||
|
|
||||||
|
err = mmc_send_status(card, &status);
|
||||||
|
if (err)
|
||||||
|
return err;
|
||||||
|
|
||||||
|
return mmc_switch_status_error(card->host, status);
|
||||||
|
}
|
||||||
|
|
||||||
static int mmc_select_hs400(struct mmc_card *card)
|
static int mmc_select_hs400(struct mmc_card *card)
|
||||||
{
|
{
|
||||||
struct mmc_host *host = card->host;
|
struct mmc_host *host = card->host;
|
||||||
@@ -1107,19 +1120,6 @@ int mmc_hs200_to_hs400(struct mmc_card *card)
|
|||||||
return mmc_select_hs400(card);
|
return mmc_select_hs400(card);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Caller must hold re-tuning */
|
|
||||||
static int mmc_switch_status(struct mmc_card *card)
|
|
||||||
{
|
|
||||||
u32 status;
|
|
||||||
int err;
|
|
||||||
|
|
||||||
err = mmc_send_status(card, &status);
|
|
||||||
if (err)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return mmc_switch_status_error(card->host, status);
|
|
||||||
}
|
|
||||||
|
|
||||||
int mmc_hs400_to_hs200(struct mmc_card *card)
|
int mmc_hs400_to_hs200(struct mmc_card *card)
|
||||||
{
|
{
|
||||||
struct mmc_host *host = card->host;
|
struct mmc_host *host = card->host;
|
||||||
|
|||||||
Reference in New Issue
Block a user