OPTEE: do uart port config when driver probe

Some logs may appear before tee-supplicant start,
so uart port config should be done as early as possible.

Change-Id: I51bdb6a9d0f5160a6dc66ad015577a77df6897b4
Signed-off-by: Zhang Zhijie <zhangzj@rock-chips.com>
This commit is contained in:
Zhang Zhijie
2019-03-05 18:47:47 +08:00
parent 7757813f89
commit 6ff461709c

View File

@@ -1224,8 +1224,6 @@ static int tz_start(struct tee *tee)
BUG_ON(ptee->started);
ptee->started = true;
rk_set_uart_port(ptee);
ret = configure_shm(ptee);
if (ret)
goto exit;
@@ -1372,6 +1370,8 @@ static int tz_tee_probe(struct platform_device *pdev)
if (ret)
goto bail1;
rk_set_uart_port(ptee);
#ifdef _TEE_DEBUG
pr_debug("- tee=%p, id=%d, iminor=%d\n", tee, tee->id,
tee->miscdev.minor);