[PATCH 0/7] soundwire: intel: introduce hw_ops and move auxdevice handling to dedicated file

From: Bard Liao
Date: Thu Nov 10 2022 - 20:29:52 EST


This series adds yet another set of cleanups
a) all the helpers are now exposed as hw_ops callbacks
b) the auxiliary device code is now completely generic.

This will allow for easier introduction of new hw_ops implementations in
the future without throwing away all the goodness of the auxiliary device
handling. Since there will be a tighter coupling with HDaudio, it's likely
that future hw_ops are implemented in the SOF driver directly.

Pierre-Louis Bossart (7):
soundwire: intel: start using hw_ops
soundwire: intel: add debugfs callbacks in hw_ops
soundwire: intel: add register_dai callback in hw_ops
soundwire: intel: add bus management callbacks in hw_ops
soundwire: intel: add link power management callbacks in hw_ops
soundwire: intel: add in-band wake callbacks in hw_ops
soundwire: intel: split auxdevice to different file

drivers/soundwire/Makefile | 2 +-
drivers/soundwire/intel.c | 658 +--------------------------
drivers/soundwire/intel.h | 96 +++-
drivers/soundwire/intel_auxdevice.c | 678 ++++++++++++++++++++++++++++
drivers/soundwire/intel_auxdevice.h | 18 +
drivers/soundwire/intel_init.c | 2 +
include/linux/soundwire/sdw_intel.h | 44 ++
sound/soc/sof/intel/hda.c | 2 +
8 files changed, 853 insertions(+), 647 deletions(-)
create mode 100644 drivers/soundwire/intel_auxdevice.c
create mode 100644 drivers/soundwire/intel_auxdevice.h

--
2.25.1