mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 05:24:12 +08:00
5fb859f79f
When a GSI channel is initially allocated, and after it has been reset, the hardware assumes its ring index is 0. And although we do initialize channels this way, the comments in the IPA code don't really explain this. For event rings, it doesn't matter what value we use initially, so using 0 is just fine. Add some information about the assumptions made by hardware above the definition of the gsi_ring structure in "gsi.h". Zero the index field for all rings (channel and event) when the ring is allocated. As a result, that function initializes all fields in the structure. Stop zeroing the index the top of gsi_channel_program(). Initially we'll use the index value set when the channel ring was allocated. And we'll explicitly zero the index value in gsi_channel_reset() before programming the hardware, adding a comment explaining why it's required. For event rings, use the index initialized by gsi_ring_alloc() rather than 0 when ringing the doorbell in gsi_evt_ring_program(). (It'll still be zero, but we won't assume that to be the case.) Use a local variable in gsi_evt_ring_program() that represents the address of the event ring's ring structure. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
gsi_private.h | ||
gsi_reg.h | ||
gsi_trans.c | ||
gsi_trans.h | ||
gsi.c | ||
gsi.h | ||
ipa_cmd.c | ||
ipa_cmd.h | ||
ipa_data-v3.1.c | ||
ipa_data-v3.5.1.c | ||
ipa_data-v4.2.c | ||
ipa_data-v4.5.c | ||
ipa_data-v4.9.c | ||
ipa_data-v4.11.c | ||
ipa_data.h | ||
ipa_endpoint.c | ||
ipa_endpoint.h | ||
ipa_gsi.c | ||
ipa_gsi.h | ||
ipa_interrupt.c | ||
ipa_interrupt.h | ||
ipa_main.c | ||
ipa_mem.c | ||
ipa_mem.h | ||
ipa_modem.c | ||
ipa_modem.h | ||
ipa_power.c | ||
ipa_power.h | ||
ipa_qmi_msg.c | ||
ipa_qmi_msg.h | ||
ipa_qmi.c | ||
ipa_qmi.h | ||
ipa_reg.c | ||
ipa_reg.h | ||
ipa_resource.c | ||
ipa_resource.h | ||
ipa_smp2p.c | ||
ipa_smp2p.h | ||
ipa_sysfs.c | ||
ipa_sysfs.h | ||
ipa_table.c | ||
ipa_table.h | ||
ipa_uc.c | ||
ipa_uc.h | ||
ipa_version.h | ||
ipa.h | ||
Kconfig | ||
Makefile |