Commit fa587d4b authored by Hante Meuleman's avatar Hante Meuleman Committed by John W. Linville

brcmfmac: Always use fifo_credits, also for requested credits.

Currently firmware requested credits do not require fifo credits.
From a buffer management point of view this is incorrect. So
firwmware requested credits require also fifo credits before the
packet can be transferred to the host.
Reviewed-by: default avatarArend Van Spriel <arend@broadcom.com>
Signed-off-by: default avatarHante Meuleman <meuleman@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d5346171
...@@ -179,11 +179,11 @@ ssize_t brcmf_debugfs_fws_stats_read(struct file *f, char __user *data, ...@@ -179,11 +179,11 @@ ssize_t brcmf_debugfs_fws_stats_read(struct file *f, char __user *data,
fwstats->send_pkts[0], fwstats->send_pkts[1], fwstats->send_pkts[0], fwstats->send_pkts[1],
fwstats->send_pkts[2], fwstats->send_pkts[3], fwstats->send_pkts[2], fwstats->send_pkts[3],
fwstats->send_pkts[4], fwstats->send_pkts[4],
fwstats->fifo_credits_sent[0], fwstats->requested_sent[0],
fwstats->fifo_credits_sent[1], fwstats->requested_sent[1],
fwstats->fifo_credits_sent[2], fwstats->requested_sent[2],
fwstats->fifo_credits_sent[3], fwstats->requested_sent[3],
fwstats->fifo_credits_sent[4]); fwstats->requested_sent[4]);
return simple_read_from_buffer(data, count, ppos, buf, res); return simple_read_from_buffer(data, count, ppos, buf, res);
} }
......
...@@ -141,8 +141,7 @@ struct brcmf_fws_stats { ...@@ -141,8 +141,7 @@ struct brcmf_fws_stats {
u32 header_pulls; u32 header_pulls;
u32 pkt2bus; u32 pkt2bus;
u32 send_pkts[5]; u32 send_pkts[5];
u32 fifo_credits_sent[5]; u32 requested_sent[5];
u32 fifo_credits_back[6];
u32 generic_error; u32 generic_error;
u32 mac_update_failed; u32 mac_update_failed;
u32 mac_ps_update_failed; u32 mac_ps_update_failed;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment