spl: usb: Only init usb once
authorFaiz Abbas <faiz_abbas@ti.com>
Mon, 3 Aug 2020 06:05:05 +0000 (11:35 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 11 Aug 2020 15:04:46 +0000 (20:34 +0530)
commit39388aebed67a64d1bac8cd6652e8f418c116252
tree0e8bb44450f06a8ac84c70db20d475687a4f4522
parentc3ab97c1dd48ef8f4f737f1e83b3e39ccf13a532
spl: usb: Only init usb once

usb_init() may be called multiple times for fetching multiple images
from SPL. Skip reinitializing USB if its already been done

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
common/spl/spl_usb.c