| 5395ac06 | 12-Oct-2022 |
Michal Suchanek <msuchanek@suse.de> |
UPSTREAM: dm: treewide: Do not use the return value of simple uclass iterator
uclass_first_device/uclass_next_device return value will be removed, don't use it.
With the current implementation dev
UPSTREAM: dm: treewide: Do not use the return value of simple uclass iterator
uclass_first_device/uclass_next_device return value will be removed, don't use it.
With the current implementation dev is equivalent to !ret. It is redundant to check both, ret check can be replaced with dev check, and ret check inside the iteration is dead code.
Change-Id: Ie500bbed46f8d08721b14b1db7a7be94ea601799 Signed-off-by: Michal Suchanek <msuchanek@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> (cherry picked from commit 4954937d922840c212b7eba297cc2d4779f087ad) Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
show more ...
|
| 1f383ee4 | 12-Oct-2022 |
Michal Suchanek <msuchanek@suse.de> |
UPSTREAM: dm: core: Do not stop uclass iteration on error
When probing a device fails NULL pointer is returned, and following devices in uclass list cannot be iterated. Skip to next device on error
UPSTREAM: dm: core: Do not stop uclass iteration on error
When probing a device fails NULL pointer is returned, and following devices in uclass list cannot be iterated. Skip to next device on error instead.
With that the only condition under which these simple iteration functions return error is when the dm is not initialized at uclass_get time. This is not all that interesting, change return type to void.
Fixes: 6494d708bf ("dm: Add base driver model support") Change-Id: Ie327dc21db7ee80f9fc32e7913be2af71bb074a7 Signed-off-by: Michal Suchanek <msuchanek@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> (cherry picked from commit f21954750aa8ed445ab83998bb099e366136c428) Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
show more ...
|
| 771aadba | 06-Feb-2020 |
Simon Glass <sjg@chromium.org> |
UPSTREAM: dm: core: Add a function to find a device by drvdata
It is sometimes useful to find a device in a uclass using only its driver data. The driver data often indicates the 'subtype' of the de
UPSTREAM: dm: core: Add a function to find a device by drvdata
It is sometimes useful to find a device in a uclass using only its driver data. The driver data often indicates the 'subtype' of the device, e,g, via its compatible string.
Add a function to handle this.
Change-Id: I6668a2a29c29346f57d3d975838459c0ac90fdea Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> (cherry picked from commit 50162348f0d3b915004733131acd81805e202c76) Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
show more ...
|
| 9c7862b8 | 23-Sep-2019 |
Kever Yang <kever.yang@rock-chips.com> |
test: storage: Fix board may not have devnum env
If the board do not have the 'devnum', the env_get() returns NULL and strcmp will lead to "data abort".
Change-Id: I329237b61fc96bc90e7a07653b665192
test: storage: Fix board may not have devnum env
If the board do not have the 'devnum', the env_get() returns NULL and strcmp will lead to "data abort".
Change-Id: I329237b61fc96bc90e7a07653b665192d6a9d7b8 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| fb09b071 | 21-Aug-2019 |
Kever Yang <kever.yang@rock-chips.com> |
test: rockchip: fix pointer for free()
free() is using pointer while sysmem_free() is not using pointer, so they can not use the same parameter.
Change-Id: Ib68319bda2ba1a400f2436e21d5864a0e2511fad
test: rockchip: fix pointer for free()
free() is using pointer while sysmem_free() is not using pointer, so they can not use the same parameter.
Change-Id: Ib68319bda2ba1a400f2436e21d5864a0e2511fad Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|