linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] introduce devm_mdiobus_alloc/free and clean up davinci mdio
@ 2014-04-30 12:23 Grygorii Strashko
  2014-04-30 12:23 ` [PATCH v3 1/4] mdio_bus: implement devm_mdiobus_alloc/devm_mdiobus_free Grygorii Strashko
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Grygorii Strashko @ 2014-04-30 12:23 UTC (permalink / raw)
  To: Florian Fainelli, netdev
  Cc: Randy Dunlap, Jonathan Cameron, David S. Miller,
	santosh.shilimkar, Sekhar Nori, linux-doc, linux-kernel,
	davinci-linux-open-source, sergei.shtylyov, prabhakar.csengg,
	Grygorii Strashko

Introduce a resource managed devm_mdiobus_alloc[_size]()/devm_mdiobus_free()
to automatically clean up MDIO bus alocations made by MDIO drivers,
thus leading to simplified MDIO drivers code.

Clean up Davinci MDIO driver and use new devm API.

Changes in v3:
- added devm_mdiobus_alloc_size() and
  devm_mdiobus_alloc() converted to be just a simple wrapper now.

Changes in v2:
- minor comments taken into account
- additional patches added for cleaning up Davinci MDIO driver

Cc: Florian Fainelli <f.fainelli@gmail.com>

Grygorii Strashko (4):
  mdio_bus: implement devm_mdiobus_alloc/devm_mdiobus_free
  net: davinci_mdio: use devm_* api
  net: davinci_mdio: drop pinctrl_pm_select_default_state from probe
  net: davinci_mdio: simplify IO memory mapping

 Documentation/driver-model/devres.txt  |    5 +++
 drivers/net/ethernet/ti/davinci_mdio.c |   48 ++++-------------------
 drivers/net/phy/mdio_bus.c             |   67 ++++++++++++++++++++++++++++++++
 include/linux/phy.h                    |    7 ++++
 4 files changed, 87 insertions(+), 40 deletions(-)

-- 
1.7.9.5


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

end of thread, other threads:[~2014-05-09 11:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-30 12:23 [PATCH v3 0/4] introduce devm_mdiobus_alloc/free and clean up davinci mdio Grygorii Strashko
2014-04-30 12:23 ` [PATCH v3 1/4] mdio_bus: implement devm_mdiobus_alloc/devm_mdiobus_free Grygorii Strashko
2014-04-30 12:23 ` [PATCH v3 2/4] net: davinci_mdio: use devm_* api Grygorii Strashko
2014-04-30 12:23 ` [PATCH v3 3/4] net: davinci_mdio: drop pinctrl_pm_select_default_state from probe Grygorii Strashko
2014-05-09 11:41   ` Linus Walleij
2014-04-30 12:23 ` [PATCH v3 4/4] net: davinci_mdio: simplify IO memory mapping Grygorii Strashko
2014-04-30 14:25 ` [PATCH v3 0/4] introduce devm_mdiobus_alloc/free and clean up davinci mdio Santosh Shilimkar
2014-05-02 20:17 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).