summaryrefslogtreecommitdiff
path: root/lib/uuid.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2016-06-06 10:17:00 +0200
committerScott Wood <oss@buserror.net>2016-06-19 19:12:01 -0500
commitbb9783b66bf56a27b4db8dc444dda6c380816e99 (patch)
treeb1a6319dd76982d623dac1ef63d0007831385195 /lib/uuid.c
parentfa3011587887ba222bc9337d9ac17f3000db63b2 (diff)
downloadu-boot-imx-bb9783b66bf56a27b4db8dc444dda6c380816e99.zip
u-boot-imx-bb9783b66bf56a27b4db8dc444dda6c380816e99.tar.gz
u-boot-imx-bb9783b66bf56a27b4db8dc444dda6c380816e99.tar.bz2
spl: nand: sunxi: rework status polling loop
check_value_xxx() helpers are using a 1ms delay between each test, which can be quite long for some operations (like a page read on an SLC NAND). Since we don't have anything to do but to poll this register, reduce the delay between each test to 1us. While we're at it, rename the max_number_of_retries parameters and the MAX_RETRIES macro into timeout_us and DEFAULT_TIMEOUT_US to reflect that we're actually waiting a given amount of time and not only a number of retries. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'lib/uuid.c')
0 files changed, 0 insertions, 0 deletions