From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: [PATCH] modify pl011 driver to work as wakeup source Date: Wed, 26 Aug 2015 16:00:55 +0200 Message-ID: <55DDC697.4080107@linaro.org> References: <1439547886-5093-1-git-send-email-zhaoyang.huang@linaro.org> <55CDC9D4.3020709@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-wi0-f171.google.com ([209.85.212.171]:34914 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737AbbHZOA7 (ORCPT ); Wed, 26 Aug 2015 10:00:59 -0400 Received: by wicne3 with SMTP id ne3so45929728wic.0 for ; Wed, 26 Aug 2015 07:00:58 -0700 (PDT) In-Reply-To: Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Zhaoyang Huang Cc: linux-pm@vger.kernel.org, Amit Kucheria , Sudeep Holla On 08/26/2015 03:02 PM, Zhaoyang Huang wrote: > The following functions don't work on pl011 for setting it as wakeup = irq. > device_init_wakeup(dev, true); dev_pm_set_wake_irq(dev, irq); Hi Zhaoyang, if I understood correctly, dev_pm_set_wake_irq is the new API to set a=20 wake up device up. You are the first one using it, so perhaps there is=20 something missing. I recommend you have a look at the slides [1] showed at the LPC2015. I added Sudeep so he can give more informations about that. -- Daniel [1]=20 https://linuxplumbersconf.org/2015/ocw//system/presentations/3051/origi= nal/wakeup_config.pdf > > On 14 August 2015 at 18:58, Daniel Lezcano > wrote: > > On 08/14/2015 12:24 PM, Zhaoyang Huang wrote: > > add IRQF_NO_SUSPEND flag when requiring irq line and call > the pm_system_wakeup when RX interrupt happens > > Signed-off-by: Zhaoyang Huang > > > > Did you look at the 'dev_pm_set_wake_irq' function ? > > > > -- > Linaro.org =E2=94=82 Open source softw= are for ARM > SoCs > > Follow Linaro: Facebook | > > Twitter | > Blog > > --=20 Linaro.org =E2=94=82 Open source software fo= r ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog