From patchwork Fri Jul 10 23:18:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 235267 Delivered-To: patches@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp756192ecp; Fri, 10 Jul 2020 16:18:35 -0700 (PDT) X-Received: by 2002:a17:90b:b15:: with SMTP id bf21mr8256674pjb.53.1594423115231; Fri, 10 Jul 2020 16:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594423115; cv=none; d=google.com; s=arc-20160816; b=UHSQxBzICPvmv1d134JMRoEMQvS2aZ7A0oQ6mZCbSWW/nkSvVaSDlLemOGB2aWAgar tPyjnfG0B1tVtjSWE0GXZO+gkzWkysv3CzC3fVkSyoZA8Z1UUAuuh0HwMKXRg3DPwLCK dZ8HzkOpRkH2rkutzzvDM4bceIl93XxpBqY9widpNCU6wU0pCPxfeckKUkPmunZ54bK3 1rHDFcEjdP0P4mI9twKKkOLt0ieZ8lDYNktEWxaUHKfAKLzzM0AQouYIct/aeTy6CtLY uNSAjEKo/Z8jlsu7QRml67qnDrlX3LJh7Kqgokhpm/QY+2CVIJJZP4RHS7nUyMX795Lv 5ljw== 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=qCGYxi6L0dmDdYzHShkkSHiKc6T34aWWoWuQkkFnaWU=; b=gman3N3G/lPmlAlO8eEO5kzw/Ku+8YZPSse/5ALqIu4tjhSdqL8NKtQYo3Vn/C+Shf +0Hd2bXlRfPfTXbfXOzEwkAhlHsh1RVWf//5fajuy6Ju8HGD+fyNfmX4Gc+0nhnaml/Y 6eltDMDPwf5zj2TBFLP/iovxhpOCcGM04MWYxkbDuHTTHSZgJZBpO7lNBcqU28ojrvcK zJCl2s4VSNUilzanVUkPWnnp5C3uF9FLGLhswMnOdVvXlhyrGDoAavSD+t+g5qMuKGvH E2BxMUBZrlmDauohJKBWyPTGgcS0hyZLHST05HtKF5A8QyMNi4+apFfbjYzjJzRjkeVU EfFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pz1BOCQB; 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 l187sor9384752pge.81.2020.07.10.16.18.35 for (Google Transport Security); Fri, 10 Jul 2020 16:18:35 -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=Pz1BOCQB; 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=qCGYxi6L0dmDdYzHShkkSHiKc6T34aWWoWuQkkFnaWU=; b=Pz1BOCQB0pXjBmo0xAku7n+cwdXdjkY8Qu/3gwY1QOKhNMztkqxXIGamSB0+URD4zJ bWGsle4ItBlbOYOFz3XZNcJ+GUr8J7HxfpiuyudOZpOdtLYbAAwglyH0n3zi4kk2nhcS mvQ133SopxNOT2bwP33RuYrlCnRwVtE3wmrCetH7/Q9qh0nPSPrysb9a3+/s2XmyxP+Y ulNhRUI6X5nAUpZHovYN2PASbHMZkbriStlea5f8FcJEhpZClmWwbmd7xaj0AuMhmyoq xQYYHC0uckxurGhu1x+gXqb2mo/0ksmiHT6dXqmO1uiAHdW9omZK3wwUwJpvSjfFFDWf mi1Q== 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=qCGYxi6L0dmDdYzHShkkSHiKc6T34aWWoWuQkkFnaWU=; b=kods4G61sRJ37N9kLra1AFf5ssPSOzDjkFLmHesLM854uEL7Me8ilIaj7BNXJ2CMXR uG+eN0EiGVqAwvhY4L4BArT0mXfZNmlDjUo5pw1Lo4Bdvt2oWGlfpnfwxr80dLvaSis9 qhPT8yd2OFjkLGEn9XebGMrVaed2bWrWvRz8O1bs9lW1+ctaiYMrYM7uwZnCtXimEU8e 5CotdwJq8wOrNxBMz0pLmoQqxdu8xYsUGs7XVTS/B0Av5zLs8xTOyfJsz/aeAXDR7txP aq+l4IdxWc3QfphbBY2K8FdC1wRKeAkQV9gfow2IjS0sO5nRMQjCuUrhB8sMURqS9MRT Iz0g== X-Gm-Message-State: AOAM5310x8WX3aRnQ4bBRulZjJqmTVEH3T/PW2EH+OXxvFHbNKq+pq5s 16/NemwNYSDSOitlaisvTgRnQu1K X-Google-Smtp-Source: ABdhPJxxd7gWIsbfCYIPEz7NG3FjvS01GFW7aSmOlHcok8aGrenQft1MCuaHlreDug7QVzY2Ybcl0w== X-Received: by 2002:a63:8c5a:: with SMTP id q26mr58143248pgn.312.1594423114697; Fri, 10 Jul 2020 16:18:34 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id c14sm7296382pfj.82.2020.07.10.16.18.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 16:18:34 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Andy Gross , Bjorn Andersson , Joerg Roedel , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Maulik Shah , 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: [PATCH v3 1/3] irq: irqdomain: Export irq_domain_update_bus_token Date: Fri, 10 Jul 2020 23:18:22 +0000 Message-Id: <20200710231824.60699-2-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710231824.60699-1-john.stultz@linaro.org> References: <20200710231824.60699-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: Maulik Shah 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 Fri Jul 10 23:18:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 235268 Delivered-To: patches@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp756210ecp; Fri, 10 Jul 2020 16:18:37 -0700 (PDT) X-Received: by 2002:a63:2d44:: with SMTP id t65mr50963464pgt.257.1594423117023; Fri, 10 Jul 2020 16:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594423117; cv=none; d=google.com; s=arc-20160816; b=JG7BeexCJ4EgkIt0ObEaKDNVY+PB3Uv2L8TxFtSF1uqFivrVW5pUD7bTgGKFR9GEuD jd+EJSp2inQOZQHoRPI3WC6YrQIrGT51J662xZAqvXzx33mw1+D2oAeJmKic+2obXjka ZAEORXdhSWosSbP0Os9222aqLraVAY0HM+b4p9eycOqD0mvVCmGb6NaxpE5RKTMILzz3 lYrpzA3eHjXqS7DrwiRdqawDJtd/HuVnA6sQE8EqEILhJtaxHZmgVWdp44k4rKhZ3s1T bZF14A7b4T+UpfIxrTc96UQKFHvLePWnH7CKu13yqOKUgoVIua66FCDVjEg5NyitBtlX aEIQ== 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=+LAKpRiBafd2oOjp/6TfYpZhYF0M8uCnrw227kRHd7U=; b=BZwATS1xHL5Di8pYIVDjvIK12eW/k/pERIEn6W9kPVNFlgCW3tH5cQE0GtzliedquF 5qJKbmp5/zTykwxH0B+xDuZ/QN21XX2umtUX5dadT3HfZfcWVaiJLCfx2j6+ZiE9A4sY buudqFOITuOt+PXlz1gNbLGh/v0dRs0bt5FNmKV3soy0R5QqASBhpzfGm6Q0fgYOLwSs 0uuH08mRHgydyeoxosKpid7JFXFYXHOvG/U43o82G3nIPkDAKcvvQu1qloI4iKbhCI0Z L75x2chyAWwQ93XY81TlobI78FqnqQ/pwHdH4liexV9xQ8pn+aZuXQjizgISSwnNUoYb 1BMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fb2laGua; 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 f9sor9312085pgc.52.2020.07.10.16.18.36 for (Google Transport Security); Fri, 10 Jul 2020 16:18:37 -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=Fb2laGua; 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=+LAKpRiBafd2oOjp/6TfYpZhYF0M8uCnrw227kRHd7U=; b=Fb2laGua2O0o3qIqAFaaFHeDOkX2Z7Sq4CysZLHkLud6BHKz7RjNEDQoC5zg+gdNRW l64bwkrGWxENZzaGdE49CdjfCWmeTUpd14CG/9Ea+BuiUN8kv4ApLd2gVTRe3z4magmR /XwHgns0ezmupMVonilKBcWoXcOnMTYozNC5ES7ifUTfqH2sgImqCOF62Phuf4Kszvzl +FemTUwsgBfpnPH36Y1zR/5tLM5bOqN7ha3p8bIkHr1EEnGS56QYXSjXfNoXh3E/MI7e uBh6LC8Nb0jgO/h3+mfxpKQjb79mjvvEB2SbYBWgz1rl4bCt3oeRAQCH+eVBmZ06lORX dcEA== 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=+LAKpRiBafd2oOjp/6TfYpZhYF0M8uCnrw227kRHd7U=; b=ip1dtWFgaKEHnbyD/37fkwuFK8f2sSgvKxp9Epi5Yk3KJ/4pxfASdPmqwVJVD1r/sF tpjmV2E0vyMAi5f2lMdCnGGDqMRQFp1CYqB7nfh+P8zUjYxzGDaEFIVhakriEbHOrEc5 GDlf3a7b7NQuD6OcrEcNjydNLdqQ7ZshDpQkaOSfH7ALEje5n/kZFKHqDCwKCOsa+dB1 61eOqVcbKX9aZUThSyZkS2RVZAUWJTBaR7VcejTbT6gv1S4g2c9D0r4wmVNl/77NIaKG SpAqc2Yr35xkJTzS7i+mpc9F8UVQEyhH7sKWGRnLGwuji321h+yLGm+jdjhamXGdRceR KbfA== X-Gm-Message-State: AOAM530qBRJLz/s79w+qEKy845kdLdiWzqTPHiilUPVMj5+Bf8bVVVrF WSRGwyEtRpnZqnQHA+T9i/eJ9HoT X-Google-Smtp-Source: ABdhPJxazz3b2K1meU8hdEkjra2QvmoMn+ofo3x6qLL7NuVHq/rd+1PfJ28IeoTLBIcjHFUnIpZasQ== X-Received: by 2002:a63:fd03:: with SMTP id d3mr60360119pgh.76.1594423116626; Fri, 10 Jul 2020 16:18:36 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id c14sm7296382pfj.82.2020.07.10.16.18.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 16:18:36 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Andy Gross , Bjorn Andersson , Joerg Roedel , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Maulik Shah , 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: [PATCH v3 2/3] irq: irqchip: Export irq_chip_retrigger_hierarchy and irq_chip_set_vcpu_affinity_parent Date: Fri, 10 Jul 2020 23:18:23 +0000 Message-Id: <20200710231824.60699-3-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710231824.60699-1-john.stultz@linaro.org> References: <20200710231824.60699-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: Maulik Shah 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 Fri Jul 10 23:18:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 235269 Delivered-To: patches@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp756227ecp; Fri, 10 Jul 2020 16:18:39 -0700 (PDT) X-Received: by 2002:a17:90a:e7cf:: with SMTP id kb15mr8501433pjb.86.1594423119281; Fri, 10 Jul 2020 16:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594423119; cv=none; d=google.com; s=arc-20160816; b=L2ljRK+HT1kR+cbGGsKe6iw2Npo0UNUAueATXS/euI3u9yerYksydO7TUWIz7+WqYs FQCuzL/6anr5Ac99qtge7bkTvExHYOWOW4pm3aisNENsGUjBuybFjUUWOqU/ANbBov3h uFVTyX9P8e/iSu4uF/zUNPikbWMlFlWzAaa4kkzRjvE00qQimq+WRBp8VcpbHF8wPDkQ Z696crBofiqDSlhs441+eIQhoyT7pS8nhHpf8zT297xinrEi4Arp+qXNK6Zlfoe4DO8f Ei/vwNzod9z1hZ2x67CrKRaEkmQx+Rg+nzQHGxQxFeuI8gF5uqOyd9PXQeu/3wJdsrPd 7nxw== 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=qMRZ0NHrlcURRoHaqKwJd/gScGKjURbuurmLT4oMPDs=; b=TQSlVn+XOX08QhL8UND/vSvI/riv8RTNeu96Ed07rEfhpZC1n/UAD530+6EZE4SeyQ GyC6XxpjNDJFBqsF/Ys4TgS/ZFRBu08fS2Q+4X+NQX1GKVib8LkRR15+ijfOvJm+8FJ4 931NxdC4QHcrUipU5IWBrlRf/fIUhb4xQscDo3BDMRYhB2oh6pwBQ6ZTp8J9FgoCgh0W USqAhzmKPefepDatLrLDO6qjngW40pkxhQS8pqv3FIFJVLZtJD4r60Pduy9YY9OvJMZP eefw00Y6IKU/KcJ7qa/uic64wqippvthjiLnWeCntHOkhygQHQnCD60cOGvf2kuFQWiL tN2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=siq3ZbTA; 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 j17sor9705126pjz.17.2020.07.10.16.18.38 for (Google Transport Security); Fri, 10 Jul 2020 16:18:39 -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=siq3ZbTA; 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=qMRZ0NHrlcURRoHaqKwJd/gScGKjURbuurmLT4oMPDs=; b=siq3ZbTA8BVqEbOmQpqqMzjRPpTkpPlIz/ks6NqaULMEejA4YkYv/HOK6AB6c+Ru+p ckwa3ejAbmLnY6HDT2jT1n3vgy5z0SZ5gwYKdDBCDLbwXFqjP8vpJUm6QCqnF0ADlMxO GGp2Ei5aYGCGgTYSI3DhWhxfJjbcxSCrq0KA11CGIHICNMJVAiJWmBzlP1w8NjNZTQan tB0EzrdMVX7bbGxfULnfdLFA2ZeO6gq5lb7AVAuGBMpXVG8DefbouKG/WLX1Pq6VDCTc yr7XR4303DU9x7jRegGN4vnjs5SN6h2yHTK7gcCMKMWE1D+G7o/sYapLeCwE4Noj7ZsW KH3A== 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=qMRZ0NHrlcURRoHaqKwJd/gScGKjURbuurmLT4oMPDs=; b=IrRsbJPWMQpjMtUUA7lC4eyJ+JzTBQgfBmJuEvs2kDSmfz7KR6+XN8k4RWHw6F35LF 4heX6ftBZZ1BJctdoMfX+OquWdwpSD6yU582+oW+AAQH7PK2CdWjy0HCQsL1Gg60WmcF dun6YMQ4iVAwli+DIi3PZ3vrq6hxHoYvRhc8q6JHlhdgaAXBD+C+tRLvOB+eMXYA2vih strKxNbH9ohP3ShmJWzweyAb7E1CMEL3OAoqsPC4SMspi32lvqqoNQSCFFkzRO6qbjnv N1S/NXD5Q8WV1qX2rlaDLhLpTKqhFoYYNfWaM/LEhm2twS3deLwC3I2m3TFwt0dBYNIJ Lzgg== X-Gm-Message-State: AOAM532dOSitB71c+UVxJLbYQV4GB2nuXtIemKPvZrD99L1AMJbe+6Mm Ngcf5kCHxwMkJAZyoAyiW8BdZO6D X-Google-Smtp-Source: ABdhPJwSbb79kmY7DkCicu1bibjmRmwkDhPsaYe4S7la9jpHz+4d4wDYfZdkm3pwOOLNjGKLc5IpCQ== X-Received: by 2002:a17:90a:b00e:: with SMTP id x14mr8327273pjq.57.1594423118394; Fri, 10 Jul 2020 16:18:38 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id c14sm7296382pfj.82.2020.07.10.16.18.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 16:18:37 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Andy Gross , Bjorn Andersson , Joerg Roedel , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Maulik Shah , 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: [PATCH v3 3/3] irqchip: Allow QCOM_PDC to be loadable as a permanent module Date: Fri, 10 Jul 2020 23:18:24 +0000 Message-Id: <20200710231824.60699-4-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710231824.60699-1-john.stultz@linaro.org> References: <20200710231824.60699-1-john.stultz@linaro.org> Allows qcom-pdc driver to be loaded as a permanent module Also, due to the fact that IRQCHIP_DECLARE becomes a no-op when building as a module, we have to replace it with 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: Maulik Shah 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 --- v2: Fix spelling, include order and set suppress_bind_attrs suggested by Maulik Shah v3: Drop conditional usage of IRQCHIP_DECLARE as suggested by Stephen Boyd and Marc Zyngier --- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/qcom-pdc.c | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 216b3b8392b5..cc285c1a54c1 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..5b624e3295e4 100644 --- a/drivers/irqchip/qcom-pdc.c +++ b/drivers/irqchip/qcom-pdc.c @@ -11,9 +11,11 @@ #include #include #include +#include #include #include #include +#include #include #include #include @@ -430,4 +432,28 @@ static int qcom_pdc_init(struct device_node *node, struct device_node *parent) return ret; } -IRQCHIP_DECLARE(qcom_pdc, "qcom,pdc", qcom_pdc_init); +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, + .suppress_bind_attrs = true, + }, +}; +module_platform_driver(qcom_pdc_driver); +MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Power Domain Controller"); +MODULE_LICENSE("GPL v2");