• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision16aabfe2f29d4682b2176095029fa307caccaced (tree)
l'heure2022-07-14 23:13:11
AuteurFabio Estevam <festevam@denx...>
CommiterMarek Vasut

Message de Log

spl: sdp: Pass the USB index to board_usb_init()

board_usb_init() should receive the controller_index as its
first parameter instead of having it hardcoded as 0.

All in-tree users have CONFIG_SPL_SDP_USB_DEV as 0, so this error
should not affect any board.

Fix it by passing controller_index as the parameter of board_usb_init().

Signed-off-by: Fabio Estevam <festevam@denx.de>
Acked-by: Peng Fan <peng.fan@nxp.com>

Change Summary

Modification

--- a/common/spl/spl_sdp.c
+++ b/common/spl/spl_sdp.c
@@ -19,7 +19,7 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image,
1919
2020 usb_gadget_initialize(controller_index);
2121
22- board_usb_init(0, USB_INIT_DEVICE);
22+ board_usb_init(controller_index, USB_INIT_DEVICE);
2323
2424 g_dnl_clear_detach();
2525 ret = g_dnl_register("usb_dnl_sdp");