]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: mailbox-test: avoid reading iomem twice
authorJassi Brar <jaswinder.singh@linaro.org>
Wed, 4 Nov 2015 03:27:22 +0000 (08:57 +0530)
committerJassi Brar <jaswinder.singh@linaro.org>
Wed, 4 Nov 2015 08:33:04 +0000 (14:03 +0530)
commit6dcec8626e50db1182ae12c5cd081ee251aad8a6
treeeefd6ab1f5a83007595753013d63d7085c0bc29d
parent8014ea346a9c0f811ffaf2a389ea436c69db96c7
mailbox: mailbox-test: avoid reading iomem twice

Don't pass mmio region as source to print_hex_dump() and then
again to memcpy_fromio(). Do it once and give print_hex_dump()
the buffer we just read the data in.

Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox-test.c