Skip to content
Snippets Groups Projects
Commit 71fe2225 authored by Hou Zhiqiang's avatar Hou Zhiqiang Committed by York Sun
Browse files

fsl: serdes: ensure accessing the initialized maps of serdes protocol


Up to now, the function is_serdes_configed() doesn't check if the map
of serdes protocol is initialized before accessing it. The function
is_serdes_configed() will get wrong result when it was called before
the serdes protocol maps initialized. As the first element of the map
isn't used for any device, so use it as the flag to indicate if the
map has been initialized.

Signed-off-by: default avatarHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent 07806e62
No related branches found
No related tags found
Loading
Showing
with 234 additions and 7 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment