Message ID | e7936cff7fc24d187ef2680d3b4edb0ade58f293.1636564631.git.hns@goldelico.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mmc: core: extend mmc_fixup_device and transplant ti,wl1251 quirks from to be retired omap_hsmmc | expand |
> Am 10.11.2021 um 18:17 schrieb H. Nikolaus Schaller <hns@goldelico.com>: > > From: Ulf Hansson <ulf.hansson@linaro.org> > > The mmc core takes a specific path to support initializing of a > non-standard SDIO card. This is triggered by looking for the card-quirk, > MMC_QUIRK_NONSTD_SDIO. > > if (card->type == MMC_TYPE_SD_COMBO) { > -- > 2.33.0 > Sorry, I just recognised after pressing the send button that with "early" you probably meant this to be 1/6... Should I resubmit? BR, Nikolaus
On Wed, 10 Nov 2021 at 18:20, H. Nikolaus Schaller <hns@goldelico.com> wrote: > > > Am 10.11.2021 um 18:17 schrieb H. Nikolaus Schaller <hns@goldelico.com>: > > > > From: Ulf Hansson <ulf.hansson@linaro.org> > > > > The mmc core takes a specific path to support initializing of a > > non-standard SDIO card. This is triggered by looking for the card-quirk, > > MMC_QUIRK_NONSTD_SDIO. > > > > if (card->type == MMC_TYPE_SD_COMBO) { > > -- > > 2.33.0 > > > > Sorry, I just recognised after pressing the send button that with "early" > you probably meant this to be 1/6... Should I resubmit? No need to re-submit, this works fine! Kind regards Uffe
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c index cf8ee66990508..41164748723d2 100644 --- a/drivers/mmc/core/sdio.c +++ b/drivers/mmc/core/sdio.c @@ -709,6 +709,8 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr, host->ops->init_card(host, card); mmc_fixup_device(card, sdio_card_init_methods); + card->ocr = ocr_card; + /* * If the host and card support UHS-I mode request the card * to switch to 1.8V signaling level. No 1.8v signalling if @@ -821,7 +823,7 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr, goto mismatch; } } - card->ocr = ocr_card; + mmc_fixup_device(card, sdio_fixup_methods); if (card->type == MMC_TYPE_SD_COMBO) {