Merge "soc: qcom: glink_smem_native_xport: Add readback to write index"
This commit is contained in:
commit
a1b1b96ce3
1 changed files with 2 additions and 0 deletions
|
@ -225,6 +225,7 @@ struct edge_info {
|
||||||
spinlock_t rt_vote_lock;
|
spinlock_t rt_vote_lock;
|
||||||
uint32_t rt_votes;
|
uint32_t rt_votes;
|
||||||
uint32_t num_pw_states;
|
uint32_t num_pw_states;
|
||||||
|
uint32_t readback;
|
||||||
unsigned long *ramp_time_us;
|
unsigned long *ramp_time_us;
|
||||||
struct mailbox_config_info *mailbox;
|
struct mailbox_config_info *mailbox;
|
||||||
};
|
};
|
||||||
|
@ -269,6 +270,7 @@ static void send_irq(struct edge_info *einfo)
|
||||||
* Any data associated with this event must be visable to the remote
|
* Any data associated with this event must be visable to the remote
|
||||||
* before the interrupt is triggered
|
* before the interrupt is triggered
|
||||||
*/
|
*/
|
||||||
|
einfo->readback = einfo->tx_ch_desc->write_index;
|
||||||
wmb();
|
wmb();
|
||||||
writel_relaxed(einfo->out_irq_mask, einfo->out_irq_reg);
|
writel_relaxed(einfo->out_irq_mask, einfo->out_irq_reg);
|
||||||
einfo->tx_irq_count++;
|
einfo->tx_irq_count++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue