[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5602B6A1.2090309@linaro.org>
Date: Wed, 23 Sep 2015 07:26:41 -0700
From: zhangfei <zhangfei.gao@...aro.org>
To: Sudeep Holla <sudeep.holla@....com>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
CC: Thomas Gleixner <tglx@...utronix.de>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Mauro Carvalho Chehab <mchehab@....samsung.com>,
Patrice Chotard <patrice.chotard@...com>,
Fabio Estevam <fabio.estevam@...escale.com>,
Guoxiong Yan <yanguoxiong@...wei.com>,
linux-media@...r.kernel.org
Subject: Re: [PATCH 15/17] ir-hix5hd2: drop the use of IRQF_NO_SUSPEND
On 09/21/2015 08:47 AM, Sudeep Holla wrote:
> This driver doesn't claim the IR transmitter to be wakeup source. It
> even disables the clock and the IR during suspend-resume cycle.
>
> This patch removes yet another misuse of IRQF_NO_SUSPEND.
>
> Cc: Mauro Carvalho Chehab <mchehab@....samsung.com>
> Cc: Zhangfei Gao <zhangfei.gao@...aro.org>
> Cc: Patrice Chotard <patrice.chotard@...com>
> Cc: Fabio Estevam <fabio.estevam@...escale.com>
> Cc: Guoxiong Yan <yanguoxiong@...wei.com>
> Cc: linux-media@...r.kernel.org
> Signed-off-by: Sudeep Holla <sudeep.holla@....com>
> ---
> drivers/media/rc/ir-hix5hd2.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/rc/ir-hix5hd2.c b/drivers/media/rc/ir-hix5hd2.c
> index 1c087cb76815..d0549fba711c 100644
> --- a/drivers/media/rc/ir-hix5hd2.c
> +++ b/drivers/media/rc/ir-hix5hd2.c
> @@ -257,7 +257,7 @@ static int hix5hd2_ir_probe(struct platform_device *pdev)
> goto clkerr;
>
> if (devm_request_irq(dev, priv->irq, hix5hd2_ir_rx_interrupt,
> - IRQF_NO_SUSPEND, pdev->name, priv) < 0) {
> + 0, pdev->name, priv) < 0) {
> dev_err(dev, "IRQ %d register failed\n", priv->irq);
> ret = -EINVAL;
> goto regerr;
>
ir is wakeup source for hix5hd2, so we use IRQF_NO_SUSPEND.
However, it is true the wakeup mechanism is not realized on hix5hd2 yet.
I am fine with either using IRQF_NO_SUSPEND or not.
Thanks for the patch.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists