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

2018-10-05 Thread Jean-Jacques Hiblot
On 05/10/2018 10:50, Jean-Jacques Hiblot wrote: Hi Adam, On 05/10/2018 00:42, Adam Ford wrote: On Thu, Oct 4, 2018 at 8:48 AM Jean-Jacques Hiblot wrote: If OF_CONTROL is not enabled and DM_SEQ_ALIAS is enabled, we must assign an alias (requested sequence number) to devices that belongs

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

2018-10-05 Thread Jean-Jacques Hiblot
Hi Adam, On 05/10/2018 00:42, Adam Ford wrote: On Thu, Oct 4, 2018 at 8:48 AM Jean-Jacques Hiblot wrote: 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.

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

2018-10-04 Thread Adam Ford
On Thu, Oct 4, 2018 at 8:48 AM Jean-Jacques Hiblot wrote: > > 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 What about conditions where both

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

2018-10-04 Thread 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()