public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] dm: core: add device's uclass platform data and tests
@ 2015-04-08 13:01 Przemyslaw Marczak
  2015-04-08 13:01 ` [U-Boot] [PATCH 1/2] dm: core: Extend struct udevice by '.uclass_platdata' field Przemyslaw Marczak
                   ` (2 more replies)
  0 siblings, 3 replies; 61+ messages in thread
From: Przemyslaw Marczak @ 2015-04-08 13:01 UTC (permalink / raw)
  To: u-boot

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.

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

At present there is an issue with running the full dm test, but the test for
device's uclass_platdata pass.

Przemyslaw Marczak (2):
  dm: core: Extend struct udevice by '.uclass_platdata' field.
  dm: test: Add tests for device's uclass platform data

 drivers/core/device-remove.c |  4 ++++
 drivers/core/device.c        | 33 ++++++++++++++++++++++----
 include/dm/device.h          | 17 +++++++++++++-
 include/dm/test.h            | 20 ++++++++++++++++
 include/dm/uclass.h          |  4 ++++
 test/dm/core.c               | 55 ++++++++++++++++++++++++++++++++++++++++++++
 test/dm/test-uclass.c        | 11 +++++++++
 7 files changed, 139 insertions(+), 5 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 61+ messages in thread

end of thread, other threads:[~2015-04-22 16:52 UTC | newest]

Thread overview: 61+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-08 13:01 [U-Boot] [PATCH 0/2] dm: core: add device's uclass platform data and tests Przemyslaw Marczak
2015-04-08 13:01 ` [U-Boot] [PATCH 1/2] dm: core: Extend struct udevice by '.uclass_platdata' field Przemyslaw Marczak
2015-04-08 13:47   ` Simon Glass
2015-04-08 13:56     ` Przemyslaw Marczak
2015-04-08 13:01 ` [U-Boot] [PATCH 2/2] dm: test: Add tests for device's uclass platform data Przemyslaw Marczak
2015-04-08 13:47   ` Simon Glass
2015-04-08 13:58     ` Przemyslaw Marczak
2015-04-08 15:32 ` [U-Boot] [PATCH V2 0/3] dm: core: add device's uclass platform data and tests Przemyslaw Marczak
2015-04-08 15:32   ` [U-Boot] [PATCH V2 1/3] dm: core: add internal functions for getting the device without probe Przemyslaw Marczak
2015-04-08 15:39     ` Simon Glass
2015-04-08 15:47       ` Przemyslaw Marczak
2015-04-08 15:32   ` [U-Boot] [PATCH V2 2/3] dm: core: Extend struct udevice by '.uclass_platdata' field Przemyslaw Marczak
2015-04-08 15:32   ` [U-Boot] [PATCH V2 3/3] dm: test: Add tests for device's uclass platform data Przemyslaw Marczak
2015-04-08 17:06   ` [U-Boot] [PATCH V3 0/4] dm: core: add device's uclass platform data and tests Przemyslaw Marczak
2015-04-08 17:06     ` [U-Boot] [PATCH V3 1/4] dm: core: add internal functions for getting the device without probe Przemyslaw Marczak
2015-04-09  1:47       ` Simon Glass
2015-04-08 17:06     ` [U-Boot] [PATCH V3 2/4] dm: core: Extend struct udevice by '.uclass_platdata' field Przemyslaw Marczak
2015-04-09  1:47       ` Simon Glass
2015-04-08 17:06     ` [U-Boot] [PATCH V3 3/4] dm: test: Add tests for device's uclass platform data Przemyslaw Marczak
2015-04-09  1:47       ` Simon Glass
2015-04-08 17:06     ` [U-Boot] [PATCH V3 4/4] dm: test: Add tests for get/find uclass devices Przemyslaw Marczak
2015-04-09  1:47       ` Simon Glass
2015-04-09  6:54         ` Przemyslaw Marczak
2015-04-09 12:11     ` [U-Boot] [PATCH] dm: core: remove type 'static' of function uclass_get_device_tail() Przemyslaw Marczak
2015-04-09 12:16       ` Przemyslaw Marczak
2015-04-15 11:07     ` [U-Boot] [PATCH V4 00/10] dm: core: extend API by useful functions with tests Przemyslaw Marczak
2015-04-15 11:07       ` [U-Boot] [PATCH V4 01/10] dm: core: add internal functions for getting the device without probe Przemyslaw Marczak
2015-04-20  3:22         ` Simon Glass
2015-04-15 11:07       ` [U-Boot] [PATCH V4 02/10] dm: core: Extend struct udevice by '.uclass_platdata' field Przemyslaw Marczak
2015-04-20  3:22         ` Simon Glass
2015-04-15 11:07       ` [U-Boot] [PATCH V4 03/10] dm: test: Add tests for device's uclass platform data Przemyslaw Marczak
2015-04-20  3:22         ` Simon Glass
2015-04-15 11:07       ` [U-Boot] [PATCH V4 04/10] dm: test: Add tests for get/find uclass devices Przemyslaw Marczak
2015-04-20  3:22         ` Simon Glass
2015-04-15 11:07       ` [U-Boot] [PATCH V4 05/10] dm: core: remove type 'static' of function uclass_get_device_tail() Przemyslaw Marczak
2015-04-20  2:03         ` Simon Glass
2015-04-15 11:07       ` [U-Boot] [PATCH V4 06/10] dm: core: uclass: add function: uclass_find_device_by_name() Przemyslaw Marczak
2015-04-19 13:23         ` Simon Glass
2015-04-20  3:22           ` Simon Glass
2015-04-15 11:07       ` [U-Boot] [PATCH V4 07/10] dm: core: uclass: add function: uclass_get_device_by_name() Przemyslaw Marczak
2015-04-19 13:23         ` Simon Glass
2015-04-20  3:22           ` Simon Glass
2015-04-15 11:07       ` [U-Boot] [PATCH V4 08/10] dm: core: device: add function: dev_get_driver_ops() Przemyslaw Marczak
2015-04-19 13:24         ` Simon Glass
2015-04-20  3:23           ` Simon Glass
2015-04-15 11:07       ` [U-Boot] [PATCH V4 09/10] dm: core: device: add function: dev_get_uclass_name() Przemyslaw Marczak
2015-04-19 13:24         ` Simon Glass
2015-04-20  3:23           ` Simon Glass
2015-04-15 11:07       ` [U-Boot] [PATCH V4 10/10] dm: test: Add tests for get/find uclass's device by name Przemyslaw Marczak
2015-04-19 13:25         ` Simon Glass
2015-04-20  3:22       ` [U-Boot] [PATCH V4 00/10] dm: core: extend API by useful functions with tests Simon Glass
2015-04-20 10:55         ` Przemyslaw Marczak
2015-04-20 11:32         ` [U-Boot] [PATCH V5 1/3] dm: core: remove type 'static' of function uclass_get_device_tail() Przemyslaw Marczak
2015-04-20 11:32           ` [U-Boot] [PATCH V5 2/3] dm: test: Add tests for get/find uclass's device by name Przemyslaw Marczak
2015-04-20 21:24             ` Simon Glass
2015-04-22 16:52               ` Simon Glass
2015-04-20 11:32           ` [U-Boot] [PATCH V5 3/3] dm: core: precise comments for get/find " Przemyslaw Marczak
2015-04-20 21:24             ` Simon Glass
2015-04-22 16:52               ` Simon Glass
2015-04-20 21:24           ` [U-Boot] [PATCH V5 1/3] dm: core: remove type 'static' of function uclass_get_device_tail() Simon Glass
2015-04-22 16:52             ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox