mmc: card: activate packing control only for eMMC4.5 cards
Since the write packing is an eMMc4.5 feature, packing control
should also be activated only for eMMc4.5 cards.
Change-Id: If094658943a536f39afc814f6684c0dbb0806778
Signed-off-by: Maya Erez <merez@codeaurora.org>
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index e7d493a..d815bf6 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -1986,6 +1986,10 @@
if (!(host->caps2 & MMC_CAP2_PACKED_WR))
return;
+ /* Support for the write packing on eMMC 4.5 or later */
+ if (mq->card->ext_csd.rev <= 5)
+ return;
+
/*
* In case the packing control is not supported by the host, it should
* not have an effect on the write packing. Therefore we have to enable