Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2773265imj; Mon, 11 Feb 2019 08:14:57 -0800 (PST) X-Google-Smtp-Source: AHgI3IZd2pAkL6RoFW8fLQ6ZsXRTEZ4LbdUBv4EF4i4pKWzjDNUmikSGSBSKM0HUwCfRgG4fKnwL X-Received: by 2002:a17:902:bc88:: with SMTP id bb8mr8611963plb.12.1549901697136; Mon, 11 Feb 2019 08:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549901697; cv=none; d=google.com; s=arc-20160816; b=QGVQlQgy5c3+8nCaWwmToAfqyTte4yksF0xTIHPCvn2lmsBp6+dPfFI2Rgrr8Ae7tu wcyhF3ABnxvxm/vtvcA+yy7nD7GFwRgCVCD4rHNv7RjQw9VGJ8nCTzqXqO4e2szLIiBj uGcJnnXcpxKQ3qa+vA+/5Lk1xvMjdPhbGCyIreHC6miDlOX6SCtndevV+eBRcaS4yBXV m1x3cYsZGvZj/xoWWRJwvB15nFvibk3gqRxvCIW4T36VC0A1k7UW6H1M7m9yhCavKqow vXEqbsnHIo2d+DuqhvLBc6Nkkn31kuHnlhbvwIbBaP1iFWdjRa9ob0wKmjx8vhKubKXz WwIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=8mGEiiZaroWYVxVad8Fo04lKT31G15jTaBARBQUG2XI=; b=ktSGeCgh63JfG1HuLJpOU6fHClHh7C0oBv3n2U/OhsvQXplP381Gs7kptCI16ruiRn BFgvCSywt4CbkATNNXUvxmBQCB8F8cP2oq7PM8YSduLAOFgy4Faa8RCbaxAtrBMqpgt8 nJnHL9LHMpSy52smtC7Vwr6Y3lTKqdGI5ysu+oNUlkArzxrzqII2eU8t2bSdP9wAMrvC yyBmSp1x9XitO+KGww9lWDsYSNRN8WqoAIfzh2jJXuaob0REu6EvkvKBbXsLTc+WqJGU dbLWEqAGsg8W3HCIwXlmVwvRb57d2L2f6ZmZGUftjL51jzO7YWldrN6xRUpl1Zz4AFxb +NHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l16si9758112pfb.68.2019.02.11.08.14.41; Mon, 11 Feb 2019 08:14:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729846AbfBKQM4 (ORCPT + 99 others); Mon, 11 Feb 2019 11:12:56 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:47798 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727499AbfBKQMz (ORCPT ); Mon, 11 Feb 2019 11:12:55 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1BG6c2M032117; Mon, 11 Feb 2019 17:12:41 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2qjfy5ybqh-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 11 Feb 2019 17:12:41 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0141E31; Mon, 11 Feb 2019 16:12:40 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C194751BF; Mon, 11 Feb 2019 16:12:40 +0000 (GMT) Received: from localhost (10.75.127.51) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 11 Feb 2019 17:12:40 +0100 From: Fabrice Gasnier To: , CC: , , , , , , , , , , Subject: [PATCH v2 0/3] Add PM support to STM32 LP Timer drivers Date: Mon, 11 Feb 2019 17:11:59 +0100 Message-ID: <1549901522-15071-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG4NODE3.st.com (10.75.127.12) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-11_10:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds power management support for STM32 LP Timer: - PWM driver - Document the pinctrl states for sleep mode It also adds device link between the PWM consumer and the PWM provider. This allows proper sequencing for suspend/resume (e.g. user will likely do a pwm_disable() before the PWM provider suspend executes), see [1]. [1] https://lkml.org/lkml/2019/2/5/770 --- Changes in v2: - Don't disable PWM channel in PWM provider: rather refuse to suspend and report an error as suggested by Uwe and Thierry. - Add patch 3/3 to propose device link addition. - No updates for STM32 LP Timer IIO driver. Patches can be send separately. Fabrice Gasnier (3): dt-bindings: pwm-stm32-lp: document pinctrl sleep state pwm: stm32-lp: Add power management support pwm: core: add consumer device link .../devicetree/bindings/pwm/pwm-stm32-lp.txt | 9 +++++--- drivers/pwm/core.c | 13 +++++++++-- drivers/pwm/pwm-stm32-lp.c | 25 ++++++++++++++++++++++ 3 files changed, 42 insertions(+), 5 deletions(-) -- 1.9.1