Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp636402imp; Wed, 20 Feb 2019 06:30:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IbOHVaWfawCjOLbARY5GFjk9jV/4xpFZiZYxQLNdXX96vLQ8N16+ZioW3h1AslWYRbQJE/H X-Received: by 2002:a17:902:9003:: with SMTP id a3mr9677389plp.2.1550673053304; Wed, 20 Feb 2019 06:30:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550673053; cv=none; d=google.com; s=arc-20160816; b=YlLNB30WonOwOaSdLtX4Ay2OJFNe1LNVlC36EMGMaMExVc0MXDf4Q8plQubyPUlZtG alspxzZADSO+Jexj1UIaFe8Zsos2hn3Ts4ubdnk9GY3OjPX+E3TCSn1WmDjsAcpFcW3h ayHQ8mDwdXDKeY7Ej3RUi7s5MtNnF14yOtKQjPFNexGXFo0D9YyRY9MMZXRMtpihIAaQ Q0l+IEme5zjHLwCsqWtGVDxMDzl7iKkY1mu3v+eD4Q5MmLQbZ88RpclK9eib1TD4+4gI eHb84OFLEiBQKsY/6A2fgFDR2gdyFN0z5ZkhBC0w3GBkhe3iIjsuqj5S3xle7GS1IGkP ia0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Uhh0sjOT9WcJZ6oCxmcS3ATylpoU4XL0VV++vBfbrew=; b=nMeOQgkTaWdjAW4qqVX0BMkBG+h7MSC+I4I27t3zOtFmRMIQovL7WfT5X3aVu8HNE0 1WW9nj0tVi6DkHCwjNRg+WFWt15CUvHdKryUc5YFTXo0iepbGJEO7DfclpE2WDlxj079 kux4TfSVbxYfYRoAxTjQGf+Fhrv553JfP0N1ipWaOlHWa+4YJgfuHqtx7tzqNUiY+JB0 96SYBRnlDkQFEMcNiPCavehPMdW184Ku/NEuNE3DQOEyWk6hOMXc8fckJLLTHaVDKE8o PDxDWU73R7YsBk4Arn4AUQnq7pCVpwDZ578Zzgc8xLrNm3rT7XaFsJxMZnpHt0ywq1IO rvzw== 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 z3si13350080pgr.90.2019.02.20.06.30.37; Wed, 20 Feb 2019 06:30:53 -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 S1726486AbfBTO3b (ORCPT + 99 others); Wed, 20 Feb 2019 09:29:31 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:35665 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbfBTO3b (ORCPT ); Wed, 20 Feb 2019 09:29:31 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gwSsG-0006Zp-W3; Wed, 20 Feb 2019 15:29:24 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gwSsF-0003Qj-P6; Wed, 20 Feb 2019 15:29:23 +0100 Date: Wed, 20 Feb 2019 15:29:23 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Fabrice Gasnier Cc: thierry.reding@gmail.com, robh+dt@kernel.org, tduszyns@gmail.com, mark.rutland@arm.com, alexandre.torgue@st.com, mcoquelin.stm32@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH v5 3/3] pwm: core: add consumer device link Message-ID: <20190220142923.a5v6rohply2c7nfh@pengutronix.de> References: <1550668068-9661-1-git-send-email-fabrice.gasnier@st.com> <1550668068-9661-4-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1550668068-9661-4-git-send-email-fabrice.gasnier@st.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 20, 2019 at 02:07:48PM +0100, Fabrice Gasnier wrote: > Add a device link between the PWM consumer and the PWM provider. This > enforces the PWM user to get suspended before the PWM provider. It > allows proper synchronization of suspend/resume sequences: the PWM user > is responsible for properly stopping PWM, before the provider gets > suspended: see [1]. Add the device link in: > - of_pwm_get() > - pwm_get() > - devm_*pwm_get() variants > as it requires a reference to the device for the PWM consumer. > > [1] https://lkml.org/lkml/2019/2/5/770 > > Suggested-by: Thierry Reding > Signed-off-by: Fabrice Gasnier Acked-by: Uwe Kleine-K?nig Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |