Skip to content

Commit 32e8ee2

Browse files
committed
mmc: Merge branch fixes into next
Merge the mmc fixes for v6.8-rc[n] into the next branch, to allow them to get tested together with the new mmc changes that are targeted for v6.9. Signed-off-by: Ulf Hansson <[email protected]>
2 parents 0cd8fd1 + 4af59a8 commit 32e8ee2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/mmc/core/block.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -874,10 +874,11 @@ static const struct block_device_operations mmc_bdops = {
874874
static int mmc_blk_part_switch_pre(struct mmc_card *card,
875875
unsigned int part_type)
876876
{
877-
const unsigned int mask = EXT_CSD_PART_CONFIG_ACC_RPMB;
877+
const unsigned int mask = EXT_CSD_PART_CONFIG_ACC_MASK;
878+
const unsigned int rpmb = EXT_CSD_PART_CONFIG_ACC_RPMB;
878879
int ret = 0;
879880

880-
if ((part_type & mask) == mask) {
881+
if ((part_type & mask) == rpmb) {
881882
if (card->ext_csd.cmdq_en) {
882883
ret = mmc_cmdq_disable(card);
883884
if (ret)
@@ -892,10 +893,11 @@ static int mmc_blk_part_switch_pre(struct mmc_card *card,
892893
static int mmc_blk_part_switch_post(struct mmc_card *card,
893894
unsigned int part_type)
894895
{
895-
const unsigned int mask = EXT_CSD_PART_CONFIG_ACC_RPMB;
896+
const unsigned int mask = EXT_CSD_PART_CONFIG_ACC_MASK;
897+
const unsigned int rpmb = EXT_CSD_PART_CONFIG_ACC_RPMB;
896898
int ret = 0;
897899

898-
if ((part_type & mask) == mask) {
900+
if ((part_type & mask) == rpmb) {
899901
mmc_retune_unpause(card->host);
900902
if (card->reenable_cmdq && !card->ext_csd.cmdq_en)
901903
ret = mmc_cmdq_enable(card);

0 commit comments

Comments
 (0)