From patchwork Tue Dec 15 02:45:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zev Weiss X-Patchwork-Id: 11973585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67BCDC4361B for ; Tue, 15 Dec 2020 02:47:38 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 13FCB207A2 for ; Tue, 15 Dec 2020 02:47:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13FCB207A2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bewilderbeest.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=qJkuRSHNrED3Op/FuKDMdimJKnWq/MWQYWMOxuKF6xM=; b=yIeyH8thaxv3YUpcVtad3HlgZ ldwnYmtFsOioLL503Aa0GMtGTG3VXqUlPtBiaP6OnLc+OikP0GQxCmpr2RCr/sA81QKgrmqL3rIwf 2Tjf8g6/mZHmnRJtLJ5xH6y7Wnhw0JMgC8qpsR/IAC8ZAOm4zNmoSrwLtUIWusEWMoYTxUIQPjkRQ LI8EwVooU+5v+8E9mI4GF4DU2zm19EE575Hsb//5g8I/YgMGps3ePsARfDM8Sp+G/UETpAETHfoM3 qMyuHIW2/QBVHLfXuP/spxMAk1H6dLY/wLiG6AusWBAlMF7YPTzl+Diy3wbXqOLTauZPXAtLh3sCj k9SLtyAHQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp0Lt-0003rW-PA; Tue, 15 Dec 2020 02:46:13 +0000 Received: from thorn.bewilderbeest.net ([2605:2700:0:5::4713:9cab]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp0Lo-0003pp-1G for linux-arm-kernel@lists.infradead.org; Tue, 15 Dec 2020 02:46:10 +0000 Received: from hatter.bewilderbeest.net (unknown [IPv6:2600:6c44:7f:ba20:1c66:ab2d:5a3:5a9e]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 4F01A806FC; Mon, 14 Dec 2020 18:46:02 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 thorn.bewilderbeest.net 4F01A806FC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1608000363; bh=/VOZ9xkfSILAMzzqqgqchyt0cY3YfGcy6+HU/3zZoCw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IEF3oEChr4h/FkcJqRBZUnvzH0phnVPvxZbZe0W2uDP8sCG4v0mKKC7HAJKpNJYF2 uSFR+5G1BbdgEx5kN2mYHmT7q+fHO3QT7kWgB1sAhxyznUNEIm/1oZ3teJObF3NotC DNGhnWEoyR0AnYiipJEKmUvHSZWqxa53IiC+4uqg= From: Zev Weiss To: Eddie James , Mauro Carvalho Chehab , Joel Stanley , Andrew Jeffery , linux-media@vger.kernel.org, openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] aspeed-video: add COMP_READY to VE_SPURIOUS_IRQS Date: Mon, 14 Dec 2020 20:45:42 -0600 Message-Id: <20201215024542.18888-4-zev@bewilderbeest.net> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201215024542.18888-1-zev@bewilderbeest.net> References: <20201215024542.18888-1-zev@bewilderbeest.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201214_214608_436588_91D4FCE4 X-CRM114-Status: GOOD ( 12.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jae Hyun Yoo , Zev Weiss Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This joins CAPTURE_COMPLETE and FRAME_COMPLETE in the set of interrupts that have been seen asserted by the hardware even when disabled, leading to the interrupt eventually getting disabled as described in commit 65d270acb2d662c3346793663ac3a759eb4491b8. Signed-off-by: Zev Weiss Acked-by: Jae Hyun Yoo --- drivers/media/platform/aspeed-video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/aspeed-video.c b/drivers/media/platform/aspeed-video.c index 218aae3be809..48c52bf91a1b 100644 --- a/drivers/media/platform/aspeed-video.c +++ b/drivers/media/platform/aspeed-video.c @@ -564,7 +564,8 @@ static void aspeed_video_irq_res_change(struct aspeed_video *video, ulong delay) * register. */ #define VE_SPURIOUS_IRQS \ - (VE_INTERRUPT_CAPTURE_COMPLETE | VE_INTERRUPT_FRAME_COMPLETE) + (VE_INTERRUPT_CAPTURE_COMPLETE | VE_INTERRUPT_FRAME_COMPLETE \ + | VE_INTERRUPT_COMP_READY) static irqreturn_t aspeed_video_irq(int irq, void *arg) {