linux-stable/drivers/soundwire
Pierre-Louis Bossart 9c49a4dd6c soundwire: intel: simplify sync_go sequence
In the existing code, the SHIM_SYNC::SYNC_GO bit is set, and the code
waits for it to return to zero.

That second wait part is just wrong: the SYNC_GO bit is *write-only* so
there's no way to know if it's cleared by hardware. The code works
because the value for a read-only bit is zero, but that's really just
luck.

Simplify the sequence to a plain read-modify-write.

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>
Link: https://lore.kernel.org/r/20230314015410.487311-6-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2023-03-15 19:24:02 +05:30
..
bus.c soundwire: cadence: further simplify low-level xfer_msg_defer() callback 2023-01-31 20:01:52 +05:30
bus.h soundwire: bus: remove sdw_defer argument in sdw_transfer_defer() 2023-01-31 19:57:17 +05:30
bus_type.c soundwire updates for 6.3 2023-02-24 17:29:52 -08:00
cadence_master.c soundwire: cadence: further simplify low-level xfer_msg_defer() callback 2023-01-31 20:01:52 +05:30
cadence_master.h soundwire: cadence: further simplify low-level xfer_msg_defer() callback 2023-01-31 20:01:52 +05:30
debugfs.c soundwire: debugfs: Switch to sdw_read_no_pm 2023-01-09 21:46:27 +05:30
dmi-quirks.c soundwire: dmi-quirks: add remapping for Intel 'Rooks County' NUC M15 2023-03-15 19:23:57 +05:30
generic_bandwidth_allocation.c soundwire: bandwidth allocation: improve error messages 2021-05-11 17:34:07 +05:30
intel.c soundwire: intel: simplify sync_go sequence 2023-03-15 19:24:02 +05:30
intel.h soundwire: intel: move common definitions to header file 2023-03-15 19:24:01 +05:30
intel_auxdevice.c soundwire: bus: Remove unused reset_page_addr() callback 2023-01-31 17:36:14 +05:30
intel_auxdevice.h soundwire: intel: split auxdevice to different file 2022-11-23 20:11:49 +05:30
intel_init.c soundwire updates for 6.2 2022-12-19 08:47:33 -06:00
Kconfig soundwire: intel: move to auxiliary bus 2021-06-14 10:12:26 +05:30
Makefile soundwire: intel: split auxdevice to different file 2022-11-23 20:11:49 +05:30
master.c soundwire: master: use pm_runtime_set_active() on add 2020-12-02 12:49:34 +05:30
mipi_disco.c soundwire: fix port_ready[] dynamic allocation in mipi_disco 2020-09-03 16:02:29 +05:30
qcom.c Merge branch 'fixes' into next 2022-11-23 19:51:09 +05:30
slave.c Char / Misc driver changes for 6.0-rc1 2022-08-04 11:05:48 -07:00
stream.c soundwire updates for 6.3 2023-02-24 17:29:52 -08:00
sysfs_local.h soundwire: sysfs: add slave status and device number before probe 2020-09-28 11:17:43 +05:30
sysfs_slave.c soundwire: sysfs: Constify static struct attribute_group 2021-01-19 20:21:20 +05:30
sysfs_slave_dpn.c soundwire: Fix DEBUG_LOCKS_WARN_ON for uninitialized attribute 2020-11-24 14:08:51 +05:30