Skip to content

Commit 8d7e590

Browse files
pundiramitJassiBrar
authored andcommitted
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>
1 parent 23e6a7c commit 8d7e590

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/mailbox/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ config SPRD_MBOX
264264
you want to build the Spreatrum mailbox controller driver.
265265

266266
config QCOM_IPCC
267-
bool "Qualcomm Technologies, Inc. IPCC driver"
267+
tristate "Qualcomm Technologies, Inc. IPCC driver"
268268
depends on ARCH_QCOM || COMPILE_TEST
269269
help
270270
Qualcomm Technologies, Inc. Inter-Processor Communication Controller

drivers/mailbox/qcom-ipcc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ static struct platform_driver qcom_ipcc_driver = {
277277
.driver = {
278278
.name = "qcom-ipcc",
279279
.of_match_table = qcom_ipcc_of_match,
280+
.suppress_bind_attrs = true,
280281
},
281282
};
282283

0 commit comments

Comments
 (0)