Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp122240imj; Wed, 13 Feb 2019 05:46:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IYb+7JSb2HwErDgAZneZmMP/6blkpRWK66D4IY5+GuwqSuVxUH9wyELBnt+nzGfxuxkMTcV X-Received: by 2002:a17:902:506:: with SMTP id 6mr636147plf.94.1550065585110; Wed, 13 Feb 2019 05:46:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550065585; cv=none; d=google.com; s=arc-20160816; b=cd4QcrG3tarApMyaErW+N3xHMsnF06uZwihiyTc62qzxE95tIKllBRRSuvkNgsX4bY 3kj8sQWga5QcT99Uv8FbrgP1h07B/jWGris85k7rzlDbKLaCq0qr4yjVFdX9Uw1mu2St 0+w2zZq7fsknKnHFv47bbtkMlqsYf8zYQJgR3vaFyDEQe6C57KQoXFH3+ts3WU1epg7i 4kbhSKpKXJsEFrHOYXbMlOXj8RYDhyHj1gwpcUTPQCzq6Cl3unW0i6dB4wBm8+BvfSlP 9/gqoew1C055fa7DItvgLZMdoHVYhqZuEBCm+4Lpd7H4MQWf70akcqVcrgOw6fbHXHL0 rLKQ== 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=PI334+UKwLFT8WsOmArpfegrDBIZS1cTbYSdSwLOun8=; b=CEZ2pKuQAXu93+TTWpzaEdi/zULeV+FlWe6WUaAfe/F1CRCWxbynDUpgUO5axGV5q1 fBsCb1/rbaF0+IVCE46I70/OFwG1YW/iAW+NBlFMRjJBr3Gypf7K3mzwBZ607Pv27Ulu MySX4c0CvPTzjCtuDLVa366JacCTMhz9VsranmuOWtX/FMQ7E8uG2NgvE1RxMPbAbofp pOMrd8PxSXadfr58kTGJj5/+RDmTCvkeqm7TfLkHkJqEihW/6oIsaRNE856ZqM225PIs MGFAxaY5l60VRaFXvKxUa2P7IzUwp95fwjiLHusuZ55HmKOAINmKaXCAusy/PqAuLm63 c23Q== 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 g129si14971666pgc.593.2019.02.13.05.46.08; Wed, 13 Feb 2019 05:46:25 -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 S2391558AbfBMKuw (ORCPT + 99 others); Wed, 13 Feb 2019 05:50:52 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:47897 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731311AbfBMKuv (ORCPT ); Wed, 13 Feb 2019 05:50:51 -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 x1DAkvCW020740; Wed, 13 Feb 2019 11:50:37 +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 2qjfy6akcc-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 13 Feb 2019 11:50:37 +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 2D40831; Wed, 13 Feb 2019 10:50:36 +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 E95094EDC; Wed, 13 Feb 2019 10:50:35 +0000 (GMT) Received: from localhost (10.75.127.48) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 13 Feb 2019 11:50:35 +0100 From: Fabrice Gasnier To: , CC: , , , , , , , , , , Subject: [PATCH v3 0/3] Add PM support to STM32 LP Timer drivers Date: Wed, 13 Feb 2019 11:50:09 +0100 Message-ID: <1550055012-23348-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.48] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-13_07:,, 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 v3: - Move the device_link_add() call to of_pwm_get() as discussed with Uwe. 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 | 14 +++++++++--- drivers/pwm/pwm-stm32-lp.c | 25 ++++++++++++++++++++++ include/linux/pwm.h | 6 ++++-- 4 files changed, 46 insertions(+), 8 deletions(-) -- 1.9.1