From patchwork Wed Apr 19 14:42:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 9687705 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 85BD2602C9 for ; Wed, 19 Apr 2017 15:01:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74CF328448 for ; Wed, 19 Apr 2017 15:01:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 691FA2844B; Wed, 19 Apr 2017 15:01:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DE2B227D4D for ; Wed, 19 Apr 2017 15:01:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/k2lR39T/GoSszibgUQ6NlL6cusCm0pEZtZpmlO4VZA=; b=LRltj7aWBX0U/g 6QmwXuB0N68uNl0gWxewzmaLzqU+pJyvzOWSK8rdAwE5Yp/7tIWgbOkBOMsUsxAWKuRi1xCjGkLSm xn75P/a4OFjIfMnEhVQyW2Lw9zXK0mN0xdjkoeG1kFNz4awjqQHvlX3YudfT2SkeSEKSPyZbx/+v5 K88tryritjJ5R+5jvac5Z9Xy4RmLbnT/8eXGspxN7DQoYgRY+dad7zVlcC+48kHt1MkGvjHym46t7 mgf/N0ON06I8iTJrlyPuzaElo/p1IYM/qOy3+gVyQUFyIBpUL67kPDFM+vathhqvd3KHlA/TF22w5 uf0ebZNf/KLUBfVd1byA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d0r71-0004as-Ua; Wed, 19 Apr 2017 15:01:43 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0r6l-0003x0-1v for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Apr 2017 15:01:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Nr0Ik4jDcp9fQolQoOnPICQG0Nr3aTdhBRdKa/wpEqI=; b=vfqeciNigviwsIyMVPjqf7u9o Xu5iZAB+llbzUn5Gv3pIQB9PTA8+xZrvloumx9R52Ozqlss/gNendsHC4LkctQstYduJkR4XDBASL rJmlZcc2MbdwGPzVYk1WenZGc7vR8x6VQNKQIpC0nhlzp/JCy6F3a6fIxwHwhwTttXIq8m2GBWSb2 MZsFXERHIoplJBtZvSnxPk+OqcYxzTMmXW2mrQSIDnqmMLnWfkEB5OCDKLmL7E5d+kZRLW3CSpTWP 8VJ/r9+8j0ulfBM6+GZ3AUiVx1FDEJoPGpWGUEx+LuDx7bgWFU7Ld0CL5SGfJB6S7qOdI7/+HvjDK C2jcQ9Z5w==; Received: from mail.linuxfoundation.org ([140.211.169.12]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0qr3-0008EF-3o for linux-arm-kernel@lists.infradead.org; Wed, 19 Apr 2017 14:45:15 +0000 Received: from localhost (LFbn-1-12060-104.w90-92.abo.wanadoo.fr [90.92.122.104]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 515D4B88; Wed, 19 Apr 2017 14:44:51 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Subject: [PATCH 4.9 41/69] irqchip/irq-imx-gpcv2: Fix spinlock initialization Date: Wed, 19 Apr 2017 16:42:57 +0200 Message-Id: <20170419141618.632255623@linuxfoundation.org> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170419141616.919951169@linuxfoundation.org> References: <20170419141616.919951169@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170419_154513_323067_79F43243 X-CRM114-Status: GOOD ( 10.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jason@lakedaemon.net, marc.zyngier@arm.com, Greg Kroah-Hartman , Tyler Baker , stable@vger.kernel.org, andrew.smirnov@gmail.com, Fabio Estevam , Thomas Gleixner , shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tyler Baker commit 75eb5e1e7b4edbc8e8f930de59004d21cb46961f upstream. The raw_spinlock in the IMX GPCV2 interupt chip is not initialized before usage. That results in a lockdep splat: INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. Add the missing raw_spin_lock_init() to the setup code. Fixes: e324c4dc4a59 ("irqchip/imx-gpcv2: IMX GPCv2 driver for wakeup sources") Signed-off-by: Tyler Baker Reviewed-by: Fabio Estevam Cc: jason@lakedaemon.net Cc: marc.zyngier@arm.com Cc: shawnguo@kernel.org Cc: andrew.smirnov@gmail.com Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/20170413222731.5917-1-tyler.baker@linaro.org Signed-off-by: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman --- drivers/irqchip/irq-imx-gpcv2.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/irqchip/irq-imx-gpcv2.c +++ b/drivers/irqchip/irq-imx-gpcv2.c @@ -230,6 +230,8 @@ static int __init imx_gpcv2_irqchip_init return -ENOMEM; } + raw_spin_lock_init(&cd->rlock); + cd->gpc_base = of_iomap(node, 0); if (!cd->gpc_base) { pr_err("fsl-gpcv2: unable to map gpc registers\n");