mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user