From patchwork Tue Jun 16 06:13:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 187968 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp3370308ilo; Mon, 15 Jun 2020 23:13:44 -0700 (PDT) X-Received: by 2002:a63:66c1:: with SMTP id a184mr888085pgc.331.1592288023876; Mon, 15 Jun 2020 23:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592288023; cv=none; d=google.com; s=arc-20160816; b=P4cV1LAoNyJgCf5b4pqYSOeDQZ76oWwkj/rIp0XYNyxT+3UPqnowvQJJglJ85+77RO fNdefiLf27oz+Ok0QbPk4POLqPAA1no3XEynQP91wkSbCa2bkDJCCBIqJ90KQiwXiDKi gDzu9mYXOb8JVVmlHK0btCxcnEvWUQjklPIz+RRtd7muX9DJpuLVWCs6+82hmULQAhhZ tJWjvzkMTzhn1OduQP0grEc5oeUcINU2+efcaQ6s9QB6Tr0qJ4p4sNo8pY9aP/Wv1r5f 7qj6Yt4mzVur5Cel8euBceUilmcAtSoD9n0/s6H7AibbldMew9zDe/xyIUE09eIN7IDL G8lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=h4JqKpoTJwOLVa4Di6JSd/Ph+43PAaMLhE3KrwrB/cQ=; b=bEF6jR0JQbDJhZNmEIXiYYtMyyCg5rEJ7aBYamcVxhT+KP4xy6bUyaG+0BXVN29iWQ uv88WH5s0xcR9wPBbDjVqGtHIzXyhdbBofFfDKF9BLEM6e0dL/FO3Wji7zHtQLRC+DAH XmE21QhXt3JcjnoccyUiy/m+SC4MPvhmvU6S4gdlCo1mN+g0KlPCkEtjxOZcnsz5T0bm LA+8hdw4zqwKrXbl4fPClpAZ5EvlNLWWRRZupLTpydoVogWi+LOwvq3zfL0MUwmGbA/4 26RAvf5ReOxtHxv/wscaXFZWaqy1l8UR40kcd8QDFiiuHI/rIOuDKwxsmITareP0Pra/ XPYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aIIoFqiw; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id c11sor2127003pjq.7.2020.06.15.23.13.43 for (Google Transport Security); Mon, 15 Jun 2020 23:13:43 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aIIoFqiw; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h4JqKpoTJwOLVa4Di6JSd/Ph+43PAaMLhE3KrwrB/cQ=; b=aIIoFqiwCuM3dby19TgymneGR+eeoT1Wxy2TPpRkJqUdrynkdRP8+CNDZi8knMQXSA f6Bnkylgm0SyUXod2iE5akD5Gq/nK9BJ96sFopeuj+cDyIrPembwe8QM5m9mgdTOvT/p 95P3wC7lRmPEoi2hm5fpeVSFDjBKYxmhYTmzVw3juKPimfKhaq0XCfwXn9MoK/NPKS8v fgds0I21HWcIzLuqkAxiS2DAXTEESOnA37rEYOfIy2DG1XAnGRh/eAXCdqoPN1mDr2EJ gAtL26MemRtwwpZCy39jr2cpC4DNJ+Q5ORFGwo52pyKJV0BZ9VXCJSBmyLvzLfGUCnLK 4aVA== 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:in-reply-to :references; bh=h4JqKpoTJwOLVa4Di6JSd/Ph+43PAaMLhE3KrwrB/cQ=; b=jOp+DLVG3K+tl3dMVA7EgAcA6YRc+y/M2cHy6Ky51x2+lY7WkgtdMiJTHyxC7nsi/x i22929oZJ6vIue6Y9o4B9YybFlNv7LBFAKVHJjWymSSoMkaOjRQrRpXFUSJToyfKcX7g tZ/sy36WTbK9+l15ENGA4KK0pyaGUSSLlP2Bcs0TMmIIEq5U0XbBQzjsHS6eJec2n2pm K85sBObKnPT4jPkaqzVTXwlHjV3VuYr8eBVnHmPJ9UzaJHHeEbCOcyn5HkvqkJOuFMLb EtlAjC0adLyv7LprF4ZIDUS4wHCdS7+YhynP1TsSaf9ME1cAZSerRM0CA49yIDB3sA7W ARlA== X-Gm-Message-State: AOAM533HyI4TCQ1V5uhb+N5QwykCjv3PiJ6IktSECFWAWKSQVk8jVnuT uySGI1iwJsJy01lWujBS9iDild2N X-Google-Smtp-Source: ABdhPJwzygD/WHkWLyQJ6iGsnCwTqfRIFtsc++PcBZQkjKRMfUmeu8vpzS8kFNaT35Xwy6HpTPU4IQ== X-Received: by 2002:a17:90b:46ca:: with SMTP id jx10mr1362107pjb.3.1592288023527; Mon, 15 Jun 2020 23:13:43 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id i26sm15642032pfo.0.2020.06.15.23.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 23:13:43 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Andy Gross , Bjorn Andersson , Joerg Roedel , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Lina Iyer , Saravana Kannan , Todd Kjos , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, iommu@lists.linux-foundation.org, linux-gpio@vger.kernel.org Subject: [RFC][PATCH 1/5] irq: irqdomain: Export irq_domain_update_bus_token Date: Tue, 16 Jun 2020 06:13:34 +0000 Message-Id: <20200616061338.109499-2-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616061338.109499-1-john.stultz@linaro.org> References: <20200616061338.109499-1-john.stultz@linaro.org> Add export for irq_domain_update_bus_token() so that we can allow drivers like the qcom-pdc driver to be loadable as a module. Cc: Andy Gross Cc: Bjorn Andersson Cc: Joerg Roedel Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Linus Walleij Cc: Lina Iyer Cc: Saravana Kannan Cc: Todd Kjos Cc: Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org Cc: iommu@lists.linux-foundation.org Cc: linux-gpio@vger.kernel.org Signed-off-by: John Stultz --- kernel/irq/irqdomain.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index a4c2c915511d..ca974d965fda 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -281,6 +281,7 @@ void irq_domain_update_bus_token(struct irq_domain *domain, mutex_unlock(&irq_domain_mutex); } +EXPORT_SYMBOL_GPL(irq_domain_update_bus_token); /** * irq_domain_add_simple() - Register an irq_domain and optionally map a range of irqs From patchwork Tue Jun 16 06:13:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 187969 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp3370316ilo; Mon, 15 Jun 2020 23:13:45 -0700 (PDT) X-Received: by 2002:a17:902:aa92:: with SMTP id d18mr778267plr.210.1592288024923; Mon, 15 Jun 2020 23:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592288024; cv=none; d=google.com; s=arc-20160816; b=Wd3vCYjlcHhsU3ryblHK+Z0T6RI1OSgV49XmmiXCqVR0U7TbtvdPipWllxHQRb/3ci WX1jjojhLqXgv0d/CiOzT21bFVhIEtrUN/u6XgKAbDeJDwSgJtUotgt8HPN3VKbU9n1+ AM2Gw2KaCx9KJ+KBySEG3KWG4sQAVdi5LXeRux3tB9o8LXUQ56v7KzUiOJCm3odj23t/ ZnToLXRuXKsFwFDTk+9+uo6ZpPOVuhRTWmPYj0YE5ddjc0Z5PYP3UVcjth+ZAaVLztI6 JI+guABGR1cNbH2p9Nv9LpsKzIqUeFaZf+dV53KcH8uyhV7mX+AN82J7PG+KpFm2Fya9 iJhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=d8HNtFjVL/HPLva77WTnFKUW0Kvfs2vTc0BrF81DdWI=; b=YKnc95nQXgKqV4E8raRc7annEm2agJGYzSCZ7zyavoyvaAjDz/r8Zn10A4ztScsjXk jAdFqwA7Ni4Y8zy9YfraGYVVmw87ExvNmD9XTA6muUcjA87Kc4jRRDFFSO1/8lSCu97v 85kp6SQNNhOAxgvOwk0eSzQ8lrTQQohyLIjm9DSSZoFWowvxQuT24J+kAlMNHpw1+oYI Qwcv4wd0CFPhcOA9y8za5zMbmTeGIpAdgz/5B3VrlymLmUAU2qB8S16LQRZ2OCFVPcvC F6xhwiODwTY1qew6QjiJI2OmVUESNHEFDLywpEeiW3+lcLyGJYrBR10l/FJR3BH7R6zJ 8N0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v8pnncAe; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t24sor2120205pjw.31.2020.06.15.23.13.44 for (Google Transport Security); Mon, 15 Jun 2020 23:13:44 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v8pnncAe; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=d8HNtFjVL/HPLva77WTnFKUW0Kvfs2vTc0BrF81DdWI=; b=v8pnncAeJ6EXVXBVIROBwY85MaUJaS+3cYpbNNYYzPLk/7pselZhTcoIxYzjCeyVv8 z7rLz6dynrZeFhSyjXXuzxJss8D71TgLPxY1wSvVrGHHBe36mvLVuJbyV7oeqmPxZPF4 3bBf2ru+qoskK42o6IV1MKU7khzwkAlxUiF86aroPb9CUN8SmEpvlRuPhbKl/aZW/n7x AWmFqLqQFiPnl3Li0QE+BVRXmEQzG3QuSiiUUYtPhE0RXGhRnX5RUcHPWqrprYghVulQ elANL0qhyySKvw/JSPWezE64h1v8gJgRUsY4bf8AXuO5qPZruWEfPRgNNcA9UaNhTmde rX1A== 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:in-reply-to :references; bh=d8HNtFjVL/HPLva77WTnFKUW0Kvfs2vTc0BrF81DdWI=; b=GBDZnbhNNrpbu2erkPZN7g0O+de58TJA8uIM+4iAmr50BjMBDeUgYElNGgXU1SgLzk 9P9I0MkbMY3+lNY29No25ZXQsYFNpmef6Qvjw7VNrCz+FYfKp2HApahHkiWPjx9685jC 1OKe61sc0YJAykS4oarkciQEjUxMbrkmFPB2kVEqYhqBFkCW8aMa4N64BN2sxeTEBUaE F/574qrgL4vtgPYVImW4OHmUieEUhO7XVDRwZTgPqh6bXtCrUrz63dSatj3DlII9J4jC 4vHDo2IGoZ8LR1NHRuqeIoPDRyqhuT1r2AreOBef1PSGH5E7Fnapdj1+81s0ti44NGtp 6sNw== X-Gm-Message-State: AOAM530yhk1elvUbzIEFwJkTy8I7IaxW8Hd9R4aYNiM+mBON7T793HQG wH4QvVL0kynfALjMe0+C6naQTTcU X-Google-Smtp-Source: ABdhPJxCaVz3G+/geS1NzlugB57rAw/I7PZ2XURXxDE8DMjhkDv5DK9XyvrD63NMIlJN57XPvBQpCw== X-Received: by 2002:a17:90a:220f:: with SMTP id c15mr1308713pje.129.1592288024596; Mon, 15 Jun 2020 23:13:44 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id i26sm15642032pfo.0.2020.06.15.23.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 23:13:44 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Andy Gross , Bjorn Andersson , Joerg Roedel , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Lina Iyer , Saravana Kannan , Todd Kjos , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, iommu@lists.linux-foundation.org, linux-gpio@vger.kernel.org Subject: [RFC][PATCH 2/5] irq: irqchip: Export irq_chip_retrigger_hierarchy and irq_chip_set_vcpu_affinity_parent Date: Tue, 16 Jun 2020 06:13:35 +0000 Message-Id: <20200616061338.109499-3-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616061338.109499-1-john.stultz@linaro.org> References: <20200616061338.109499-1-john.stultz@linaro.org> Add EXPORT_SYMBOL_GPL entries for irq_chip_retrigger_hierarchy() and irq_chip_set_vcpu_affinity_parent() so that we can allow drivers like the qcom-pdc driver to be loadable as a module. Cc: Andy Gross Cc: Bjorn Andersson Cc: Joerg Roedel Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Linus Walleij Cc: Lina Iyer Cc: Saravana Kannan Cc: Todd Kjos Cc: Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org Cc: iommu@lists.linux-foundation.org Cc: linux-gpio@vger.kernel.org Signed-off-by: John Stultz --- kernel/irq/chip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 41e7e37a0928..ba6ce66d7ed6 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -1478,6 +1478,7 @@ int irq_chip_retrigger_hierarchy(struct irq_data *data) return 0; } +EXPORT_SYMBOL_GPL(irq_chip_retrigger_hierarchy); /** * irq_chip_set_vcpu_affinity_parent - Set vcpu affinity on the parent interrupt @@ -1492,7 +1493,7 @@ int irq_chip_set_vcpu_affinity_parent(struct irq_data *data, void *vcpu_info) return -ENOSYS; } - +EXPORT_SYMBOL_GPL(irq_chip_set_vcpu_affinity_parent); /** * irq_chip_set_wake_parent - Set/reset wake-up on the parent interrupt * @data: Pointer to interrupt specific data From patchwork Tue Jun 16 06:13:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 187970 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp3370329ilo; Mon, 15 Jun 2020 23:13:46 -0700 (PDT) X-Received: by 2002:a62:3183:: with SMTP id x125mr755580pfx.3.1592288026490; Mon, 15 Jun 2020 23:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592288026; cv=none; d=google.com; s=arc-20160816; b=XFyIWpF95u2Tt/AHuwds0BakxfKayFWloBMPe3eZ4aae6CHPfoCVbzXjA7JqMNrOAd nfWhjTKokDBZ+KBht30d3QRYi1rWCzyCe/kbvmwoonGlhLoCgseN0eCy7EvwMGlFPzWE zqcKY4wepeI9uvuh06AOIwHdgYcZec8lnsWd7QtPolg4cRCyErlmFpGL7SmQVyX+cYN2 9/DAvy97JM9VTJApvT1DVCFaYaE/J7ghnFOehZq8b56JHOKIqPu3lSM/gSDygxEp3Ssq L/y7dI/64ZVGtQh/2RhNvuWCTbOtt1kGM0S4KYfe1wWlGuKEXZkNMdo1eoEw1QbekSrb XEgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=M2uJULnvxDpfHs89lgaTRTB9rey6NHbhAifKB1x72gQ=; b=nevVSrES1VDIFcb27VWV6WQQ7D1bZoz4EUwi3gvZOZ/XRKVnbjWgJ/uh4ls6Rh+/yl soDWfuk0NcXqKvN1MFPpBj2yyAqNS8UzULishffsCt5kjkltQtdj4+BFlCPkQeiPyQM/ oM5JntkdflS5XcvTv0WhLCXFvQb7NB+spqV4bzh+o+AT0/PQiR/LPWTq/rYS0aCFSB+B JvO4tZH/JNrYKhvZAM3x8vuAYDyBGckjHehR3L5ypveG+3MVO7UwbgxbOImG/rZQRtW5 3WxDiGpk8bD7eIm7xk5mGuXiMSd/s+sLWW2JQ84CD7MhvoT4dqnVWe+CsmGLA+X46r1X rKyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HS2MKGAs; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d8sor2206150pja.1.2020.06.15.23.13.46 for (Google Transport Security); Mon, 15 Jun 2020 23:13:46 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HS2MKGAs; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M2uJULnvxDpfHs89lgaTRTB9rey6NHbhAifKB1x72gQ=; b=HS2MKGAsNdjUxJ+yy27jcpiH1bk7koug2OAXwLJHoTgucSozWnIJSObeAki8dM05am DLCS+qX0P1LSqKwIln1ckxouXz0KbXo3o0tpFiRBYmK+NPiqKE6pDzuqc9M+Woh0UQ59 0qIqzR0HzmFta9njqekXv2RYydZQgrYMTxUNtcLireoA0iUhs07M+xTESQi6DDO/vBQo bSM6fZK5iqdLi0jpB6PQWvFyk1ti/AJVyzKrfiIVqCShGFceJ3mF8PFRVhuFFpNV+gJ8 6/V4j3vwecDwCtqKeIWENohJF3zGujG5GiKGDkkY7rGGOJZOxBk/IL493YOcEiEuhVBI PAjg== 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:in-reply-to :references; bh=M2uJULnvxDpfHs89lgaTRTB9rey6NHbhAifKB1x72gQ=; b=kMDnKgBJKSBcGPDyOviQuuF94/pGwgq8NOciFFsI+53uRoTVcVF5ujSg1SjwmhomAb 73kPA/Q1lCGuLPYaFsBz5qxq41UfFkHNLnbrUXBOoG05cJPAj8V3CSm6OEgvIFqaOX77 CVr9JgJ+bU3F3XtzmJaBHdFAogPaXb7f0SVG7E5ZxRPwm8/hu/KaaY0IaCyXj3KmSOwm sKgbmd2q2+MNyQocmIAQ47J+rtKJN2fnu+d7B+f1ANKwnMEDA5PqrZfP0xlQ7XVQG8/M VvlJaDsJiZI12tHkMfvBYRwulgLsW2ZwF0KeS7Tm9Zyt88eypT2T7PoN+VhESx5kHNmj /+/g== X-Gm-Message-State: AOAM531gg81bHQpq9iGHeedUtPeLcB4KntmjRHAInIDG04mGiSTtuqti NMmnWMJVOzjGZqgSvmJ5wmbqEAYE X-Google-Smtp-Source: ABdhPJw2m1e+LDbBPxO7NdX9TwT/7AlJxXRrPGMYRWdq75cFQWSCTf4uPSRnj0rAwyp+oCkFUZF2jQ== X-Received: by 2002:a17:90b:238d:: with SMTP id mr13mr1308289pjb.19.1592288025969; Mon, 15 Jun 2020 23:13:45 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id i26sm15642032pfo.0.2020.06.15.23.13.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 23:13:45 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Andy Gross , Bjorn Andersson , Joerg Roedel , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Lina Iyer , Saravana Kannan , Todd Kjos , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, iommu@lists.linux-foundation.org, linux-gpio@vger.kernel.org Subject: [RFC][PATCH 3/5] irqchip: Allow QCOM_PDC to be loadable as a perment module Date: Tue, 16 Jun 2020 06:13:36 +0000 Message-Id: <20200616061338.109499-4-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616061338.109499-1-john.stultz@linaro.org> References: <20200616061338.109499-1-john.stultz@linaro.org> Allows qcom-pdc driver to be loaded as a permenent module Also, due to the fact that IRQCHIP_DECLARE becomes a no-op when building as a module, we have to add the platform driver hooks explicitly. Thanks to Saravana for his help on pointing out the IRQCHIP_DECLARE issue and guidance on a solution. Cc: Andy Gross Cc: Bjorn Andersson Cc: Joerg Roedel Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Linus Walleij Cc: Lina Iyer Cc: Saravana Kannan Cc: Todd Kjos Cc: Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org Cc: iommu@lists.linux-foundation.org Cc: linux-gpio@vger.kernel.org Signed-off-by: John Stultz --- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/qcom-pdc.c | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 29fead208cad..12765bed08f9 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -425,7 +425,7 @@ config GOLDFISH_PIC for Goldfish based virtual platforms. config QCOM_PDC - bool "QCOM PDC" + tristate "QCOM PDC" depends on ARCH_QCOM select IRQ_DOMAIN_HIERARCHY help diff --git a/drivers/irqchip/qcom-pdc.c b/drivers/irqchip/qcom-pdc.c index 6ae9e1f0819d..98d74160afcd 100644 --- a/drivers/irqchip/qcom-pdc.c +++ b/drivers/irqchip/qcom-pdc.c @@ -11,7 +11,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -430,4 +432,32 @@ static int qcom_pdc_init(struct device_node *node, struct device_node *parent) return ret; } +#ifdef MODULE +static int qcom_pdc_probe(struct platform_device *pdev) +{ + struct device_node *np = pdev->dev.of_node; + struct device_node *parent = of_irq_find_parent(np); + + return qcom_pdc_init(np, parent); +} + +static const struct of_device_id qcom_pdc_match_table[] = { + { .compatible = "qcom,pdc" }, + {} +}; +MODULE_DEVICE_TABLE(of, qcom_pdc_match_table); + +static struct platform_driver qcom_pdc_driver = { + .probe = qcom_pdc_probe, + .driver = { + .name = "qcom-pdc", + .of_match_table = qcom_pdc_match_table, + }, +}; +module_platform_driver(qcom_pdc_driver); +#else IRQCHIP_DECLARE(qcom_pdc, "qcom,pdc", qcom_pdc_init); +#endif + +MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Power Domain Controller"); +MODULE_LICENSE("GPL v2"); From patchwork Tue Jun 16 06:13:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 187971 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp3370336ilo; Mon, 15 Jun 2020 23:13:47 -0700 (PDT) X-Received: by 2002:a17:902:c082:: with SMTP id j2mr763438pld.175.1592288027590; Mon, 15 Jun 2020 23:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592288027; cv=none; d=google.com; s=arc-20160816; b=PTFbc2AeEoJAggTEROkiovlmR721HxiPZst2Am8nKODYY89LCU9adNaYrSew8njje5 tn99dbqKbT2Lp9eb91uDSV0xC/sS+SJveRTzLoaC3Sy3bQzA5ym9xvT83JG2cuMi8b3U 7lGNy17QE8s5GshxI2/jz3YTwhs+X+PJ5qYNriiG9iAVlAAlMzFnSf0JST9YLwlryVhF bkNNWE/w0adp2K/Q3YwYZYdfFwcHKP4exXpdGcNw/AdPuHLPJ080PIYgx8b0AGeHZqFm C6bPYcFC8aWa6r/nIx29Ner7AhVVaCVxEXn/GzwV+DxpGomCxqaWyBf7h7h21uiuaWzL oO/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tafn8tgvook2kdsU5HvJlEK8LMOFG+C0LcPeZd052n0=; b=TX3t7iOn0XNRcOWV9BzKK02sI1948sziNNsQAMtHpaeCWrg1V1sA2+WJdBCHWUieUh XG8Btm2/n7/rTIW/kK5ZTzW/bW0BlRDP0jwHNKhUk5CFHf2ecW7uOKNpsbxgMutGMeH8 zUUtkNXtBKGUeNPuIiDiU8wYWlxh6pXaYm9cgBdsFuFYSLXct/91xfXNx26dUhbIA90o m3x0ecKTuuYm8NkjQrAwjTG4Eay7s4ivEkomVUhz4o9pON5f+vxJCyc37FeQ5Tdwo8HB noHCgh4avq1XvbsVbrAq3f06Bq1C19YO/K/p2bceucgt48DqCIAhzuKPrxI7D12O8UAO GdKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xMAoHVNp; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id p18sor21435761plo.5.2020.06.15.23.13.47 for (Google Transport Security); Mon, 15 Jun 2020 23:13:47 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xMAoHVNp; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tafn8tgvook2kdsU5HvJlEK8LMOFG+C0LcPeZd052n0=; b=xMAoHVNpffLY2lyTJD9QbeN8KTyRSaCCjkC1E0u2VIy0nIWcP5sclAiUAnyOV5gxo7 oUZ5I8XHEKUPI5HHxhiuB3+rhaj6tORHBTO43Z+tK6rGQ9KB52CJoor8yhS92yQgrJE5 UsjsHN6CB7p6Wvnm/t05rV2XL0Eo3w/Gkepsz9Lk2uCVqEdP/Onw398cCpRDh4z/aPsk 5kwkQUlYMQYiuf9ijlJaEIfoKmdY1YHHs4x+UsDUtjNA4biCYzwLJRQYBD8q1MHKJKT7 XGf7sL+4v7hVAdKG6ictgI5vbmId+R5Vnm1ZlDViPyMrg6hBsc/jbJsngf/Sj51SRZS+ AcAQ== 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:in-reply-to :references; bh=tafn8tgvook2kdsU5HvJlEK8LMOFG+C0LcPeZd052n0=; b=l2Bn18ieTEamkuLSMJPLjMMIcml/xD3SIsaLVFkTkX0/ArIkmQPKH1GnviGcaQ07A7 RIXcKG3ZO9CKpDQA3UJSfQzLuM1b6r5IjfctvFGLRC+EjsMxt0oD8KlCJbCMbIzZ4K2t L505U6F8Dyvro6hVco6quAprJGKvNAvkjL0C1/1+3Gr9dZnbaj1Wq4zwGcWeZUbPNOsi vhj5bPboyiVoQWxnvsL0Mx7asSH/VOvjuj0GVblOw6pFCBXPCiOKdawKK1fxc45ChRbC +4Jr1VG+idqZhrKa5eOuMmmeEflpnbIuvlWk1T2eG/8DOZGqik4H2bcV3cAQfkC7A9fq ad/w== X-Gm-Message-State: AOAM532wrxXzLHRnUv1CAh3EYEBWKXt9bqm6x2LR/SJF3r1kLR/kYsyF aRM+ANy5glMrZh6CkM41MlBqC3I5 X-Google-Smtp-Source: ABdhPJwzpEnEW8XPSBOBq1A7hYTb2UNoutUZvIjQpKbpwqGbOmCOIwyYxiTOyT5TfnOfy6VyShAGtg== X-Received: by 2002:a17:902:8f98:: with SMTP id z24mr796330plo.123.1592288027157; Mon, 15 Jun 2020 23:13:47 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id i26sm15642032pfo.0.2020.06.15.23.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 23:13:46 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Andy Gross , Bjorn Andersson , Joerg Roedel , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Lina Iyer , Saravana Kannan , Todd Kjos , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, iommu@lists.linux-foundation.org, linux-gpio@vger.kernel.org Subject: [RFC][PATCH 4/5] pinctrl: qcom: Allow pinctrl-msm code to be loadable as a module Date: Tue, 16 Jun 2020 06:13:37 +0000 Message-Id: <20200616061338.109499-5-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616061338.109499-1-john.stultz@linaro.org> References: <20200616061338.109499-1-john.stultz@linaro.org> Tweaks to allow pinctrl-msm code to be loadable as a module. This is needed in order to support having the qcom-scm driver, which pinctrl-msm calls into, configured as a module. Cc: Andy Gross Cc: Bjorn Andersson Cc: Joerg Roedel Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Linus Walleij Cc: Lina Iyer Cc: Saravana Kannan Cc: Todd Kjos Cc: Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org Cc: iommu@lists.linux-foundation.org Cc: linux-gpio@vger.kernel.org Signed-off-by: John Stultz --- drivers/pinctrl/qcom/Kconfig | 2 +- drivers/pinctrl/qcom/pinctrl-msm.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/pinctrl/qcom/Kconfig b/drivers/pinctrl/qcom/Kconfig index ff1ee159dca2..5a7e1bc621e6 100644 --- a/drivers/pinctrl/qcom/Kconfig +++ b/drivers/pinctrl/qcom/Kconfig @@ -2,7 +2,7 @@ if (ARCH_QCOM || COMPILE_TEST) config PINCTRL_MSM - bool + tristate select PINMUX select PINCONF select GENERIC_PINCONF diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 83b7d64bc4c1..54a226f682e9 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -1355,3 +1355,6 @@ int msm_pinctrl_remove(struct platform_device *pdev) } EXPORT_SYMBOL(msm_pinctrl_remove); +MODULE_DESCRIPTION("Qualcomm Technologies, Inc. pinctrl-msm driver"); +MODULE_LICENSE("GPL v2"); + From patchwork Tue Jun 16 06:13:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 187972 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp3370344ilo; Mon, 15 Jun 2020 23:13:48 -0700 (PDT) X-Received: by 2002:a17:90b:1b06:: with SMTP id nu6mr1276485pjb.106.1592288028682; Mon, 15 Jun 2020 23:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592288028; cv=none; d=google.com; s=arc-20160816; b=LUsaJKysk4Qq/ZtGeifrA2CtFATTsZYRqbAAWRkcbCK9pfP2Gtt7vcqVlsI5dK4tJv Ll24Bw1n/5RpV/9ugHKmExKbN6tdJqVxFS3x8kyGTtK2ToGIAL2ndQwIDZswMR3tDKG5 DGIbASJ9lSzYnc5+7TsikDXsEJp/USEB61T5wXNr8lkFjqO+8EwDmzDl0fQ+9EA3m/w7 SmvSjVGT/GrxWc9Fg3EE8BP6621UCeFc+WmusyAAOiVYC1lGRu89Mk7T9J5CRubuNbFE 1UPIA2AsggKhCvLSRNN81xrWrFCbDA/fbsGIb9CzG7m4vBhKHVtHoFtWeG9bo942jg4O qF7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sjkuZIHgOGWNn0NM6WxaSWNlrL5TYHvrP2K4MQU57Qs=; b=jCfmU4yUv7KKunjjGSSkTcuDCtso6+523Ry83x1XYemOIlDSvJ1uPh3IjDT7jev7OD uS4DRjLK1XsvwTlnlzt2BJ649SON/5uiWc5RE8Hj4rDUILV/o7LBUtNhoz2cwYO/KUd3 zVo5fKwxAt4zSeV98nWv7nLMzyN2TYz9x3GycEOdem5k+t+j9BEjBTSfjVGjTTQsIKTf dWNJd3uQ22SfRx+3AUjLACKGOb+bZ+iONAfSjIXwxzRGU0DLuaQdtnQUxjJSabVEatEX Jus0NoMOnAph/YDdtGRa9ubp6y1a3Wpzj1BLYTGD4hDs8t+exHoY3vY5jRUNhH4CvV5I 37Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z0Ya8NgI; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id gn11sor2137161pjb.43.2020.06.15.23.13.48 for (Google Transport Security); Mon, 15 Jun 2020 23:13:48 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z0Ya8NgI; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sjkuZIHgOGWNn0NM6WxaSWNlrL5TYHvrP2K4MQU57Qs=; b=z0Ya8NgIc7JGqkE+pEiQxFdlLb1wI+YIdEhjbg63klsr9SrNdiWfoslKkTEk6he3qf dTUbIL6TJWmiUS0mE3JJ680pY6mwbVwm9fG095z+akltQXiIt/Tm5YyuCKRkSwJXGNid ueARo5vX67GhC0jJKeiZ2O+xPlAIi7b5zjFyw/jrwW3EbNRMWWSbx4GCMJKpWzAcY6s3 Y8m3moUHonrenxnBYqM8BdukDS/D1MI63FiKaoqHeoenLKaFkHzd09/PJzgJghFTgGx8 D2F/uagbw34y3bfQlXcZWfvjzd1pHQlziWnls/d601EqJCI2KUVag4SNPvTdFblJyVbx GVxQ== 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:in-reply-to :references; bh=sjkuZIHgOGWNn0NM6WxaSWNlrL5TYHvrP2K4MQU57Qs=; b=lofjB/Kg6Guizuum5ygzxMzn9rg2CQqSqr2g8NCWQLRpW+caPiJHG/kQa/muusDsDd LPYM2SqMlmIfk1O4qnzB7zhxTDOUYgwQRt5eqZw8AuRKiH4EACuabmZcICYMbLT0EiiH VfTpKEJd1t0rqxUFfPs+V+HGbjOdRZEFtx7dFW4kgYJnCVY0MX+lfdeG6eoIl9tVIZDN 2uuXkLXRkpsFROHULmhySwCKZ1v9e9VIXjIdjLM9uQiX52nw8OskFQfBo6k1miJs/pa3 SqI479n0p74Ubj5OI40vGwmZVzFXsvvtjfeuio5vef0sDI+scTgcB3b699WRugTNRzfi 0Qiw== X-Gm-Message-State: AOAM533MbbcNJYODstQYiKKiVm9Iq2EBD8e92mDxj0XeIf1yFnMvF2r1 ZBeOwLp0fi5ojcuPp3qSS03aU0mo X-Google-Smtp-Source: ABdhPJwYhjtOBdx0zxRParoCjvCJBIOPOU1zn3RHlSdNmeSw/AbOBT8/4UQJOQjCCNZqxbJatymuaQ== X-Received: by 2002:a17:90b:3004:: with SMTP id hg4mr1670052pjb.208.1592288028324; Mon, 15 Jun 2020 23:13:48 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id i26sm15642032pfo.0.2020.06.15.23.13.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 23:13:47 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Andy Gross , Bjorn Andersson , Joerg Roedel , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Lina Iyer , Saravana Kannan , Todd Kjos , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, iommu@lists.linux-foundation.org, linux-gpio@vger.kernel.org Subject: [RFC][PATCH 5/5] firmware: QCOM_SCM: Allow qcom_scm driver to be loadable as a permenent module Date: Tue, 16 Jun 2020 06:13:38 +0000 Message-Id: <20200616061338.109499-6-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616061338.109499-1-john.stultz@linaro.org> References: <20200616061338.109499-1-john.stultz@linaro.org> Allow the qcom_scm driver to be loadable as a permenent module. Cc: Andy Gross Cc: Bjorn Andersson Cc: Joerg Roedel Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Linus Walleij Cc: Lina Iyer Cc: Saravana Kannan Cc: Todd Kjos Cc: Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org Cc: iommu@lists.linux-foundation.org Cc: linux-gpio@vger.kernel.org Signed-off-by: John Stultz --- drivers/firmware/Kconfig | 2 +- drivers/firmware/Makefile | 3 ++- drivers/firmware/qcom_scm.c | 4 ++++ drivers/iommu/Kconfig | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig index fbd785dd0513..9e533a462bf4 100644 --- a/drivers/firmware/Kconfig +++ b/drivers/firmware/Kconfig @@ -236,7 +236,7 @@ config INTEL_STRATIX10_RSU Say Y here if you want Intel RSU support. config QCOM_SCM - bool + tristate "Qcom SCM driver" depends on ARM || ARM64 select RESET_CONTROLLER diff --git a/drivers/firmware/Makefile b/drivers/firmware/Makefile index 99510be9f5ed..cf24d674216b 100644 --- a/drivers/firmware/Makefile +++ b/drivers/firmware/Makefile @@ -17,7 +17,8 @@ obj-$(CONFIG_ISCSI_IBFT) += iscsi_ibft.o obj-$(CONFIG_FIRMWARE_MEMMAP) += memmap.o obj-$(CONFIG_RASPBERRYPI_FIRMWARE) += raspberrypi.o obj-$(CONFIG_FW_CFG_SYSFS) += qemu_fw_cfg.o -obj-$(CONFIG_QCOM_SCM) += qcom_scm.o qcom_scm-smc.o qcom_scm-legacy.o +obj-$(CONFIG_QCOM_SCM) += qcom-scm.o +qcom-scm-objs += qcom_scm.o qcom_scm-smc.o qcom_scm-legacy.o obj-$(CONFIG_TI_SCI_PROTOCOL) += ti_sci.o obj-$(CONFIG_TRUSTED_FOUNDATIONS) += trusted_foundations.o obj-$(CONFIG_TURRIS_MOX_RWTM) += turris-mox-rwtm.o diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index 0e7233a20f34..b5e88bf66975 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -1155,6 +1155,7 @@ static const struct of_device_id qcom_scm_dt_match[] = { { .compatible = "qcom,scm" }, {} }; +MODULE_DEVICE_TABLE(of, qcom_scm_dt_match); static struct platform_driver qcom_scm_driver = { .driver = { @@ -1170,3 +1171,6 @@ static int __init qcom_scm_init(void) return platform_driver_register(&qcom_scm_driver); } subsys_initcall(qcom_scm_init); + +MODULE_DESCRIPTION("Qualcomm Technologies, Inc. SCM driver"); +MODULE_LICENSE("GPL v2"); diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index b510f67dfa49..714893535dd2 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig @@ -381,6 +381,7 @@ config SPAPR_TCE_IOMMU config ARM_SMMU tristate "ARM Ltd. System MMU (SMMU) Support" depends on (ARM64 || ARM || (COMPILE_TEST && !GENERIC_ATOMIC64)) && MMU + depends on QCOM_SCM || !QCOM_SCM #if QCOM_SCM=m this can't be =y select IOMMU_API select IOMMU_IO_PGTABLE_LPAE select ARM_DMA_USE_IOMMU if ARM @@ -500,6 +501,7 @@ config QCOM_IOMMU # Note: iommu drivers cannot (yet?) be built as modules bool "Qualcomm IOMMU Support" depends on ARCH_QCOM || (COMPILE_TEST && !GENERIC_ATOMIC64) + depends on QCOM_SCM=y select IOMMU_API select IOMMU_IO_PGTABLE_LPAE select ARM_DMA_USE_IOMMU