Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp558615imp; Wed, 20 Feb 2019 05:10:17 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia/kjxyk3Vf0VNCRUvy/odE8dbmrFAAgk9e73ipEl38mnrAyru12fTrhG1WnvP5LXRc+TY8 X-Received: by 2002:a62:a504:: with SMTP id v4mr862083pfm.22.1550668217186; Wed, 20 Feb 2019 05:10:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550668217; cv=none; d=google.com; s=arc-20160816; b=mm9vTdr05qbKEAGbIQlKVGc61vTkXN5xdHy5HQdDsRNrz43+pij166Y1+QD3P7JJli o1kYVghnPe6WLSz1Adr2L+c/WCqhYj1yWNo4pRblUsLQUUPKsGWNWYuWHnritOM+X5uY cfvmpfm46yjzICmZLauJvr5M7mmmzMtVFBeSSHOl6t8ClSip+OaJXnEzSRuxqbTX+YPQ 93Uspr2kcQgWle0xI+A7+qVY5AqGBrhQO6wD3rKHFNrCcDRFm9yCHe4cOoEp9yaeRL+d E5SX2OAqK6wQZwYEQYZqlXTdtzBGtyo5HmAiybLkrwJHAhgMb82igtO7Ac+YTG7TGmb0 9y0w== 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=3yAkilO8fGuE+kgUQId40elGcXO18I9LRiXgR2GoP80=; b=j6rnFgClpL9jk8IWc1H/gkcdvQhjuYQLBTPANButpVFv55H5eqZu0T7mlffYRk16b8 Gm8K4KLBo81Dmbx6qdjjhax2Z5VdE6CW36dVHELnsmyvebKj3Gu+T7Pib7RFkVQPXDWX eKUKX2VP4RuC23VL4oHj3dcf7RAH/xZB9CRDbvoqm/cpIefgRl4780Ancxju2AhjtwQ8 /7lV2Fr3xb5PFKuymMbnucimWGJKQG6B8ZXYHNT1r04R9WYAgT6ksP5+lpa54FBhiHiG n0093tu/1ryaQFdvz6n+9iJyxdOyyKsEWvyOxnpoj9QNjqVs2KLhoEPpwaBr9Ns3Fo+b +zrQ== 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 f11si13682162plt.133.2019.02.20.05.10.01; Wed, 20 Feb 2019 05:10:17 -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 S1728226AbfBTNJc (ORCPT + 99 others); Wed, 20 Feb 2019 08:09:32 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:12236 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728029AbfBTNJ1 (ORCPT ); Wed, 20 Feb 2019 08:09:27 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1KD6MpZ018722; Wed, 20 Feb 2019 14:09:08 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2qr6x5s9f9-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 20 Feb 2019 14:09:08 +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 B744231; Wed, 20 Feb 2019 13:09:07 +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 8AABB2BB4; Wed, 20 Feb 2019 13:09:07 +0000 (GMT) Received: from localhost (10.75.127.45) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 20 Feb 2019 14:09:06 +0100 From: Fabrice Gasnier To: CC: , , , , , , , , , , , Subject: [PATCH v5 0/3] Add PM support to STM32 LP Timer drivers Date: Wed, 20 Feb 2019 14:07:45 +0100 Message-ID: <1550668068-9661-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-20_11:,, 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 v5: - improve a warning message, fix a style issue. Changes in v4: - improve error handling when adding the PWM consumer device link. 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 | 50 ++++++++++++++++++++-- drivers/pwm/pwm-stm32-lp.c | 25 +++++++++++ include/linux/pwm.h | 6 ++- 4 files changed, 82 insertions(+), 8 deletions(-) -- 2.7.4