All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Introduce devm_of_platform_populate() helper
@ 2017-02-24 16:14 ` Benjamin Gaignard
  0 siblings, 0 replies; 14+ messages in thread
From: Benjamin Gaignard @ 2017-02-24 16:14 UTC (permalink / raw)
  To: robh+dt, frowand.list, devicetree, linux-kernel, vincent.abriou,
	dri-devel
  Cc: linaro-kernel, Benjamin Gaignard

version 2:
- simplify function prototype to only keep device as parameter
- rebased on v4.10

Lots of calls to of_platform_populate() are not unbalanced by a call
to of_platform_depopulate(). This create issues while drivers are
bind/unbind.
    
In way to solve those issues is to add devm_of_platform_populate()
which will call of_platform_depopulate() when the device is unbound
from the bus. This also could make drivers more robust in case that
probe failed after calling of_platform_populate().

Benjamin Gaignard (2):
  of: add devm_ functions for populate and depopulate
  drm: sti: make driver use devm_of_platform_populate()

 drivers/gpu/drm/sti/sti_drv.c |  3 +-
 drivers/of/platform.c         | 71 +++++++++++++++++++++++++++++++++++++++++++
 include/linux/of_platform.h   | 11 +++++++
 3 files changed, 83 insertions(+), 2 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2017-02-27 16:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-24 16:14 [PATCH v2 0/2] Introduce devm_of_platform_populate() helper Benjamin Gaignard
2017-02-24 16:14 ` Benjamin Gaignard
2017-02-24 16:14 ` [PATCH v2 1/2] of: add devm_ functions for populate and depopulate Benjamin Gaignard
2017-02-24 16:14   ` Benjamin Gaignard
2017-02-24 16:31   ` Rob Herring
2017-02-24 16:31     ` Rob Herring
2017-02-26 20:11     ` Daniel Vetter
2017-02-26 20:11       ` Daniel Vetter
2017-02-27 13:30       ` Rob Herring
2017-02-27 13:30         ` Rob Herring
2017-02-27 16:20         ` Daniel Vetter
2017-02-27 16:20           ` Daniel Vetter
2017-02-24 16:14 ` [PATCH v2 2/2] drm: sti: make driver use devm_of_platform_populate() Benjamin Gaignard
2017-02-24 16:14   ` Benjamin Gaignard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.