ASoC: SOF: ops: fallback to mmio in helpers
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 24 Oct 2022 16:52:55 +0000 (11:52 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 26 Oct 2022 13:17:52 +0000 (14:17 +0100)
commit01278cb6fa82083000a9e0b56c8b004caf5b6a73
tree35c087f1438470e9b9f62be3b7db63b0bd4dc9d7
parent2cfcc1085d3b7b7c893be41034853d4c63a41092
ASoC: SOF: ops: fallback to mmio in helpers

Returning an error when a read/write is not implemented makes no
sense, especially on read where no return value makes sense.

Change the logic to directly fallback to mmio. If a platform truly
wants other read/writes that are not plain vanilla mmio, it needs to
implement its own routines.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20221024165310.246183-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ops.h