Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1833738imu; Thu, 24 Jan 2019 02:45:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN621O/l0jWWgZgv8LlMMPdIgbJxF2z3tQmVFJ8OLPrDLOw/3jm7SQhcXarHcp7+xd3aetwk X-Received: by 2002:a63:a401:: with SMTP id c1mr5474322pgf.403.1548326746752; Thu, 24 Jan 2019 02:45:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548326746; cv=none; d=google.com; s=arc-20160816; b=bNBJesJfs5DSRtzOUSWtUcBzkfZ7ZVZGwsvWCS7OCwy1myjhFuZ9QxpheWGBCymaCo 2ncfH+BI2z9ZbMAXYj4Dmiqqy+xSATPs3gWhWmEfGhl2jq0kCDEKYBH6LZQiw7+CZYpg AwCDvHoXwVsJgU+R3W35S03XR5RlsJJR9sDGZWlk9tFofNeWtiSTfHcp/W+mnYfSoChc 5v30J+SU2WyN4dk6I9xzhNqLuvse6OTW7qWGyu6Yjmi26s4UNPJBnkW5LSwlMakX7wPh FLedqsoaL5PagIYQThZIJUs3/pH7ZGn9jiXXGOTyIiB6zXrbg18P3fZU1dJa5E0WdpqO Q3IQ== 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=y3+tJ+tmrE/1gFE1ZZ4MTAmdutiLmK38eVMo4rIUVKs=; b=pNk2MAsGtLlkmQL0E0xehiPCz7WOLRNwUnKmB+awyvGucdTpYu0eAbP+dxvMt9hiAq srkSSfmlr2x/98QSTQV6Ad73LdyAQM8SLC7idmRT/L5mJpGNj5oJyD/7ZGAGR7hvKPI7 MlcpqRQxSmZtqzrvS0vosJ5Wc2LvjIbnwzlLeL+Ey+cBnr1onprU2LSqlPkbiTVIROuB l/s7Z8COnnheZJ51M2tmDZiMY/5o37DDGpiqR4c6liQ2rAytzxo48nm2mD/IBE27BuNI HWjVb5YbY3t23RDiocw8Y/kIMFLYYm3izV0hs7g2M9vA0axYiAcB0aO9AbhPHWY4YFvV zSGg== 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 v190si21562634pfv.8.2019.01.24.02.45.31; Thu, 24 Jan 2019 02:45:46 -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 S1727649AbfAXKom (ORCPT + 99 others); Thu, 24 Jan 2019 05:44:42 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:45043 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727153AbfAXKom (ORCPT ); Thu, 24 Jan 2019 05:44:42 -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 1gmcUv-0002kK-42; Thu, 24 Jan 2019 11:44:37 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gmcUt-0001A2-DY; Thu, 24 Jan 2019 11:44:35 +0100 Date: Thu, 24 Jan 2019 11:44:35 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Michal =?utf-8?B?Vm9rw6HEjQ==?= Cc: Thierry Reding , Rob Herring , Mark Rutland , "devicetree@vger.kernel.org" , "linux-pwm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Lukasz Majewski , Fabio Estevam , Lothar =?iso-8859-1?Q?Wa=DFmann?= , Linus Walleij Subject: Re: [RFC PATCH v3 2/2] pwm: imx: Configure output to GPIO in disabled state Message-ID: <20190124104435.e6paqwcuz3hizwnv@pengutronix.de> References: <1544103655-104466-1-git-send-email-michal.vokac@ysoft.com> <1544103655-104466-3-git-send-email-michal.vokac@ysoft.com> <20181212080154.kcfh57mulypwuscu@pengutronix.de> <52ed0614-d1f5-81cb-3b17-8eb137967872@ysoft.com> <20181212121255.yg6b4pw7qord7ebi@pengutronix.de> <4b0356b7-bc7d-a026-ac90-3f0c5754ed29@ysoft.com> <20190124092215.zbu62lhxf667rzvs@pengutronix.de> <4004896e-34fc-7160-2f21-30280d96f750@ysoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4004896e-34fc-7160-2f21-30280d96f750@ysoft.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 Thu, Jan 24, 2019 at 11:12:12AM +0100, Michal Vokáč wrote: > On 24.1.2019 10:22, Uwe Kleine-König wrote: > > I think it might be beneficial to allow (or require) that disable acts > > immediately. But this is not how it used to be and in my discussion with > > Thierry (IIRC) he required to complete the currently running period. > > I am confused here. IFAIK it always used to be that: > > pwm_apply_state(pwm, { .enabled = 0 }); > > immediately stops the PWM with: > > writel(0, imx->mmio_base + MX3_PWMCR); > > regardless of the period (for pwm-imx). Then is is a bug since forever (well, or a fact that resulted from the intended semantic not being documented and the driver author not caring or knowing better). Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |