Message ID | 1502191628-11958-1-git-send-email-andrzej.p@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 AD741601EB for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 8 Aug 2017 11:27:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E7BD287A0 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 8 Aug 2017 11:27:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 932D6287AB; Tue, 8 Aug 2017 11:27:46 +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,RCVD_IN_DNSWL_NONE 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 DEA45287A0 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 8 Aug 2017 11:27:45 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=5ipqEVJ5vSKiSgSkzR9E70x3DkJiU+5RCav8dOkxQ98=; b=LHzZRKJlJD84rVTfKtzcU+Sl12 BZHivBQGSCuv2lBuUM48HCPDbN4GyHOAQvaCyH+08e14OcNBeJXG5Z1YkIrmRFmn0PlSNuAhIe0rq 3KmznxeLP9r2j1GTsJEp7MN1liEuPpuW/VbMX+CX24OE0HbJHeUKCi5nGk75KuyWYi+1AuRzaB/Un H1vcqo1fcE2VwlOI4kXF072Ksygnqbzgd7C2TuoIHjv5ea1z5Y43ma4CerpnRDTHUWAPQGP4GqYlJ Q1WQbH90NC+ORDpr9vWKLnmYmoWgveceKcjecx2WH42jG9QJs0p2HMSHxQFGobHjGNfTPXGCsJiYS aNz6Lyhg==; 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 1df2fn-00036y-1z; Tue, 08 Aug 2017 11:27:43 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1df2fj-00034S-4U for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2017 11:27:40 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OUD0020H6HGAL70@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2017 12:27:17 +0100 (BST) Received: from eusmges1.samsung.com (unknown [203.254.199.239]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170808112716eucas1p1ed535d1fc77fd8ac53ac005cc9949379~Y21WK07Kt1311213112eucas1p1X; Tue, 8 Aug 2017 11:27:16 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1.samsung.com (EUCPMTA) with SMTP id D8.83.12576.310A9895; Tue, 8 Aug 2017 12:27:15 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170808112715eucas1p264001c0fd86af71f3d06d6ece23db857~Y21VaKnJC2120221202eucas1p2d; Tue, 8 Aug 2017 11:27:15 +0000 (GMT) X-AuditID: cbfec7ef-f79ee6d000003120-84-5989a0131ef8 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id B0.51.20118.310A9895; Tue, 8 Aug 2017 12:27:15 +0100 (BST) Received: from AMDC831.digital.local ([106.116.147.122]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OUD002SM6H90300@eusync1.samsung.com>; Tue, 08 Aug 2017 12:27:15 +0100 (BST) From: Andrzej Pietrasiewicz <andrzej.p@samsung.com> To: linux-samsung-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/5] media: platform: s5p-jpeg: Fix crash in jpeg isr due to multiple interrupts. Date: Tue, 08 Aug 2017 13:27:04 +0200 Message-id: <1502191628-11958-1-git-send-email-andrzej.p@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1502191352-11595-1-git-send-email-andrzej.p@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHIsWRmVeSWpSXmKPExsWy7djPc7rCCzojDQ5807eY9bKdxWLjjPWs Fre3bmCxOH9+A7vFpsfXWC16NmxltZhxfh+Txdojd9ktVj+rsOi/eonNgctjx90ljB47Z91l 99i0qpPNY/OSeo8t/UBe35ZVjB6fN8kFsEdx2aSk5mSWpRbp2yVwZew/tYa5YK5JxaFFLg2M J3W7GDk5JARMJOZ9+sIEYYtJXLi3ng3EFhJYxijx6L5xFyMXkP2ZUaJ53mlWmIbfs7awQCSA it7tP8kO4TQwScx6u5AZpIpNwFhi78EORhBbRCBL4vSkRrAVzAJXmCR+rtcDsYUFkiUWdL5j AbFZBFQllv/YC2bzCrhKHP95mg1im5z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4srcQ4wSHMxKIrx98zojhXhTEiurUovy44tKc1KLDzGa Ah01kVlKNDkfGJd5JfGGJobmloZGxhYW5kZGSuK86pebIoUE0hNLUrNTUwtSi2D6mDg4pRoY cw6u+p2rs4RLRiJasH6pQOkMQR+Xm9/izpyf+DrrkNvlrbmKtTZsK7geuXVdOTBt5bd2/gM8 ShdMj0x/v0fz8HqLHbPvCfPdiVOf/H7etM43HD+djjwInzy3SsYwTWRlKft8neVXDadsE56b oWO622eTqXvwfxbze9Gym38nPFwm7vKx8Nztl0osxRmJhlrMRcWJAPWQd0qTAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170808112715eucas1p264001c0fd86af71f3d06d6ece23db857 X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBQaWV0cmFzaWV3aWN6G1NSUE9MLUtlcm5lbCAo?= =?UTF-8?B?VFApG+yCvOyEseyghOyekBtTZW5pb3IgU29mdHdhcmUgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBUb21hc3ogUGlldHJhc2lld2ljehtTUlBPTC1L?= =?UTF-8?B?ZXJuZWwgKFRQKRtTYW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2Fy?= =?UTF-8?B?ZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170808112715eucas1p264001c0fd86af71f3d06d6ece23db857 X-RootMTR: 20170808112715eucas1p264001c0fd86af71f3d06d6ece23db857 References: <1502191352-11595-1-git-send-email-andrzej.p@samsung.com> <CGME20170808112715eucas1p264001c0fd86af71f3d06d6ece23db857@eucas1p2.samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170808_042739_337412_E316104C X-CRM114-Status: GOOD ( 15.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Thierry Escande <thierry.escande@collabora.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Mauro Carvalho Chehab <mchehab@osg.samsung.com>, Krzysztof Kozlowski <krzk@kernel.org>, Jacek Anaszewski <jacek.anaszewski@gmail.com>, Andrzej Pietrasiewicz <andrzej.p@samsung.com>, Marek Szyprowski <m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index d1e3ebb..e276bd5 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -2259,6 +2259,7 @@ static void exynos4_jpeg_device_run(void *priv) exynos4_jpeg_set_dec_bitstream_size(jpeg->regs, bitstream_size); } + exynos4_jpeg_set_sys_int_enable(jpeg->regs, 1); exynos4_jpeg_set_enc_dec_mode(jpeg->regs, ctx->mode); spin_unlock_irqrestore(&jpeg->slock, flags); @@ -2662,6 +2663,8 @@ static irqreturn_t exynos4_jpeg_irq(int irq, void *priv) spin_lock(&jpeg->slock); + exynos4_jpeg_set_sys_int_enable(jpeg->regs, 0); + curr_ctx = v4l2_m2m_get_curr_priv(jpeg->m2m_dev); src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx);