linux_dsm_epyc7002/drivers/net/ipa
Alex Elder 97e4692dda net: ipa: fix a bug in ipa_endpoint_stop()
In ipa_endpoint_stop(), for TX endpoints we set the number of retries
to 0.  When we break out of the loop, retries being 0 means we return
EIO rather than the value of ret (which should be 0).

Fix this by using a non-zero retry count for both RX and TX
channels, and just break out of the loop after calling
gsi_channel_stop() for TX channels.  This way only RX channels
will retry, and the retry count will be non-zero at the end
for TX channels (so the proper value gets returned).

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 713b6ebb4c)
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-05-06 17:41:11 -07:00
..
gsi_private.h soc: qcom: ipa: GSI headers 2020-03-08 22:07:09 -07:00
gsi_reg.h soc: qcom: ipa: GSI headers 2020-03-08 22:07:09 -07:00
gsi_trans.c soc: qcom: ipa: GSI transactions 2020-03-08 22:07:10 -07:00
gsi_trans.h soc: qcom: ipa: GSI transactions 2020-03-08 22:07:10 -07:00
gsi.c net: ipa: only reset channel twice for IPA v3.5.1 2020-05-06 17:36:04 -07:00
gsi.h net: ipa: rename db_enable flag 2020-05-06 17:36:04 -07:00
ipa_clock.c soc: qcom: ipa: clocking, interrupts, and memory 2020-03-08 22:07:09 -07:00
ipa_clock.h soc: qcom: ipa: clocking, interrupts, and memory 2020-03-08 22:07:09 -07:00
ipa_cmd.c soc: qcom: ipa: immediate commands 2020-03-08 22:07:10 -07:00
ipa_cmd.h soc: qcom: ipa: immediate commands 2020-03-08 22:07:10 -07:00
ipa_data-sc7180.c net: ipa: define SMEM memory region for IPA 2020-05-04 11:26:55 -07:00
ipa_data-sdm845.c net: ipa: remove endpoint delay mode feature 2020-05-06 17:37:54 -07:00
ipa_data.h net: ipa: remove endpoint delay mode feature 2020-05-06 17:37:54 -07:00
ipa_endpoint.c net: ipa: fix a bug in ipa_endpoint_stop() 2020-05-06 17:41:11 -07:00
ipa_endpoint.h soc: qcom: ipa: IPA endpoints 2020-03-08 22:07:10 -07:00
ipa_gsi.c soc: qcom: ipa: IPA interface to GSI 2020-03-08 22:07:10 -07:00
ipa_gsi.h soc: qcom: ipa: IPA interface to GSI 2020-03-08 22:07:10 -07:00
ipa_interrupt.c soc: qcom: ipa: clocking, interrupts, and memory 2020-03-08 22:07:09 -07:00
ipa_interrupt.h soc: qcom: ipa: clocking, interrupts, and memory 2020-03-08 22:07:09 -07:00
ipa_main.c net: ipa: rename db_enable flag 2020-05-06 17:36:04 -07:00
ipa_mem.c net: ipa: remove duplicated include from ipa_mem.c 2020-05-05 12:48:05 -07:00
ipa_mem.h net: ipa: redefine struct ipa_mem_data 2020-05-04 11:26:55 -07:00
ipa_modem.c soc: qcom: ipa: Add a missing '\n' in a log message 2020-04-12 11:44:18 -07:00
ipa_modem.h soc: qcom: ipa: modem and microcontroller 2020-03-08 22:07:10 -07:00
ipa_qmi_msg.c soc: qcom: ipa: AP/modem communications 2020-03-08 22:07:10 -07:00
ipa_qmi_msg.h soc: qcom: ipa: AP/modem communications 2020-03-08 22:07:10 -07:00
ipa_qmi.c soc: qcom: ipa: AP/modem communications 2020-03-08 22:07:10 -07:00
ipa_qmi.h soc: qcom: ipa: AP/modem communications 2020-03-08 22:07:10 -07:00
ipa_reg.c
ipa_reg.h
ipa_smp2p.c soc: qcom: ipa: AP/modem communications 2020-03-08 22:07:10 -07:00
ipa_smp2p.h soc: qcom: ipa: AP/modem communications 2020-03-08 22:07:10 -07:00
ipa_table.c soc: qcom: ipa: filter and routing tables 2020-03-08 22:07:10 -07:00
ipa_table.h soc: qcom: ipa: filter and routing tables 2020-03-08 22:07:10 -07:00
ipa_uc.c soc: qcom: ipa: modem and microcontroller 2020-03-08 22:07:10 -07:00
ipa_uc.h soc: qcom: ipa: modem and microcontroller 2020-03-08 22:07:10 -07:00
ipa_version.h
ipa.h net: ipa: define SMEM memory region for IPA 2020-05-04 11:26:55 -07:00
Kconfig remoteproc: clean up notification config 2020-03-16 17:31:51 -07:00
Makefile soc: qcom: ipa: support build of IPA code 2020-03-08 22:07:10 -07:00