diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-11-24 09:33:15 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-11-25 10:32:25 +0530 |
commit | 7ffaba042e0e997832032b2d7b062dc27a7ebb2d (patch) | |
tree | 51522bf17cae78a8ec1637f88c21584b1f0209c4 /drivers/soundwire | |
parent | 6e06a85556f9725865af91c9fe502c9669518ed5 (diff) | |
download | linux-7ffaba042e0e997832032b2d7b062dc27a7ebb2d.tar.gz linux-7ffaba042e0e997832032b2d7b062dc27a7ebb2d.tar.bz2 linux-7ffaba042e0e997832032b2d7b062dc27a7ebb2d.zip |
soundwire: bus: reset slave_notify status at each loop
The code loops multiple times to deal with pending interrupts, but we
never reset the slave_notify status.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20201124013318.8963-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r-- | drivers/soundwire/bus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/soundwire/bus.c b/drivers/soundwire/bus.c index 45131b9f5080..d6e646521819 100644 --- a/drivers/soundwire/bus.c +++ b/drivers/soundwire/bus.c @@ -1425,7 +1425,7 @@ static int sdw_handle_slave_alerts(struct sdw_slave *slave) u8 clear = 0, bit, port_status[15] = {0}; int port_num, stat, ret, count = 0; unsigned long port; - bool slave_notify = false; + bool slave_notify; u8 sdca_cascade = 0; u8 buf, buf2[2], _buf, _buf2[2]; bool parity_check; @@ -1467,6 +1467,8 @@ static int sdw_handle_slave_alerts(struct sdw_slave *slave) } do { + slave_notify = false; + /* * Check parity, bus clash and Slave (impl defined) * interrupt |