[U-Boot] [RESEND PATCH v3 03/19] dm: device: Allow using uclass_find_device_by_seq() without OF_CONTROL

Heiko Schocher hs at denx.de
Mon Dec 10 05:04:40 UTC 2018


Hello Jean-Jacques,

Am 07.12.2018 um 14:50 schrieb Jean-Jacques Hiblot:
> If OF_CONTROL is not enabled and DM_SEQ_ALIAS is enabled, we must
> assign an alias (requested sequence number) to devices that belongs to a
> class with the DM_UC_FLAG_SEQ_ALIAS flag. Otherwise
> uclass_find_device_by_seq() cannot be used to get/probe a device. In
> particular i2c_get_chip_for_busnum() cannot be used.
> 
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> 
> ---
> 
> Changes in v3: None
> Changes in v2:
> - don't use the DT to find the req_seq number if SPL_OF_PLATDATA is used.
>    Instead do it as if SPL_OF_CONTROL is not defined.
> 
>   drivers/core/device.c        | 10 ++++++----
>   drivers/core/uclass.c        | 24 ++++++++++++++++++++++++
>   include/dm/uclass-internal.h | 13 +++++++++++++
>   3 files changed, 43 insertions(+), 4 deletions(-)

Thanks for resending!

Reviewed-by: Heiko Schocher <hs at denx.de>

bye,
Heiko Schocher
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list