Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp600936imu; Thu, 13 Dec 2018 00:53:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wu3cSMR+PSVm8SjWbzXYfCOM40mksAQcVQunUlFK8FV7ctHs+ygoXkJolax3raOMgceVZv X-Received: by 2002:a62:1c06:: with SMTP id c6mr22815638pfc.157.1544691232507; Thu, 13 Dec 2018 00:53:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544691232; cv=none; d=google.com; s=arc-20160816; b=mjn6VG2Fzoy9pMOertS0vGsGesb18gWYYlp3rEiSmgL/obT1igpL6/Df2NFCPGOJz6 ZBm08ZSap/DDOTCF7aLBW0856Vzyp3Ecf4kN9r5/ws1Su5+6R5Rt3LpcTW+4AB/Ghs/q BmmFqsSAjwjg6IdjwgFgupvXTRBxJ7Kn/ZM85anJbzOmvxvXAv8HYAXm/CnLiXHoPaS4 9Uv4KL1Wz/86JBo0X2ZMy5vvpptNLcgJQ/adxgaYdgPn+OZW/NZQDdCFK4oiB1g0Q+B3 LsxtgTMI2m97GzLeI5SNsc2MDxmmIwJrxDpKglU12cLa5PE+Y/Cusq5pM+vADbCmot5S peZg== 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=hrPjRBE75+lAl1IULtghU8MDfGI18N97kUf5tPDxIdg=; b=BQG/AWkgoMX8S11P/dflc0CTaNbKCDm4TXJAY/iwj15a9HUzLwtx2vWH4GmQthgy2L IED7xfL5asogvGaRyhxcKJIuakgG2+OEG1arrHB++Uj65A4VnMt+Jbi5AHOD00olAFyV phd6xZfHG7pbbPhvAiWU/d7J5SQJFS4g3AzuAklCNH34EYky04KCseHSz+Q4KF2MXbrE omL7Czn1SaCFGxZRmYSLFI1GnwtD4GeFkqKKLwZs3AMSYm0H1zUTV2SDp/fklrIjZi+t vA11kpUyPcM7eUf529RpWhLzIhr9cSHXhTYx0MErqpKvGUGGr8jmk9Us5L1fc0gr+Q14 I3og== 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 186si1000807pgi.424.2018.12.13.00.53.37; Thu, 13 Dec 2018 00:53:52 -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 S1727433AbeLMIwQ (ORCPT + 99 others); Thu, 13 Dec 2018 03:52:16 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:46965 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726930AbeLMIwQ (ORCPT ); Thu, 13 Dec 2018 03:52:16 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gXMj8-0002B6-1H; Thu, 13 Dec 2018 09:52:14 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gXMj7-0003bw-9e; Thu, 13 Dec 2018 09:52:13 +0100 Date: Thu, 13 Dec 2018 09:52:13 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Thierry Reding Cc: Michal =?utf-8?B?Vm9rw6HEjQ==?= , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] pwm: imx: Implement get_state() function for hardware readout Message-ID: <20181213085213.7k5ihn7bdrtess3g@pengutronix.de> References: <1538403588-68850-1-git-send-email-michal.vokac@ysoft.com> <1538403588-68850-3-git-send-email-michal.vokac@ysoft.com> <20181212105432.GD17654@ulmo> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181212105432.GD17654@ulmo> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 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, Dec 12, 2018 at 11:54:32AM +0100, Thierry Reding wrote: > On Mon, Oct 01, 2018 at 04:19:48PM +0200, Michal Vokáč wrote: > > Implement the get_state() function and set the initial state to reflect > > real state of the hardware. This allows to keep the PWM running if it was > > enabled in bootloader. It is very similar to the GPIO behavior. GPIO pin > > set as output in bootloader keep the same setting in Linux unless it is > > reconfigured. > > > > If we find the PWM block enabled we need to prepare and enable its source > > clock otherwise the clock will be disabled late in the boot as unused. > > That will leave the PWM in enabled state but with disabled clock. That has > > a side effect that the PWM output is left at its current level at which > > the clock was disabled. It is totally non-deterministic and it may be LOW > > or HIGH. > > > > Signed-off-by: Michal Vokáč > > --- > > drivers/pwm/pwm-imx.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 53 insertions(+) > > Applied, thanks. Did you miss my feedback for this patch or did you choose to ignore it? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |