Skip to content

ASoC: da7219: Convert driver to use generic FW functions

Adam Thomson alsa-devel linux-acpi linux-devicetree lkml 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 7 repliesIn review
  2. v3 posting 3/32 patches 11 repliesSuperseded
  3. v3 posting 2/32 patches 2 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v3 posting 1/31 of 2 patches0 repliesSuperseded
v2 posting 2/21 of 2 patches6 repliesSuperseded
v2 posting 1/21 of 2 patches3 repliesSuperseded
v11 of 2 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Rebase to v4.7-rc4
- Use strcmp() in acpi_data_node_match() for matching ACPI data nodes.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2device property: Add function to search for named child of devicedrivers/base/property.c include/acpi/acpi_bus.h include/linux/acpi.h +2 more+51 -70 replies
2/2ASoC: da7219: Convert driver to use generic device/fwnode functionssound/soc/codecs/da7219-aad.c sound/soc/codecs/da7219.c+68 -690 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSathyanarayana NujellaRob HerringAndy Shevchenko
1/2A-b A-b
2/2A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/2] ASoC: da7219: Convert driver to use generic FW functions

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-rc4 kernel.

Changes in v4:
- Rebase to v4.7-rc4
- Use strcmp() in acpi_data_node_match() for matching ACPI data nodes.

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