]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: ti-msgmgr: Allocate Rx channel resources only on request
authorNishanth Menon <nm@ti.com>
Mon, 16 Jul 2018 18:06:03 +0000 (13:06 -0500)
committerJassi Brar <jaswinder.singh@linaro.org>
Fri, 3 Aug 2018 13:27:41 +0000 (18:57 +0530)
commit8c6311a4f1ccb4dfeefd60a255a289c2e0a37f0e
tree70d0fb04461bf92901dd4eb7c8b6212109745818
parent82e2094fa3633dcb1a2db300b1932f48206d1332
mailbox: ti-msgmgr: Allocate Rx channel resources only on request

In a much bigger system SoCs, the number of Rx channels can be
many and mostly unused based on the system of choice, and not all
Rx channels need IRQs and allocating all memory at probe will be
inefficient. Some SoCs could have total threads in the 100s and usage
would be just 1 Rx thread.

Thus, request and map the IRQs and allocate memory only when needed.

Since these channels are requested by client drivers on need, our
utilization will be optimal.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/ti-msgmgr.c