Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp488186img; Mon, 18 Mar 2019 07:36:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7/Krhmsf+HR2MLXdJUmuMig1Rg8yMsVwWdWCQb02ZN2Wozcjf/ThMGKlXNRUeyeO3+Xpg X-Received: by 2002:a17:902:5992:: with SMTP id p18mr20095518pli.231.1552919811884; Mon, 18 Mar 2019 07:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552919811; cv=none; d=google.com; s=arc-20160816; b=O8XMiJ2oUSl6FwgKcDo6cTEZKohSZnoqjrE+abskGNWqzl3b6Ul1rvXoYm++cR90Ne 77+QfFLO4NllK+FNwJUt1f0vtfe2KJfonVyKZjMnNvpRarO0g1A8FLR+5Urj8bu5qyBj JfDpxVQAAl/ju1liL0p6CpjyvVE72Q0vbTfw+rCpvOb9s8kq8Er3glBk5blRxs3rpD4o w6n7FW2kYEH1GWH/1OX1KfFENWVGm9YbYl5lo78XfYUKfV5YjRNiusjIk6rBy+R/81PU 5WBRQHw4PdouyNqwY/b5rI0WqSLucLj6va+o3/w0vJ3Q/du4aim+PSHcbShmCTIvUXaL JDDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=cbQ6CPGwuFoCpRNonzHT3LbL/svy1TLyrcasIwEjwxw=; b=z54ih4Om6aLX3YuxsE85qorsV9tvO63phV17BLINGSOt3k8xRmzhk4ivgoDRPOu+hi Ho1SWCuukRcTb/aKxqfgA632t1ysycrgmEmP6xEVtBoxn+XAIkJRbDNjVyh/PULKz/LP Lh8e70upWRpeOV2HXjBN6+zXxbhkr/HBjgCLyi3/6LT9dxRBcNfIJFBH4IrKpYALvIgR n4ll4AhE6w5ohwPcMsqsximHDKOF0ZXM62+SLr0B6/yPvwqrV6qi2d8rQxDWQBqMind8 755HHYAXmvAHzrf0eHZPx1FRRkKr+3v5z4yNky66faZa3lnQugoMTA+0vvZ63vijOrXF B7hQ== 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 s4si8859357pgp.364.2019.03.18.07.36.36; Mon, 18 Mar 2019 07:36:51 -0700 (PDT) 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 S1727780AbfCROfX (ORCPT + 99 others); Mon, 18 Mar 2019 10:35:23 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:11891 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726868AbfCROfW (ORCPT ); Mon, 18 Mar 2019 10:35:22 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2IEQ00t005301; Mon, 18 Mar 2019 15:35:05 +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 2r8q5b4jru-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 18 Mar 2019 15:35:05 +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 E3F0931; Mon, 18 Mar 2019 14:35:04 +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 9062651C9; Mon, 18 Mar 2019 14:35:04 +0000 (GMT) Received: from [10.48.0.167] (10.75.127.45) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 18 Mar 2019 15:35:03 +0100 Subject: Re: [PATCH v5 0/3] Add PM support to STM32 LP Timer drivers To: CC: , , , , , , , , , , References: <1550668068-9661-1-git-send-email-fabrice.gasnier@st.com> From: Fabrice Gasnier Message-ID: Date: Mon, 18 Mar 2019 15:35:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <1550668068-9661-1-git-send-email-fabrice.gasnier@st.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG5NODE1.st.com (10.75.127.13) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-18_09:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/20/19 2:07 PM, Fabrice Gasnier wrote: > 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 Hi Thierry, Gentle reminder to review changes I've made in v5. Thanks in advance, Best Regards, Fabrice > > --- > 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(-) >