]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: mailbox-test: allow reserved areas in SRAM
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 29 Nov 2016 14:37:05 +0000 (14:37 +0000)
committerJassi Brar <jaswinder.singh@linaro.org>
Mon, 19 Dec 2016 14:40:23 +0000 (20:10 +0530)
commit1914b03093e69290a7fe2961714978a9798a6b10
treeeecf14f74e78d61c80e844cb439892203f748ae2
parent92d5f6fb1e72091d1190cb5b5cb4437f06338f2a
mailbox: mailbox-test: allow reserved areas in SRAM

When CONFIG_SRAM is enable and the SRAM region is found, the entire SRAM
region resource is requested and marked as occupied by SRAM driver even
if certain parts of regions is marked reserved.

It's quite possible that a small region of the SRAM is reserved for all
the mailbox communication and hence it may fail to request the region
as it's already marked busy region.

This patch tries to just do a ioremap of this mailbox memory region if
it finds it busy.

Cc: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox-test.c