From patchwork Thu Feb 3 17:16:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erwan LE RAY X-Patchwork-Id: 539819 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA464C433EF for ; Thu, 3 Feb 2022 17:16:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351319AbiBCRQ6 (ORCPT ); Thu, 3 Feb 2022 12:16:58 -0500 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:58232 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352543AbiBCRQ5 (ORCPT ); Thu, 3 Feb 2022 12:16:57 -0500 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 213ETuTu031139; Thu, 3 Feb 2022 18:16:49 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=selector1; bh=TKIA8solX6AXS+UL0s0pv/PZH7DNrdl6t5DJPlGj+18=; b=oM6zlwo5yH+NR+YaJ/QzGE2A5Clxi9atZ4IDoohx3OWYXj5CT39kE52EDVvJzbgaEx7g LDfHVIJm8OjK+WQF3GUwGhn5p7Y6lTO2Ndp5s/Gocg10trv+esjpi2tGtQej/EeQOAPh IT38uO9+/jyfQ0BAWLGyxjOqGT40Cb6Ea1Rqx4HQVP7LogAY/6SO9PGQj5iuxJw+iOSV iTSqxyqc0JtB7QYR3Y3S1n0TdFVPRqF91r78M9oNM5VE1FqcT+VqOyGBdzPnYvj9rVbp cv3BpxSmxpXJuvCDAppW/oMnQL9XBtWP9HpbteTvaCXohjuh7w+JEdUu0VQhKjNiL0nX Pg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3e01qkcyyq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Feb 2022 18:16:49 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D4AC110002A; Thu, 3 Feb 2022 18:16:47 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id CC9FA22F7AB; Thu, 3 Feb 2022 18:16:47 +0100 (CET) Received: from localhost (10.75.127.46) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Thu, 3 Feb 2022 18:16:47 +0100 From: Erwan Le Ray To: Greg Kroah-Hartman CC: Jiri Slaby , Maxime Coquelin , Alexandre Torgue , Gerald Baeza , Erwan Le Ray , Valentin Caron , , , , Subject: [PATCH 0/2] STM32 enable gpio irqs as wakeup irqs for uart port Date: Thu, 3 Feb 2022 18:16:42 +0100 Message-ID: <20220203171644.12231-1-erwan.leray@foss.st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-03_06,2022-02-03_01,2021-12-02_01 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org This patchset allows to use mctrl_gpio pins as wakeup source. Add a new API to enable / disable wake_irq for serial mctrl_gpio pins. Use this API in STM32 usart driver to enable / disable mctrl_gpio pins wake_irq in suspend / resume procedure. Erwan Le Ray (2): serial: mctrl_gpio: add a new API to enable / disable wake_irq serial: stm32: enable / disable wake irqs for mcrtl_gpio wakeup sources drivers/tty/serial/serial_mctrl_gpio.c | 38 ++++++++++++++++++++++++++ drivers/tty/serial/serial_mctrl_gpio.h | 18 ++++++++++++ drivers/tty/serial/stm32-usart.c | 3 +- 3 files changed, 58 insertions(+), 1 deletion(-)