mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 05:20:53 +07:00
soundwire: stream: use sdw_write instead of update
There is no point in using update for registers with write mask as 0xFF, this adds unnecessary traffic on the bus. Just use sdw_write directly. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200312100105.5293-1-srinivas.kandagatla@linaro.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
5de79ba865
commit
0b43fef979
@ -313,9 +313,9 @@ static int sdw_enable_disable_slave_ports(struct sdw_bus *bus,
|
||||
* it is safe to reset this register
|
||||
*/
|
||||
if (en)
|
||||
ret = sdw_update(s_rt->slave, addr, 0xFF, p_rt->ch_mask);
|
||||
ret = sdw_write(s_rt->slave, addr, p_rt->ch_mask);
|
||||
else
|
||||
ret = sdw_update(s_rt->slave, addr, 0xFF, 0x0);
|
||||
ret = sdw_write(s_rt->slave, addr, 0x0);
|
||||
|
||||
if (ret < 0)
|
||||
dev_err(&s_rt->slave->dev,
|
||||
@ -464,10 +464,9 @@ static int sdw_prep_deprep_slave_ports(struct sdw_bus *bus,
|
||||
addr = SDW_DPN_PREPARECTRL(p_rt->num);
|
||||
|
||||
if (prep)
|
||||
ret = sdw_update(s_rt->slave, addr,
|
||||
0xFF, p_rt->ch_mask);
|
||||
ret = sdw_write(s_rt->slave, addr, p_rt->ch_mask);
|
||||
else
|
||||
ret = sdw_update(s_rt->slave, addr, 0xFF, 0x0);
|
||||
ret = sdw_write(s_rt->slave, addr, 0x0);
|
||||
|
||||
if (ret < 0) {
|
||||
dev_err(&s_rt->slave->dev,
|
||||
|
Loading…
Reference in New Issue
Block a user