]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mailbox: test: really ignore optional memory resources
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 27 Mar 2026 15:11:44 +0000 (16:11 +0100)
committerJassi Brar <jassisinghbrar@gmail.com>
Sun, 29 Mar 2026 15:56:38 +0000 (10:56 -0500)
commit9efbbf810ee3e50360daa83cb8e0cc5ab998cef3
treec7ae01dfc62f5c855383a2e6bbfb8ebd56338825
parent8a19c5aa2f04c38926318d128f57f0c350bab4c6
mailbox: test: really ignore optional memory resources

Memory resources are optional but if the resource is empty
devm_platform_get_and_ioremap_resource() prints an error nonetheless.
Refactor the code to check the resources locally first and process them
only if they are present. The -EBUSY error message of ioremap_resource()
is still kept because it is correct. The comment which explains that a
plain ioremap() is tried as a workaround is turned into a info message.
So, a user will be informed about it, too.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/mailbox-test.c