slimbus: messaging: start transaction ids from 1 instead of zero
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 9 Aug 2021 08:24:25 +0000 (09:24 +0100)
committerSasha Levin <sashal@kernel.org>
Thu, 26 Aug 2021 12:36:20 +0000 (08:36 -0400)
commit0786d315f55c3b5a6cf3e34065360bf1f2e4dada
treed52501a339262eae1e1c5d450d21c4563fa935e4
parent20c2f141b1e58cdc07cd33c84a5a01f2ce5ec3eb
slimbus: messaging: start transaction ids from 1 instead of zero

[ Upstream commit 9659281ce78de0f15a4aa124da8f7450b1399c09 ]

As tid is unsigned its hard to figure out if the tid is valid or
invalid. So Start the transaction ids from 1 instead of zero
so that we could differentiate between a valid tid and invalid tids

This is useful in cases where controller would add a tid for controller
specific transfers.

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-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/slimbus/messaging.c