Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08799614 authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

mmc: card: Fix card bkops configuration in cmdq



Error mask for the card exception event is getting disabled in the
cmdq. On some cards, both manual bkops and auto-backups are enabled.
Since manual bkops is enabled, the card would trigger the exception
for urgent bkops which is resulting in response errors in cmdq mode.

When auto-bkops is enabled, this exception error mask can be masked.
Correcting the conditional check which is unmasking this error event.

Change-Id: I80efded505b104dd3246d18db875c5e0e7f1887e
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent c7cf52ef
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -433,12 +433,12 @@ static inline bool mmc_card_support_auto_bkops(const struct mmc_card *c)

static inline bool mmc_card_configured_manual_bkops(const struct mmc_card *c)
{
	return c->ext_csd.man_bkops_en & EXT_CSD_BKOPS_MANUAL_EN;
	return c->ext_csd.man_bkops_en;
}

static inline bool mmc_card_configured_auto_bkops(const struct mmc_card *c)
{
	return c->ext_csd.auto_bkops_en & EXT_CSD_BKOPS_AUTO_EN;
	return c->ext_csd.auto_bkops_en;
}

static inline bool mmc_enable_qca6574_settings(const struct mmc_card *c)