]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: Replace printf with debug call for timeouts in the i.MX28 mxs driver
authorLukasz Majewski <lukma@denx.de>
Thu, 5 Sep 2019 07:55:00 +0000 (09:55 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:36 +0000 (16:36 +0200)
commit16017adbf58c13f138079dd29bf48a7fd3f3a376
tree12fb0e9b7057619bfd9def341080805c3cb695f9
parent73f037d634264eee81eed92122aa22c722bb4882
mmc: Replace printf with debug call for timeouts in the i.MX28 mxs driver

This change replaces printf() with debug() for the notification about
commands timeouts.

This is done on purpose (also other drivers use such approach - dw_mmc.c,
mvebu_mmc.c), as the mmc core code (mmc.c) uses timeouts to assess if one
is using sd card or eMMC device.
In such situation timeout is a some kind of a "normal" behavior and there
shall not be any output to the console.

There is no impact on boot time for boards using this driver (even in SPL)
when two extra timeouts are returned (no SD card present, only eMMC
available).

Boot time tested with grabserial:
sudo grabserial -b 115200 -d /dev/ttyUSB1 -e 30 -t -m "^U-Boot SPL*"

Signed-off-by: Lukasz Majewski <lukma@denx.de>
drivers/mmc/mxsmmc.c