From: Eddie James <eajames@linux.ibm.com>
To: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>,
Joel Stanley <joel@jms.id.au>, Andrew Jeffery <andrew@aj.id.au>
Cc: openbmc@lists.ozlabs.org
Subject: Re: [PATCH dev-5.0 3/3] media: platform: aspeed: change irq to threaded irq
Date: Wed, 10 Apr 2019 13:18:54 -0500 [thread overview]
Message-ID: <5d6a9330-0d96-8f7b-0ddb-44635d1fac71@linux.ibm.com> (raw)
In-Reply-To: <20190409192059.1160-4-jae.hyun.yoo@linux.intel.com>
On 4/9/19 2:20 PM, Jae Hyun Yoo wrote:
> Differently fron 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.
Reviewed-by: Eddie James <eajames@linux.ibm.com>
>
> Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
> ---
> 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 75b43488ae8e..9da61beeef52 100644
> --- a/drivers/media/platform/aspeed-video.c
> +++ b/drivers/media/platform/aspeed-video.c
> @@ -1615,8 +1615,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;
next prev parent reply other threads:[~2019-04-10 18:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-09 19:20 [PATCH dev-5.0 0/3] Improve stability of Aspeed video engine driver Jae Hyun Yoo
2019-04-09 19:20 ` [PATCH dev-5.0 1/3] media: platform: aspeed: fix a kernel warning on clk control Jae Hyun Yoo
2019-04-10 18:14 ` Eddie James
2019-04-09 19:20 ` [PATCH dev-5.0 2/3] media: platform: aspeed: refine clock control logic Jae Hyun Yoo
2019-04-10 18:17 ` Eddie James
2019-04-09 19:20 ` [PATCH dev-5.0 3/3] media: platform: aspeed: change irq to threaded irq Jae Hyun Yoo
2019-04-10 18:18 ` Eddie James [this message]
2019-04-10 13:26 ` [PATCH dev-5.0 0/3] Improve stability of Aspeed video engine driver Joel Stanley
2019-04-10 16:18 ` Jae Hyun Yoo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5d6a9330-0d96-8f7b-0ddb-44635d1fac71@linux.ibm.com \
--to=eajames@linux.ibm.com \
--cc=andrew@aj.id.au \
--cc=jae.hyun.yoo@linux.intel.com \
--cc=joel@jms.id.au \
--cc=openbmc@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.