ASoC: SOF: relax ABI checks and avoid unnecessary warnings
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Thu, 11 Feb 2021 17:24:40 +0000 (19:24 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 11 Feb 2021 17:31:56 +0000 (17:31 +0000)
commit53129e66e4b716ea7cffa4477a96ccb48f78e7ac
tree565c6e791bf98f8dce7b323d12d43788ab40acc7
parentec9d68508ff65df1dc24cf8100eb40ddd196c2fd
ASoC: SOF: relax ABI checks and avoid unnecessary warnings

With recent SOF 1.7 pre-releases, kernel has been emitting following
warnings at probe:

[10006.645216] sof-audio-pci 0000:00:1f.3: warn: FW ABI is more recent than kernel
[10006.652137] sof-audio-pci 0000:00:1f.3: warn: topology ABI is more recent than kernel

The warnings are emitted due to increase of the patch-level in firmware
mainline (to 3.17.1). But the patch level should not be considered even
in the strict ABI check, so modify the kernel side logic that makes the
check and only consider the major.minor components.

BugLink: https://github.com/thesofproject/linux/issues/2647
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20210211172440.2371447-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc.c
sound/soc/sof/topology.c