From patchwork Tue Apr 25 02:16:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "majun (F)" X-Patchwork-Id: 9697467 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 8F07860224 for ; Tue, 25 Apr 2017 02:16:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 819C82864F for ; Tue, 25 Apr 2017 02:16:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7498228651; Tue, 25 Apr 2017 02:16:53 +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 7B6B12864F for ; Tue, 25 Apr 2017 02:16:52 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=z+LnRvqIYxzJb9ZwgsTxkEjOzN5SgvCF1aja5uBAJ1M=; b=KW9/hVjTa8N+gX oDidQ8ISBrx6WmCkrOY+CN8hses+sUYruJUaGXUcliiz6iVnXGnE3uJXy6OisD8ZUO4fYCG5q8HnC hWscPlTD9twvc3YWlsSsniWLiDlZrHk+bwnmmA++PbnbtQPhjRAC/wuQgKeio0gkuvuax240gqBaT AIZDHrlYMhVTRjpisqpxf5E3fc/M+ut25kI524hgq57WDkwCUx0665aAkvENxxuGok9oyRR+oJc3o ktpztOFB7OB+I/odu17BhTrSdfwjHoffiXtqHEHECSA2NXFcPMvM44rgWWiSQBNygXGCITokCCREe mkxxy2Utr09tCkX5inTQ==; 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 1d2q28-0002HQ-4n; Tue, 25 Apr 2017 02:16:52 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188] helo=dggrg02-dlp.huawei.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d2q24-0002FZ-Sp for linux-arm-kernel@lists.infradead.org; Tue, 25 Apr 2017 02:16:51 +0000 Received: from 172.30.72.54 (EHLO DGGEML403-HUB.china.huawei.com) ([172.30.72.54]) by dggrg02-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id AMJ21931; Tue, 25 Apr 2017 10:16:14 +0800 (CST) Received: from localhost (10.177.249.226) by DGGEML403-HUB.china.huawei.com (10.3.17.33) with Microsoft SMTP Server id 14.3.301.0; Tue, 25 Apr 2017 10:16:03 +0800 From: Majun To: , , , , , , Subject: [PATCH] irqchip/mbigen: Fix the clear register offset Date: Tue, 25 Apr 2017 10:16:03 +0800 Message-ID: <1493086563-36396-1-git-send-email-majun258@huawei.com> X-Mailer: git-send-email 1.9.5.msysgit.1 MIME-Version: 1.0 X-Originating-IP: [10.177.249.226] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.58FEB16F.0001, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: f735e029ff29172df9316995e85543c7 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170424_191649_163787_24C0F860 X-CRM114-Status: UNSURE ( 7.50 ) X-CRM114-Notice: Please train this message. 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: , 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 From: MaJun Don't minus reserved interrupts (64) when get the clear register offset,because the clear register space includes the space of these 64 interrupts. Signed-off-by: MaJun --- drivers/irqchip/irq-mbigen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c index 061cdb8..75818a5 100644 --- a/drivers/irqchip/irq-mbigen.c +++ b/drivers/irqchip/irq-mbigen.c @@ -108,7 +108,6 @@ static inline void get_mbigen_clear_reg(irq_hw_number_t hwirq, { unsigned int ofst; - hwirq -= RESERVED_IRQ_PER_MBIGEN_CHIP; ofst = hwirq / 32 * 4; *mask = 1 << (hwirq % 32);