[U-Boot] [PATCH V4 00/10] dm: core: extend API by useful functions with tests

Przemyslaw Marczak p.marczak at samsung.com
Mon Apr 20 12:55:35 CEST 2015


Hello Simon,

On 04/20/2015 05:22 AM, Simon Glass wrote:
> Hi Przemyslaw,
>
> On 15 April 2015 at 05:07, Przemyslaw Marczak <p.marczak at samsung.com> wrote:
>> Hello,
>> Before merge, I would like to extend this patchset by additional functions [V4],
>> which are now the base for my work on PMIC.
>>
>> The base version:
>>
>> The struct udevice provides two fields for device's platform data:
>> - .platdata        - to keep platform-dependent data for the device driver
>> - .parent_platdata - to keep platform-dependent data for the device parent
>>
>> Some implementations may need addidional platform data, which could be owned
>> by the uclass. For example, the regulator device's constraints.
>>
>> This patchset adds the additional field:
>> - .uclass_platdata - to keep platform-dependend data for the uclass driver
>>
>> Two tests are added to the test framework:
>> - one for check dev->uclass_platdata pointer
>> - second for validation the data assigned to by test uclass's post_bind() method
>>
>> Change in V2:
>> - implementation of functions for getting the uclass's device without probe it
>> - cleanup test code
>>
>> Change in V3:
>> - add tests for uclass device get/find functions
>>
>> Change in V4:
>> - remove type 'static' for uclass_get_device_tail()
>> - add: class_get/find_device_by_name() with sandbox tests
>> - add: dev_get_driver_ops()
>> - add: dev_get_uclass_name()
>
> The driver model tree has gone to mainline now so I'm going to pick
> this series up.
>
> I'm leaving out patches 5 and 10 for now as I have responded with
> minor nits. Can you please respin against u-boot-dm/master?
>
> Thanks,
> Simon
>

Thank you for taking this,
I will resend those two in a moment.

Best regards,
-- 
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com


More information about the U-Boot mailing list