From patchwork Tue May 30 12:38:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiran Gunda X-Patchwork-Id: 9754531 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 28FD1602B9 for ; Tue, 30 May 2017 12:40:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BAAD2848E for ; Tue, 30 May 2017 12:40:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FC552847F; Tue, 30 May 2017 12:40:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3A4C2849A for ; Tue, 30 May 2017 12:40:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751942AbdE3Mkq (ORCPT ); Tue, 30 May 2017 08:40:46 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:57858 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751224AbdE3Mkj (ORCPT ); Tue, 30 May 2017 08:40:39 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DFD28607E4; Tue, 30 May 2017 12:40:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1496148033; bh=2gIn66HXjJcvIlSP3TKg7TPW9+jpOiztqHlWyZL+0xk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fVbw+dXA+kIJAmSZMARHfeoR7yT3X3u6I9u0zS8ScVRcWraO6//rEd3LtKGLQv7n9 YflIqlPVpATooMMWkAK5N/PKOvCcTUed3zu9bsoCOyEJkbbK7s7xmcIjMeCcONuToZ cdWyAI4OM61vaYtwM1wsnbeDtzfJEqBAjO9m/DI4= Received: from kgunda-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kgunda@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 32475607E4; Tue, 30 May 2017 12:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1496148033; bh=2gIn66HXjJcvIlSP3TKg7TPW9+jpOiztqHlWyZL+0xk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fVbw+dXA+kIJAmSZMARHfeoR7yT3X3u6I9u0zS8ScVRcWraO6//rEd3LtKGLQv7n9 YflIqlPVpATooMMWkAK5N/PKOvCcTUed3zu9bsoCOyEJkbbK7s7xmcIjMeCcONuToZ cdWyAI4OM61vaYtwM1wsnbeDtzfJEqBAjO9m/DI4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 32475607E4 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kgunda@codeaurora.org From: Kiran Gunda To: Kiran Gunda , Abhijeet Dharmapurikar , Christophe JAILLET , David Collins , Subbaraman Narayanamurthy , linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, adharmap@quicinc.com, aghayal@qti.qualcomm.com, sboyd@codeaurora.org, Nicholas Troast Subject: [PATCH V1 11/15] spmi: spmi-pmic-arb: enable the SPMI interrupt as a wakeup source Date: Tue, 30 May 2017 18:08:59 +0530 Message-Id: <1496147943-25822-12-git-send-email-kgunda@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1496147943-25822-1-git-send-email-kgunda@codeaurora.org> References: <1496147943-25822-1-git-send-email-kgunda@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently the SPMI interrupt will not wake the device. Enable this interrupt as a wakeup source. Signed-off-by: Nicholas Troast Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 0deac33..2afe359 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -1140,6 +1140,7 @@ static int spmi_pmic_arb_probe(struct platform_device *pdev) } irq_set_chained_handler_and_data(pa->irq, pmic_arb_chained_irq, pa); + enable_irq_wake(pa->irq); err = spmi_controller_add(ctrl); if (err)