File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -874,10 +874,11 @@ static const struct block_device_operations mmc_bdops = {
874
874
static int mmc_blk_part_switch_pre (struct mmc_card * card ,
875
875
unsigned int part_type )
876
876
{
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 ;
878
879
int ret = 0 ;
879
880
880
- if ((part_type & mask ) == mask ) {
881
+ if ((part_type & mask ) == rpmb ) {
881
882
if (card -> ext_csd .cmdq_en ) {
882
883
ret = mmc_cmdq_disable (card );
883
884
if (ret )
@@ -892,10 +893,11 @@ static int mmc_blk_part_switch_pre(struct mmc_card *card,
892
893
static int mmc_blk_part_switch_post (struct mmc_card * card ,
893
894
unsigned int part_type )
894
895
{
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 ;
896
898
int ret = 0 ;
897
899
898
- if ((part_type & mask ) == mask ) {
900
+ if ((part_type & mask ) == rpmb ) {
899
901
mmc_retune_unpause (card -> host );
900
902
if (card -> reenable_cmdq && !card -> ext_csd .cmdq_en )
901
903
ret = mmc_cmdq_enable (card );
You can’t perform that action at this time.
0 commit comments