[U-Boot] [PATCH V2 1/2] dm: allow setting driver_data before/during bind
Simon Glass
sjg at chromium.org
Mon May 23 17:38:52 CEST 2016
On 12 May 2016 at 11:43, Simon Glass <sjg at chromium.org> wrote:
> On 11 May 2016 at 15:26, Stephen Warren <swarren at wwwdotorg.org> wrote:
>> From: Stephen Warren <swarren at nvidia.com>
>>
>> This will allow a driver's bind function to use the driver data. One
>> example is the Tegra186 GPIO driver, which instantiates child devices
>> for each of its GPIO ports, yet supports two different HW instances each
>> with a different set of ports, and identified by the udevice_id .data
>> field.
>>
>> Signed-off-by: Stephen Warren <swarren at nvidia.com>
>> ---
>> v2:
>> * Introduce a separate function for the new functionality, rather than
>> modifying device_bind().
>>
>> This patch is a dependency for the upcoming Tegra186 GPIO driver too.
>> ---
>> doc/driver-model/README.txt | 23 ++++++++++++++---------
>> drivers/core/device.c | 25 ++++++++++++++++++++++---
>> drivers/core/lists.c | 4 ++--
>> include/dm/device-internal.h | 24 ++++++++++++++++++++++++
>> 4 files changed, 62 insertions(+), 14 deletions(-)
>
> Thanks.
>
> Acked-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list