Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9987207ybi; Wed, 24 Jul 2019 13:36:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+zzuEMrdJOukAxdEiv/n7fs0rwscNXxS7IQb4SxCsphF8AfbckjvD+xJZHiGn6V0Vn6Pt X-Received: by 2002:a17:902:e2:: with SMTP id a89mr88054252pla.210.1564000603428; Wed, 24 Jul 2019 13:36:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564000603; cv=none; d=google.com; s=arc-20160816; b=ztPdKNYjgBpy+Y3ETons8YKcgDsQxvFQe6mjN2J9qEyxoEfnzvH86QTUBhzu2u2hHO H2k+qrFC5Lkl/mYAExyCnYB79jk+1O7FmEsHMFrK7QQfa5ddZBh+J07IeznSlw5dhKlK +65Rg4lj8wV4Ool/bfkwiNwONUqGk9SbjbNjhK2acmlOBvbGM847JH/AX4Xe+oQ371Wo H5BOgza+m1Xz4rQXddHQ6bit2taB4DlkKgkYMJ696yJFOHrZZ0jxuOKHcXZEgZEEnHsx NIFUgmiEVSS6DaH/Y1YMpsib1yU2icxmUH82Tw39/nMoQx3lbbMXzKRP+lVG9Ai2wC58 O21A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EdjWeQc0IwEpatrgPRmpiDIOsYTLre5RDRAiyN6WYZE=; b=0fz71QVJ30nDbawL5FEUeRgfRPJ+MYyhCJVbJzVmti75UE5+3LTECybiXH98eQLK5H t7t/ISUZyGAQNjwBdDt+45oR50nEvOvAWpfzMewwkTJK2WnYz+9TRVHbn7UblLjeX5VS ON7b3q9b2ohFM9g5sRvod9hengNs9mDDCy2h/GylN7+WnU5xQmkOvb0g+IEeLDwISlEm +hi0XyywdvPf5ulUXKohvCTCItOrWtuBq3ktLHYVmgEzAnt2CVrlKz0OSsqD/J/hk0Cf Bxk0/hl8IWTSsA1GpDjxrWbfru0ml3xUygtwtj/h88S1IlYjayNvIIoFDkby860GionN xYiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X3R9iMkn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m15si15001174pff.267.2019.07.24.13.36.28; Wed, 24 Jul 2019 13:36:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X3R9iMkn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388071AbfGXT0A (ORCPT + 99 others); Wed, 24 Jul 2019 15:26:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:42892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbfGXTZ4 (ORCPT ); Wed, 24 Jul 2019 15:25:56 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 57DAA22387; Wed, 24 Jul 2019 19:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563996355; bh=wzqwrX74dR3G7OHB5fz38U9yevnkrxg3WmYhEN7OhUA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X3R9iMkn+gSskNjfyoSDfeqSUSjd8RET4JtBOB3bXMY5JiBMFAWfUcIGBrAL+MytP EdFVVCIvO5VLMWjudz7/cAoHt9wya6afU+1G8fasPiAWGko9i3GLthmU6xJSkFjzoR Rv+Aav8NZqp2wh0RK8WyXztxq1iFu/yhoBkxrFEU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jae Hyun Yoo , Eddie James , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.2 067/413] media: aspeed: change irq to threaded irq Date: Wed, 24 Jul 2019 21:15:58 +0200 Message-Id: <20190724191739.967570464@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 12ae1c1bf5db2f33fcd9092a96f630291c4b181a ] Differently from other Aspeed drivers, this driver calls clock control APIs in interrupt context. Since ECLK is coupled with a reset bit in clk-aspeed module, aspeed_clk_enable will make 10ms of busy waiting delay for triggering the reset and it will eventually disturb other drivers' interrupt handling. To fix this issue, this commit changes this driver's irq to threaded irq so that the delay can be happened in a thread context. Signed-off-by: Jae Hyun Yoo Reviewed-by: Eddie James Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/aspeed-video.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/aspeed-video.c b/drivers/media/platform/aspeed-video.c index 8144fe36ad48..76d7512c82a3 100644 --- a/drivers/media/platform/aspeed-video.c +++ b/drivers/media/platform/aspeed-video.c @@ -1589,8 +1589,9 @@ static int aspeed_video_init(struct aspeed_video *video) return -ENODEV; } - rc = devm_request_irq(dev, irq, aspeed_video_irq, IRQF_SHARED, - DEVICE_NAME, video); + rc = devm_request_threaded_irq(dev, irq, NULL, aspeed_video_irq, + IRQF_ONESHOT | IRQF_SHARED, DEVICE_NAME, + video); if (rc < 0) { dev_err(dev, "Unable to request IRQ %d\n", irq); return rc; -- 2.20.1