Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1866001ybb; Thu, 9 Apr 2020 10:26:09 -0700 (PDT) X-Google-Smtp-Source: APiQypI7kD8r3o+g0xWb3J1Teh3dj/ZQ1i2uA+MEgfWeEvU4/ceelS2HZkyqGYYPj/K9t35I2VCK X-Received: by 2002:ac8:346f:: with SMTP id v44mr385574qtb.205.1586453168960; Thu, 09 Apr 2020 10:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586453168; cv=none; d=google.com; s=arc-20160816; b=kk8ApqHrV6Pr3CaJUZEqu3F74y1E6GXNJpFSGk2GANMAGOPH/a3PBPEZCN5bHNieSe 8KYgAo6TZ8yQxHCpYJmGDBzNWnHBh4IdCqBzqwmxr7uy7Kvq58MNGCZmeLuUQdsNG5q0 IiiFDcCVgbe6hD/d2k54DueOB9r3c6/9reDMfO1EaosVT9IO7z7xM8/5aRuNbuKCwh4c JUNbsgMisWJBsGJ/yTBnq8rP6KreX/3zz4z9wdA/e8+Orb+Gy+Km9AmZbqApdf6V39dA Ll48TTwLNah2ETIQ1knvyZEfDIBiWyZ1A/XJ1/0KpO3uJE+ZJpxgr4WWjS1B3+lFhGWw 8MRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=4T/yNw7Oi6CyzIIjkIvIk0WZLkoS1PM8XtkC6qecQpw=; b=RqykXFZM5AExWcOP/Di6em0gn4v0unt97/v/4NaLHP62lL8eYIv9B7WIjiJkoJAKRC eOklHc4XyVwljE2q0Zu9BV/iteT+dU9juBuR/Ghq3mXrvjpHXUYCCH+nbxhYqx1QMsIx QGLBTgLb9Jp8VXasLT71O2Sqb6Y6xthkvAV+zSBi7sPY2oGp57GfsgV1fAnJSRbJF3XN M9zNspK/DU6rif5CuuRlGdNeUbzBpRYgVn7RhkQYsxGKjOaDGszgp/opr1iNUxlynSB4 2QIudRJSIdGfDjwUHyQx7bMv1Wu2dDgYrKRK6dp4u8XuTbL4JIpVD2/nYZPBdmlhB2kE PcUg== 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 m19si5835941qtn.327.2020.04.09.10.25.53; Thu, 09 Apr 2020 10:26:08 -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 S1728063AbgDIPUO (ORCPT + 99 others); Thu, 9 Apr 2020 11:20:14 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:46297 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727736AbgDIPUO (ORCPT ); Thu, 9 Apr 2020 11:20:14 -0400 Received: by mail-ed1-f67.google.com with SMTP id dk4so87090edb.13; Thu, 09 Apr 2020 08:20:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4T/yNw7Oi6CyzIIjkIvIk0WZLkoS1PM8XtkC6qecQpw=; b=Rd4Hq+2tWp1D5xZlbEF7k3mWfg93I28KWIiMG+/MUKvJmmk/NfAGJWWn3ZWb88g44i bGFkQm2qHfI/JXf9YCc6/YvGav8daVwEX7Cy9YzjIYhBmlYAS601AAxqIxQpOQEo0FXl qyiP3oYGdcDKCpFCySfAV5G1TDIrXUfFr40T7QpzVe7wr9fRIju5b4hwOhUjtTE7sMK2 4Y8niK/VW4cKFmYhxIgyshYeip8UUA96BKFZ6Fw/F+aQx+V2nw2TGTkkzwcBMENVTz3Q ZOIu54YI7HzwqiD0/DNasFo5ThK2AcnGKS72f2MXFc7oezs1aIBx4ku9X9m0PxhCVfLi 79ew== X-Gm-Message-State: AGi0PuZnVAXHS5KcBywAUYAwetUIqDX5oHNXnfAoVZPtX1pnh/yH9jJp ZN4BhGgppaNJz3ZH4Z6pwo5zsY5+jfs= X-Received: by 2002:aa7:c0d4:: with SMTP id j20mr516713edp.288.1586445611793; Thu, 09 Apr 2020 08:20:11 -0700 (PDT) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com. [209.85.221.47]) by smtp.gmail.com with ESMTPSA id y23sm328621eju.85.2020.04.09.08.20.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 08:20:11 -0700 (PDT) Received: by mail-wr1-f47.google.com with SMTP id g3so12405660wrx.2; Thu, 09 Apr 2020 08:20:10 -0700 (PDT) X-Received: by 2002:a5d:4011:: with SMTP id n17mr12170370wrp.104.1586445610677; Thu, 09 Apr 2020 08:20:10 -0700 (PDT) MIME-Version: 1.0 References: <20200317155906.31288-1-dev@pascalroeleven.nl> <20200317155906.31288-3-dev@pascalroeleven.nl> In-Reply-To: <20200317155906.31288-3-dev@pascalroeleven.nl> From: Chen-Yu Tsai Date: Thu, 9 Apr 2020 23:19:59 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 2/4] pwm: sun4i: Disable pwm before turning off clock gate To: Pascal Roeleven Cc: Thierry Reding , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Maxime Ripard , Philipp Zabel , linux-pwm@vger.kernel.org, linux-arm-kernel , linux-kernel , linux-sunxi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 18, 2020 at 12:00 AM Pascal Roeleven wrote: > > The clock gate must stay on when disabling to ensure proper turning off. > After one period it will still be disabled anyway. > > Signed-off-by: Pascal Roeleven Reviewed-by: Chen-Yu Tsai