]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Fix ambiguous TRIM and DISCARD arg
authorChristian Löhle <CLoehle@hyperstone.com>
Thu, 17 Nov 2022 14:42:09 +0000 (14:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:23:04 +0000 (11:23 +0100)
commit2e48f451471a2b289630706cd08dce952c3d7178
tree94da757106a7314661aec2238d6e1da25e0fa8de
parent267d94d892742c413520a67bdf3aafaf3add33b3
mmc: core: Fix ambiguous TRIM and DISCARD arg

commit 489d144563f23911262a652234b80c70c89c978b upstream.

Clean up the MMC_TRIM_ARGS define that became ambiguous with DISCARD
introduction.  While at it, let's fix one usage where MMC_TRIM_ARGS falsely
included DISCARD too.

Fixes: 91fc764d7059 ("mmc: core: new discard feature support at eMMC v4.5")
Signed-off-by: Christian Loehle <cloehle@hyperstone.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/11376b5714964345908f3990f17e0701@hyperstone.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/core.c
include/linux/mmc/mmc.h