summaryrefslogtreecommitdiff
path: root/drivers/slimbus/qcom-ngd-ctrl.c
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2021-08-09 09:24:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-13 10:22:30 +0200
commita263c1ff6abe0e66712f40d595bbddc7a35907f8 (patch)
tree60e1ca62d8a3dda404dd97f1c67b416637f99a3b /drivers/slimbus/qcom-ngd-ctrl.c
parent9659281ce78de0f15a4aa124da8f7450b1399c09 (diff)
slimbus: messaging: check for valid transaction id
In some usecases transaction ids are dynamically allocated inside the controller driver after sending the messages which have generic acknowledge responses. So check for this before refcounting pm_runtime. Without this we would end up imbalancing runtime pm count by doing pm_runtime_put() in both slim_do_transfer() and slim_msg_response() for a single pm_runtime_get() in slim_do_transfer() Fixes: d3062a210930 ("slimbus: messaging: add slim_alloc/free_txn_tid()") Cc: <stable@vger.kernel.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20210809082428.11236-3-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/slimbus/qcom-ngd-ctrl.c')
0 files changed, 0 insertions, 0 deletions