Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Amit Pundir and committed by
Jassi Brar
8d7e5908 23e6a7ca

+2 -1
+1 -1
drivers/mailbox/Kconfig
··· 264 264 you want to build the Spreatrum mailbox controller driver. 265 265 266 266 config QCOM_IPCC 267 - bool "Qualcomm Technologies, Inc. IPCC driver" 267 + tristate "Qualcomm Technologies, Inc. IPCC driver" 268 268 depends on ARCH_QCOM || COMPILE_TEST 269 269 help 270 270 Qualcomm Technologies, Inc. Inter-Processor Communication Controller
+1
drivers/mailbox/qcom-ipcc.c
··· 277 277 .driver = { 278 278 .name = "qcom-ipcc", 279 279 .of_match_table = qcom_ipcc_of_match, 280 + .suppress_bind_attrs = true, 280 281 }, 281 282 }; 282 283