From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752142AbbJWGjw (ORCPT ); Fri, 23 Oct 2015 02:39:52 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:34386 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751724AbbJWGju (ORCPT ); Fri, 23 Oct 2015 02:39:50 -0400 Date: Thu, 22 Oct 2015 23:39:46 -0700 From: Dmitry Torokhov To: Sudeep Holla Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Laxman Dewangan , Thierry Reding , linux-input@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH 06/19] input: tegra-kbc: enable support for the standard "wakeup-source" property Message-ID: <20151023063946.GA38047@dtor-ws> References: <1445422216-29375-1-git-send-email-sudeep.holla@arm.com> <1445422216-29375-7-git-send-email-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1445422216-29375-7-git-send-email-sudeep.holla@arm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 21, 2015 at 11:10:03AM +0100, Sudeep Holla wrote: > Though the mmc core driver should/will continue to support the legacy > "nvidia,wakeup-source" property to enable SDIO as the wakeup source, we > need to add support for the new standard property "wakeup-source". > > This patch adds support for "wakeup-source" property in addition to the > existing "nvidia,wakeup-source" property. > > Cc: Laxman Dewangan > Cc: Dmitry Torokhov > Cc: Thierry Reding > Cc: linux-input@vger.kernel.org > Cc: linux-tegra@vger.kernel.org > Signed-off-by: Sudeep Holla Applied, thank you. > --- > drivers/input/keyboard/tegra-kbc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c > index f97c73bd14f8..f80c72d4ac8f 100644 > --- a/drivers/input/keyboard/tegra-kbc.c > +++ b/drivers/input/keyboard/tegra-kbc.c > @@ -517,7 +517,8 @@ static int tegra_kbc_parse_dt(struct tegra_kbc *kbc) > if (of_find_property(np, "nvidia,needs-ghost-filter", NULL)) > kbc->use_ghost_filter = true; > > - if (of_find_property(np, "nvidia,wakeup-source", NULL)) > + if (of_property_read_bool(np, "wakeup-source") || > + of_property_read_bool(np, "nvidia,wakeup-source")) /* legacy */ > kbc->wakeup = true; > > if (!of_get_property(np, "nvidia,kbc-row-pins", &proplen)) { > -- > 1.9.1 > -- Dmitry