Re: [PATCH v5 5/9] soundwire: qcom: update register read/write routine

2021-03-30 Thread Vinod Koul
On 26-03-21, 06:39, Srinivas Kandagatla wrote: > + swrm->reg_write(swrm, SWRM_CMD_FIFO_WR_CMD, val); > + > + /* version 1.3 or less */ > + if (swrm->version <= 0x0103) > + usleep_range(150, 155); > + > + if (cmd_id == SWR_BROADCAST_CMD_ID) { > + /* > +

[PATCH v5 5/9] soundwire: qcom: update register read/write routine

2021-03-25 Thread Srinivas Kandagatla
In the existing code every soundwire register read and register write are kinda blocked. Each of these are using a special command id that generates interrupt after it successfully finishes. This is really overhead, limiting and not really necessary unless we are doing something special. We can si