]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(mmc): export user/boot partition switch functions
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Mon, 23 May 2022 15:06:37 +0000 (17:06 +0200)
committerAhmad Fatoum <a.fatoum@pengutronix.de>
Thu, 2 Jun 2022 15:28:03 +0000 (17:28 +0200)
commitf85041a657d9cf92a6ff9c08c936cac4b2036050
treeec0e2c6b76d2674c82a68c9e491f725d23be58ca
parented96c5322f9f44037bc30110fd553b9672168a51
refactor(mmc): export user/boot partition switch functions

At the moment, mmc_boot_part_read_blocks() takes care to switch
to the boot partition before transfer and back afterwards.
This can introduce large overhead when reading small chunks.
Give consumers of the API more control by exporting
mmc_part_switch_current_boot() and mmc_part_switch_user().

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Change-Id: Ib641f188071bb8e0196f4af495ec9ad4a292284f
drivers/mmc/mmc.c
include/drivers/mmc.h