From patchwork Mon May 6 12:32:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Hesselbarth X-Patchwork-Id: 2523941 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 06C983FC5A for ; Mon, 6 May 2013 12:33:06 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UZKbG-0008Sj-CZ; Mon, 06 May 2013 12:33:02 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UZKbD-0003ZN-R6; Mon, 06 May 2013 12:32:59 +0000 Received: from mail-bk0-x234.google.com ([2a00:1450:4008:c01::234]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UZKb9-0003Xe-FR for linux-arm-kernel@lists.infradead.org; Mon, 06 May 2013 12:32:57 +0000 Received: by mail-bk0-f52.google.com with SMTP id q16so1551173bkw.11 for ; Mon, 06 May 2013 05:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=nCvgBt8x6n8E10FYwRTpOyjYdrtdNsNSqdpaPw5XJvo=; b=iSmQV4UNyhfxIAb9gIaUy9EixTL1V2fv8SdL1zttR1jJYsWoUBpVBSr4V8pYGFVuzl nTDLCStuj8hn6Mqjg41FJtVng7mGYkXbP/J8RfLCn8M9We1pyAIDD9spKv3Rpyr3LFK8 Be84G9VrnKmkIbM7yrbmfie8LeyrZe87l/Ex4mMax6DcXWj77sjtBq7nspfMXQIDaZST qoLGUQJq/GP2oJ59g06cU8IP/MWY6vd6Hrw67mKAp//+xa+GEmAb2OC/62aojcuL2iQw eDNvk/A4Bejs98uw8zSSyKg5kw+myRr2nQVQlDkgi14KFS5uR2WUgswZlHDCP3I+Quby ZLUQ== X-Received: by 10.204.199.70 with SMTP id er6mr8451250bkb.122.1367843550477; Mon, 06 May 2013 05:32:30 -0700 (PDT) Received: from topkick.lan (dslc-082-083-251-181.pools.arcor-ip.net. [82.83.251.181]) by mx.google.com with ESMTPSA id iy11sm5337796bkb.11.2013.05.06.05.32.28 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 05:32:29 -0700 (PDT) Received: from edge.wm.mst.uni-hannover.de (phire.mst.uni-hannover.de [130.75.30.51]) by topkick.lan (Postfix) with ESMTPSA id 6F0CE605DC; Mon, 6 May 2013 14:31:58 +0200 (CEST) From: Sebastian Hesselbarth To: Sebastian Hesselbarth Subject: [RFC patch 7/8] fixup 2/2: genirq: generic chip: Add linear irq domain support Date: Mon, 6 May 2013 14:32:13 +0200 Message-Id: <1367843533-7117-2-git-send-email-sebastian.hesselbarth@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1367843533-7117-1-git-send-email-sebastian.hesselbarth@gmail.com> References: <20130503214629.810207749@linutronix.de> <1367843533-7117-1-git-send-email-sebastian.hesselbarth@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130506_083255_644421_276264F3 X-CRM114-Status: GOOD ( 14.63 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sebastian.hesselbarth[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Thomas Petazzoni , Andrew Lunn , Russell King - ARM Linux , Jason Cooper , Arnd Bergmann , Jean-Francois Moine , devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Jason Gunthorpe , Gregory Clement , Gerlando Falauto , Rob Landley , Uwe Kleine-Koenig , Grant Likely , Thomas Gleixner , Ezequiel Garcia , Maxime Ripard , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org mask_cache pointer also needs to be initialized for domain generic chips. Signed-off-by: Sebastian Hesselbarth --- Cc: Thomas Gleixner Cc: Russell King - ARM Linux Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Arnd Bergmann Cc: Jason Cooper Cc: Andrew Lunn Cc: Jason Gunthorpe Cc: Thomas Petazzoni Cc: Gregory Clement Cc: Ezequiel Garcia Cc: Maxime Ripard Cc: Jean-Francois Moine Cc: Gerlando Falauto Cc: Uwe Kleine-Koenig Cc: devicetree-discuss@lists.ozlabs.org Cc: linux-doc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- kernel/irq/generic-chip.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/kernel/irq/generic-chip.c b/kernel/irq/generic-chip.c index 3dbfe2e..3e0312f 100644 --- a/kernel/irq/generic-chip.c +++ b/kernel/irq/generic-chip.c @@ -275,12 +275,22 @@ int irq_alloc_domain_generic_chips(struct irq_domain *d, int irqs_per_chip, p += sizeof(*dgc) + numchips * sizeof(void *); for (i = 0; i < numchips; i++) { + int k; + gc = (struct irq_chip_generic *)p; dgc->gc[i] = gc; irq_init_generic_chip(gc, name, num_ct, i * irqs_per_chip, NULL, handler); gc->domain = d; + for (k = 0; k < gc->num_ct; k++) { + struct irq_chip_type *ct = &gc->chip_types[k]; + if (gcflags & IRQ_GC_MASK_CACHE_PER_TYPE) + ct->mask_cache = &ct->mask_cache_priv; + else + ct->mask_cache = &gc->mask_cache; + } + raw_spin_lock_irqsave(&gc_lock, flags); list_add_tail(&gc->list, &gc_list); raw_spin_unlock_irqrestore(&gc_lock, flags);