From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 895C1C6778A for ; Sat, 30 Jun 2018 10:32:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 41F40261BD for ; Sat, 30 Jun 2018 10:32:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="OiRWZJHA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 41F40261BD Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936966AbeF3Kct (ORCPT ); Sat, 30 Jun 2018 06:32:49 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:41634 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936856AbeF3Kcp (ORCPT ); Sat, 30 Jun 2018 06:32:45 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id w5UAWgg3022069; Sat, 30 Jun 2018 05:32:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1530354762; bh=YwQr1oZEIQcL5cJhCS/ih5m0+MySiMK76+ff52TAf+E=; h=From:To:CC:Subject:Date; b=OiRWZJHAv/L1RUoqzQgeiHkn2rpGeTpZV3rBMzw5wJ3dplrnhFGNuiUMJAECO8a+E v7t4r6l5Q5tPTn1JG12/waxTAQvTd0xd3GRkSvHa/eNQ46kxXh0V8vOqtnvypgUqbp RSggI3TSImtybY+NL7L5w8RM4xrjY1ZcyWJsp3kE= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5UAWgsi020134; Sat, 30 Jun 2018 05:32:42 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Sat, 30 Jun 2018 05:32:42 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Sat, 30 Jun 2018 05:32:42 -0500 Received: from a0132425.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5UAWd6S013640; Sat, 30 Jun 2018 05:32:40 -0500 From: Vignesh R To: Jonathan Cameron , Dmitry Torokhov , Lee Jones CC: Vignesh R , , , , Subject: [PATCH 0/5] ti_am335x_tsc: Enable wakeup capability Date: Sat, 30 Jun 2018 16:03:13 +0530 Message-ID: <20180630103318.25355-1-vigneshr@ti.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On AM335x, resistive TSC can wakeup the system from low power state. Currently, parent MFD device is marked as wakeup source, which is inaccurate as its the touch event generated by TSC thats the wakeup source. This series moves all wakeup related calls to operate on TSC device instead of MFD. It also marks TSC IRQ as wakeup capable, so that its not disabled during system suspend. This series is based on Dmitry's comments here: https://lkml.org/lkml/2018/4/24/65 There are many new patches in this series, hence did not mark this as v4. Vignesh R (5): mfd: ti_am335x_tscadc: Don't mark TSCADC MFD as wakeup capable Input: ti_am335x_tsc: Mark TSC device as wakeup source mfd: ti_am335x_tscadc: Keep ADC interface on if child is wakeup capable iio: adc: ti_am335x_adc: Disable ADC during suspend unconditionally Input: ti_am335x_tsc: Mark IRQ as wakeup capable drivers/iio/adc/ti_am335x_adc.c | 12 ++++-------- drivers/input/touchscreen/ti_am335x_tsc.c | 22 +++++++++++++++++----- drivers/mfd/ti_am335x_tscadc.c | 14 +++++++++++++- 3 files changed, 34 insertions(+), 14 deletions(-) -- 2.18.0