mailbox: qcom-ipcc: Enable loading QCOM_IPCC as a module

This patch enables the qcom_ipcc driver to be loaded as a
module. IPCC is fairly core to system, so as such it should
never be unloaded. It registers as a mailbox + irq controller
and the irq controller drivers in kernel are not supposed to
be unloaded as they don't have the visibility over the clients
consuming the irqs. Hence adding supress_bind_attrs to disable
bind/unbind via sysfs.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
This commit is contained in:
Amit Pundir 2021-07-16 13:19:46 +05:30 committed by Jassi Brar
parent 23e6a7ca46
commit 8d7e5908c0
2 changed files with 2 additions and 1 deletions

View File

@ -264,7 +264,7 @@ config SPRD_MBOX
you want to build the Spreatrum mailbox controller driver. you want to build the Spreatrum mailbox controller driver.
config QCOM_IPCC config QCOM_IPCC
bool "Qualcomm Technologies, Inc. IPCC driver" tristate "Qualcomm Technologies, Inc. IPCC driver"
depends on ARCH_QCOM || COMPILE_TEST depends on ARCH_QCOM || COMPILE_TEST
help help
Qualcomm Technologies, Inc. Inter-Processor Communication Controller Qualcomm Technologies, Inc. Inter-Processor Communication Controller

View File

@ -277,6 +277,7 @@ static struct platform_driver qcom_ipcc_driver = {
.driver = { .driver = {
.name = "qcom-ipcc", .name = "qcom-ipcc",
.of_match_table = qcom_ipcc_of_match, .of_match_table = qcom_ipcc_of_match,
.suppress_bind_attrs = true,
}, },
}; };