Merge "soc: qcom: glink_smem_native_xport: Add readback to write index"

This commit is contained in:
Linux Build Service Account 2017-11-05 22:33:07 -08:00 committed by Gerrit - the friendly Code Review server
commit a1b1b96ce3

View file

@ -225,6 +225,7 @@ struct edge_info {
spinlock_t rt_vote_lock;
uint32_t rt_votes;
uint32_t num_pw_states;
uint32_t readback;
unsigned long *ramp_time_us;
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
* before the interrupt is triggered
*/
einfo->readback = einfo->tx_ch_desc->write_index;
wmb();
writel_relaxed(einfo->out_irq_mask, einfo->out_irq_reg);
einfo->tx_irq_count++;