Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3388059pxb; Fri, 4 Feb 2022 07:34:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEHYpDp79RJ7RftOiHozhz4ds6o0FgIwB5TFHfiOaJWLsVZvsieBys4TEaN9dEncoW/MBG X-Received: by 2002:a17:902:db01:: with SMTP id m1mr3696610plx.126.1643988855693; Fri, 04 Feb 2022 07:34:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643988855; cv=none; d=google.com; s=arc-20160816; b=o88IzXYKa2fvhIuX82VQ0q04PH/EMbVWfFGk2DlYLsFpAtuJH4beXaoBgmuA4/Phqo xZzalOek6VMbmwx4x657WEl+5VrqF7ZWGWxr56NqNK7jfJEyFg5Vm+in0Ssqn0HYpa6k sSJ+LW+q8UFqFr+mq4KlFzcvhLDxXEKd1mXh3subzhvahiNQJgl0qVrbdyd+HesG7BXm fHAcfqgykuwPxpWW3t5j4OQHm0T0ZwS6oHGa781BR2CSE0s+rF4WML7icLmFbupVdkeC bIu+DQ/O28yHZMzTO4XmWgCIwC6bY6pIYtn0KEoSwuiwrUjG5qD/ibpDIKVw2XSI/J+4 dy4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=TKIA8solX6AXS+UL0s0pv/PZH7DNrdl6t5DJPlGj+18=; b=tB+EqOPAMoTiEZGMF1dywFhPltOEWzGK8w8p+rVtC4D/BVemSXl9iSXIjFAX1OaJg8 jgffb7QoZF3F7C5XnVM/GEouZFMCPTosBCy5TcJJbilFKM6HhkYXwMYleWN/+upTdPAn 8Bm9BPy3D7jziUcc3cs8cfyRVMUdnsqGWv3iB8ziV6XH7SAl5Xdt+jE6ljbqLgk0k0R3 VspS0tk6dOd5rrk/zYdJNFiLncOzN6ICFmduXOmK0PMPOSfY2jWT5lEIwyjcbHwvp/SZ 2a2HaldtlELpKovaAnC+lf00ien1QUibPCIJRESAowpQ9F4cdsiDTcVWJ4NnS/Q35UMQ mi2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=oM6zlwo5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l3si2025784pjk.103.2022.02.04.07.34.03; Fri, 04 Feb 2022 07:34:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=oM6zlwo5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352729AbiBCRRA (ORCPT + 99 others); Thu, 3 Feb 2022 12:17:00 -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 Content-Type: text/plain 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-kernel@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(-) -- 2.17.1