]> git.baikalelectronics.ru Git - kernel.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)
commite287f5b2b6884caf9f8f27b4c7e638d87730c51c
treef84023410b0dac3c72ef46b7fd5bc220a0452a6d
parentcf1a757bf33550aef0f47806156d984ddc35c914
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