mmc: core: Support zeroout using TRIM for eMMC
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Fri, 29 Apr 2022 15:21:18 +0000 (17:21 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 10 May 2022 10:51:32 +0000 (12:51 +0200)
commitf7b6fc327327698924ef3afa0c3e87a5b7466af3
tree6aa61b8fbeea6dfaa3a3f1270bb3df23e81e1fd5
parent0c9ee5ba7555016afd1efc9598c3f83de5d83470
mmc: core: Support zeroout using TRIM for eMMC

If an eMMC card supports TRIM and indicates that it erases to zeros, we can
use it to support hardware offloading of REQ_OP_WRITE_ZEROES, so let's add
support for this.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Reviewed-by: Avri Altman <Avri.Altman@wdc.com>
Link: https://lore.kernel.org/r/20220429152118.3617303-1-vincent.whitchurch@axis.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c
drivers/mmc/core/queue.c