]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: wwan: iosm: fixes unnecessary doorbell send
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>
Thu, 9 Dec 2021 10:16:27 +0000 (15:46 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Dec 2021 16:10:35 +0000 (08:10 -0800)
commit373f121a3c3a741f90b2a81f120f37c539fa0c86
treef84023410b0dac3c72ef46b7fd5bc220a0452a6d
parente8b1d7698038e76363859fb47ae0a262080646f5
net: wwan: iosm: fixes unnecessary doorbell send

In TX packet accumulation flow transport layer is
giving a doorbell to device even though there is
no pending control TX transfer that needs immediate
attention.

Introduced a new hpda_ctrl_pending variable to keep
track of pending control TX transfer. If there is a
pending control TX transfer which needs an immediate
attention only then give a doorbell to device.

Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wwan/iosm/iosm_ipc_imem.c