Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1081059pxv; Fri, 16 Jul 2021 00:51:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVXLXiYOcjaegYk7dUjM/YgawPqplpQ7eVzbyPgab+2xzbcAna40hdfuvzrSP2yfK0XnFf X-Received: by 2002:a05:6402:520c:: with SMTP id s12mr13176547edd.357.1626421892504; Fri, 16 Jul 2021 00:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626421892; cv=none; d=google.com; s=arc-20160816; b=JK9CQX4CH9javUQOwoN9dWL6q6UJX1sVx+eER5oA/TTgqmE5kP7oEEhnQOEYShp4lO Ncb1ravIv46gtzSSAcfdNt5UNY7z9Slc9RJpOQBsQNka45cvpAzk0kQFm19yhlj/V2xV vPDqLW2AlqE9uJpREkadKW8+sgy2cqWTnI5cptpf2l1OfHZv02J7WDmpyeXw+yLipbul ThuirtqKs+MJ4KoPY5wfh38ND6tCGCwt2aV5X0lSN3kZr8G/MvUJ+UwZHPbia7ZaU2BJ 7G7qBoVUfNCjjG7M/i1k/8pDDZe4QNerwUrTEj4cGj98ScLR/+S0Rq57Iea4qGT/9anW BcTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hbqcc05b9cC+3ePQ+rhBVXntvQzobwWv88CxyXirmFc=; b=0frMwNMdDcpUsNZgXZ5fCJoTL6MQZJjJqCL1Xxkr2m2NUSZIPFAeaNf7lE6DQBTPva /Fdes59E5Ju8g/2XR8k6ltzTXRrndRwC9iNlZc5z9GZVvJ/tvs9JecsZAcB1YeBG2sTJ VqDvDgW4SFUk/kILIXV90p01YVkByVOCDPOmIYh0d+FlHlmcGXidL6mQ9h52kWf6Yn0d 85deChRl1Uq58IbvKajCKQ5TWFXL0P9sOt+73ER5+aL/Ni9gv9tnSgK5SEXVglClafkN kjSPxVSpVFYLBJyNgP5TuRz9al3L6r+tX3y5Mbmg0s6iSiIAEIueMb7JyuoHkHQHCiHF +jdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=coZyTMpZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si12740984edc.333.2021.07.16.00.51.08; Fri, 16 Jul 2021 00:51:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=coZyTMpZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236624AbhGPHwv (ORCPT + 99 others); Fri, 16 Jul 2021 03:52:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236652AbhGPHwq (ORCPT ); Fri, 16 Jul 2021 03:52:46 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CDBBC061760 for ; Fri, 16 Jul 2021 00:49:51 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id o4so4539020pgs.6 for ; Fri, 16 Jul 2021 00:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hbqcc05b9cC+3ePQ+rhBVXntvQzobwWv88CxyXirmFc=; b=coZyTMpZMmDFrPZ73mXbeS8jAaekB1mTswMIPGHWlDIIcjlB188tGixF9QBxy+FOuP o3Ts6ip+Y1Ore36Gc5r5xuBBGnkvJg/dqDxdyA4ZDhmgKIYwteem9+eGn5gTvoF2zv8o SrvuxLQjx1QuuptlDmOIA5Pmzl/VYAU3ID//dGnsLHgkxzuHdHZ8kPU7mgIEQJw0Sd7H bugqTuitPrb6UHhH3lqDmrhjieTWXFeyTI2ERv6GG/uvd8bOUUIrQzFl2pMIjGxlUWn5 rZiQYZQ2GqeBAc0WKgI1bmpX970BXF21HJHUNRMtsga5NdSTiLopLdnEosn5LrrzrcYU ZRPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hbqcc05b9cC+3ePQ+rhBVXntvQzobwWv88CxyXirmFc=; b=pYUr5PFHm9NBKOZnqH+TD9ahq39enhdMr3zCgBuZF3Hn/nJponCimk3W9s0Hsq+ExV a4UoqgqXSRuv4V3E+V1XmI1Aw302nbmzdN6Jr/lVADabGGT9uxnytiEp/4TYX8jizqp9 n8NpfA+MKccEouVDZ/768SxkbrPqcVcrZF/4zPd5NnimYYbtIlfo7ctQjq2oVwppAT9A vcBv6rznk+VrQpxEXD7+2vS5JMjag8eqr+cplQn+xlPvu9FhwWXDzmbv70+IEjGUiOnm 4049lw5sZjQmrjqHO3HqLhPBqL8EWy6vDVeqqoJ8ImicId5xAY8h47xh+1G/7BoSS6eV MPFw== X-Gm-Message-State: AOAM532G6mb5Bbi1hoyD1/2FrXbHLq0LrL25RSP1ErUQioqIDp/ySVcS P5C7trkxXX3ROOFdl0de25+h2g== X-Received: by 2002:a05:6a00:ccf:b029:329:308f:9ef6 with SMTP id b15-20020a056a000ccfb0290329308f9ef6mr8961329pfv.24.1626421791019; Fri, 16 Jul 2021 00:49:51 -0700 (PDT) Received: from localhost.localdomain ([49.207.205.206]) by smtp.gmail.com with ESMTPSA id 85sm9082706pfz.76.2021.07.16.00.49.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jul 2021 00:49:50 -0700 (PDT) From: Amit Pundir To: Jassi Brar , Andy Gross , Bjorn Andersson , Manivannan Sadhasivam , Dmitry Baryshkov Cc: linux-arm-msm , lkml Subject: [PATCH] mailbox: qcom-ipcc: Enable loading QCOM_IPCC as a module Date: Fri, 16 Jul 2021 13:19:46 +0530 Message-Id: <20210716074946.4093-1-amit.pundir@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/mailbox/Kconfig | 2 +- drivers/mailbox/qcom-ipcc.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig index b4b780ea2ac8..c9fc06c7e685 100644 --- a/drivers/mailbox/Kconfig +++ b/drivers/mailbox/Kconfig @@ -264,7 +264,7 @@ config SPRD_MBOX you want to build the Spreatrum mailbox controller driver. config QCOM_IPCC - bool "Qualcomm Technologies, Inc. IPCC driver" + tristate "Qualcomm Technologies, Inc. IPCC driver" depends on ARCH_QCOM || COMPILE_TEST help Qualcomm Technologies, Inc. Inter-Processor Communication Controller diff --git a/drivers/mailbox/qcom-ipcc.c b/drivers/mailbox/qcom-ipcc.c index 584700cd1585..f1d4f4679b17 100644 --- a/drivers/mailbox/qcom-ipcc.c +++ b/drivers/mailbox/qcom-ipcc.c @@ -277,6 +277,7 @@ static struct platform_driver qcom_ipcc_driver = { .driver = { .name = "qcom-ipcc", .of_match_table = qcom_ipcc_of_match, + .suppress_bind_attrs = true, }, }; -- 2.25.1