]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: add read_ping_status helper definition in manager ops
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 14 Jul 2022 01:10:40 +0000 (09:10 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 17 Aug 2022 12:00:52 +0000 (13:00 +0100)
commit601aca9f45899c5a7586c61bbb7f443aea3137b8
tree04456ebcc33db3580a6a95357e27bcfae5b90db1
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
soundwire: add read_ping_status helper definition in manager ops

The existing manager ops provide callbacks to transfer read/write
commands, but don't allow for direct access to PING status
register. This is accessible in all existing IP, and would help
diagnose timeouts or resume issues by reporting the 'true' status
instead of the internal status reported by the IP.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Acked-By: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20220714011043.46059-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/soundwire/sdw.h