All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] ASoC: da7219: Convert driver to use generic FW functions
@ 2016-06-14 13:56 Adam Thomson
  2016-06-14 13:56 ` [PATCH v3 1/2] device property: Add function to search for named child of device Adam Thomson
  2016-06-14 13:56 ` [PATCH v3 2/2] ASoC: da7219: Convert driver to use generic device/fwnode functions Adam Thomson
  0 siblings, 2 replies; 8+ messages in thread
From: Adam Thomson @ 2016-06-14 13:56 UTC (permalink / raw)
  To: Robert Moore, Lv Zheng, Rafael J.Wysocki, Heikki Krogerus,
	Mika Westerberg, Len Brown, Andy Shevchenko, Rob Herring,
	Frank Rowand, Mark Brown, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, Greg Kroah-Hartman
  Cc: devicetree, alsa-devel, Support Opensource, linux-kernel,
	linux-acpi, Sathyanarayana Nujella, devel

This patch set converts the da7219 codec driver to use device/fwnode functions
to access properties, instead of the DT only of_* functions, allowing ACPI
to be used as well.

The DT bindings for da7219 have a device node for the main codec properties,
and a named child node (da7219_aad), which contains all of the accessory
detection related properties for the device. ACPI also supports this kind of
FW hierarchy (data only sub-nodes), but some support in the kernel needs to be
added to take make use of this in driver code.

The first patch adds functions to allow searching for a named child node of a
device, for both DT and ACPI, and the second patch updates the codec driver to
use the standard device/fwnode calls, including this new function.

These changes are based on the v4.7-rc3 kernel.

Changes in v3:
 - Use of_node_cmp() in device_get_named_child_node() to match DT node.

Changes in v2:
 - Rebase to v4.7-rc1
 - Small updates to codec patch based on previous reviewer comments

Adam Thomson (2):
  device property: Add function to search for named child of device
  ASoC: da7219: Convert driver to use generic device/fwnode functions

 drivers/base/property.c       |  28 ++++++++++++
 include/acpi/acpi_bus.h       |   7 +++
 include/linux/acpi.h          |   6 +++
 include/linux/of.h            |  14 +++---
 include/linux/property.h      |   3 ++
 sound/soc/codecs/da7219-aad.c | 103 +++++++++++++++++++++---------------------
 sound/soc/codecs/da7219.c     |  34 +++++++-------
 7 files changed, 119 insertions(+), 76 deletions(-)

--
1.9.3

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH v2 0/2] ASoC: da7219: Convert driver to use generic FW functions
@ 2016-06-01 18:06 Adam Thomson
  2016-06-01 18:06 ` [PATCH v3 2/2] ASoC: da7219: Convert driver to use generic device/fwnode functions Adam Thomson
  0 siblings, 1 reply; 8+ messages in thread
From: Adam Thomson @ 2016-06-01 18:06 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	Greg Kroah-Hartman, Robert Moore, Lv Zheng, Rafael J.Wysocki,
	Mika Westerberg, Len Brown
  Cc: alsa-devel, Heikki Krogerus, Support Opensource, Hanjun Guo,
	linux-kernel, linux-acpi, Sathyanarayana Nujella,
	Suravee Suthikulpanit, Bjorn Helgaas, Andrew Morton,
	Andy Shevchenko, devel

This patch set converts the da7219 codec driver to use device/fwnode functions
to access properties, instead of the DT only of_* functions, allowing ACPI
to be used as well.

The DT bindings for da7219 have a device node for the main codec properties,
and a named child node (da7219_aad), which contains all of the accessory
detection related properties for the device. ACPI also supports this kind of
FW hierarchy (data only sub-nodes), but some support in the kernel needs to be
added to take make use of this in driver code.

The first patch adds functions to allow searching for a named child node of a
device, for both DT and ACPI, and the second patch updates the codec driver to
use the standard device/fwnode calls, including this new function.

These changes are based on the v4.7-rc1 kernel.

Changes in v2:
 - Rebase to v4.7-rc1
 - Small updates to codec patch based on previous reviewer comments

Adam Thomson (2):
  device property: Add function to search for named child of device
  ASoC: da7219: Convert driver to use generic device/fwnode functions

 drivers/base/property.c       |  28 ++++++++++++
 include/acpi/acpi_bus.h       |   7 +++
 include/linux/acpi.h          |   6 +++
 include/linux/property.h      |   3 ++
 sound/soc/codecs/da7219-aad.c | 103 +++++++++++++++++++++---------------------
 sound/soc/codecs/da7219.c     |  34 +++++++-------
 6 files changed, 112 insertions(+), 69 deletions(-)

--
1.9.3

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

end of thread, other threads:[~2016-06-14 15:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-14 13:56 [PATCH v3 0/2] ASoC: da7219: Convert driver to use generic FW functions Adam Thomson
2016-06-14 13:56 ` [PATCH v3 1/2] device property: Add function to search for named child of device Adam Thomson
     [not found]   ` <866c9edccdd89805f6a0c0aa92f8a78ae616ed61.1465908072.git.Adam.Thomson.Opensource-WBD+wuPFNBhBDgjK7y7TUQ@public.gmane.org>
2016-06-14 15:49     ` Rob Herring
2016-06-14 15:49       ` Rob Herring
2016-06-14 13:56 ` [PATCH v3 2/2] ASoC: da7219: Convert driver to use generic device/fwnode functions Adam Thomson
2016-06-14 14:14   ` Andy Shevchenko
2016-06-14 14:14     ` Andy Shevchenko
  -- strict thread matches above, loose matches on Subject: below --
2016-06-01 18:06 [PATCH v2 0/2] ASoC: da7219: Convert driver to use generic FW functions Adam Thomson
2016-06-01 18:06 ` [PATCH v3 2/2] ASoC: da7219: Convert driver to use generic device/fwnode functions Adam Thomson

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.