Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp599043imm; Fri, 12 Oct 2018 03:42:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV63KmqI/B96L/sVD2iLpKpAL2flcB8FGMcfj1ZSPJ25pwJ/OSpSIPtGACX1m6A7BZ+NOt3ah X-Received: by 2002:a17:902:6a:: with SMTP id 97-v6mr5141049pla.276.1539340934833; Fri, 12 Oct 2018 03:42:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539340934; cv=none; d=google.com; s=arc-20160816; b=dIqDI9ZlIeS25JBfOrqqBINfzhRPKIwRT7GRzNRzK0JcDcS9cGT+oL4+deLTkEnIyh GdgShbqaZ1fsbAfJtHHnxD/Lxo85JXJ7xwZSg8yD4ysQ65siYqr+ZOVifIvwm6LWaZQH O2NWroZYvhoqQcRXnba4lvysnfu+iQLXFyD2/U0cbcvt2qofeJdcScKN+kLES+uv+U84 O4KqEQUB/jlNYbb1rWBdhKI9puHM8QBnb2LKCnc7I1QilcbmZLmvxz9dJn+gGRX6RfEC CFZsAmp4TSi2j522pGa9lDr0f1N/YQGwvrFMlYiHhvjRG82pIHcDcjdW7twKGRWy9Vh5 ODLg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=P4FMXU+dr2OS/jhn7+79OVEFnzX+vIBjUnpiLGCuw2w=; b=jyCWXGhTuDxJ5WiS+reoLmteuhDDlOo5OvGFPa0qriXyyrDChJzxQQk+f0YdZMwVx4 Gdmkb08I9ez0RCZRn8CkZk0YQATlxznBhDJA4PSv134yLa5QAiqSy9wOYPQC56s/UOwz 38C/ohx2vp1zSlyiXZZpnjOutguM0nTibcYnk0NXjHHzuz5NmCYbKeiO/n88JSLwwLYP godZtorPfd/w4nSlFxJDol/jNIKoAOAJ/lQlX5TKXGYIqHMyukTeLiVRWaE1jMQBpI9l xCRDiPN9IAeBaYVECjCW1PJEhjBswB9njKxd+biaWzL1klQ5ZY3R4KnRjIWE47O9Nnio jV4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RnadBu+Y; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v126-v6si908662pgv.10.2018.10.12.03.41.59; Fri, 12 Oct 2018 03:42:14 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RnadBu+Y; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728053AbeJLSLt (ORCPT + 99 others); Fri, 12 Oct 2018 14:11:49 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51436 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbeJLSLt (ORCPT ); Fri, 12 Oct 2018 14:11:49 -0400 Received: by mail-wm1-f65.google.com with SMTP id 143-v6so11759429wmf.1; Fri, 12 Oct 2018 03:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=P4FMXU+dr2OS/jhn7+79OVEFnzX+vIBjUnpiLGCuw2w=; b=RnadBu+YR3q3S7N9VEPJTIwzNH0dr4wvWJZmLhEdT2fMAp/3rTVaI+ApDgcgvVvcyC ZJc9pfW6gs8AjU9mT8CvnvV2Px+NusXBZaYTFB5tD/g8wIY829Yi4OvRCnmsCu4mkqRQ Tmcy4ukdf2s9zx0D7iaifYeGlV7jAIZL6IrD9hcVXb5NX4Z/MhMteGWj+m3Kz6bYaz24 LZQe80pDI2YtMd0qHL7HiblzUZ4c+y37W5bCbzgFg34GUJpZZj2L3614JHz2wOe0/Luj fskseEwfOFXo35di4ZOK3r4M3edwHGB7XyUsrOA1fAsFjcagrbZElZvBzs3BWtq3X2vM QBxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=P4FMXU+dr2OS/jhn7+79OVEFnzX+vIBjUnpiLGCuw2w=; b=ByeAOH4SjbrUGp7I2+BZJbVSHqsy/VYlnl8OdOw6nLaWdhZEK9w6IuH4XJIYvcRykl b5Dr0kq/oxuRSNKdt9FoCsiWCo4/dnZb/GX1SliaTDEpGkCHkKShKo2yj38l+H0LKio0 NLkCGrYq19QHcqTm5Sz3EBc+GJp1h2A9Gg0txsAlfLZqh4i9hCxDYptTHjEdnOYZo91b aJmOJiq4g+HgZlwQR/0S4/TSsOeTDstwJugr3JSWAsRzDtAmk4wRhONxCewagpxp3qF+ FExpeAc2McvU1wd5GTJdWn0NwrNdgZPQQGZc85PR1bUkMgxS2wbLvQcEOb79kDsPXtjF HLbw== X-Gm-Message-State: ABuFfog3jxBSU+z/qKrwzs2OjO5ncgrj8cVkC9GldViYI3TwqckHpZoV HdtnXjj8IsQboJuYaeKOOeg= X-Received: by 2002:a1c:6355:: with SMTP id x82-v6mr4960967wmb.145.1539340799194; Fri, 12 Oct 2018 03:39:59 -0700 (PDT) Received: from localhost (p2E5BEEEA.dip0.t-ipconnect.de. [46.91.238.234]) by smtp.gmail.com with ESMTPSA id s7-v6sm8552340wmd.0.2018.10.12.03.39.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Oct 2018 03:39:58 -0700 (PDT) Date: Fri, 12 Oct 2018 12:39:57 +0200 From: Thierry Reding To: Paul Cercueil Cc: Thomas Gleixner , Daniel Lezcano , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , Jonathan Corbet , od@zcrc.me, Mathieu Malaterre , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-mips@linux-mips.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v7 12/24] pwm: jz4740: Use regmap and clocks from TCU driver Message-ID: <20181012103957.GF9162@ulmo> References: <20180821171635.22740-1-paul@crapouillou.net> <20180821171635.22740-13-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="H4SyuGOnfnj3aJqJ" Content-Disposition: inline In-Reply-To: <20180821171635.22740-13-paul@crapouillou.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --H4SyuGOnfnj3aJqJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 21, 2018 at 07:16:23PM +0200, Paul Cercueil wrote: > The ingenic-timer "TCU" driver provides us with a regmap, that we can > use to safely access the TCU registers. >=20 > It also provides us with clocks, that can be (un)gated, reparented or > reclocked from devicetree, instead of having these settings hardcoded in > this driver. >=20 > While this driver is devicetree-compatible, it is never (as of now) > probed from devicetree, so this change does not introduce a ABI problem > with current devicetree files. >=20 > Signed-off-by: Paul Cercueil > --- >=20 > Notes: > v5: New patch > =20 > v6: Drop requirement of probing from devicetree > =20 > v7: No change >=20 > drivers/pwm/Kconfig | 2 + > drivers/pwm/pwm-jz4740.c | 124 +++++++++++++++++++++++++++++++----------= ------ > 2 files changed, 83 insertions(+), 43 deletions(-) >=20 > diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig > index a4d262db9945..58359bf22b96 100644 > --- a/drivers/pwm/Kconfig > +++ b/drivers/pwm/Kconfig > @@ -202,6 +202,8 @@ config PWM_IMX > config PWM_JZ4740 > tristate "Ingenic JZ47xx PWM support" > depends on MACH_INGENIC > + depends on COMMON_CLK > + select INGENIC_TIMER > help > Generic PWM framework driver for Ingenic JZ47xx based > machines. > diff --git a/drivers/pwm/pwm-jz4740.c b/drivers/pwm/pwm-jz4740.c > index a7b134af5e04..1bda8d8e9865 100644 > --- a/drivers/pwm/pwm-jz4740.c > +++ b/drivers/pwm/pwm-jz4740.c > @@ -14,21 +14,21 @@ > */ > =20 > #include > +#include Why do you need this? Thierry --H4SyuGOnfnj3aJqJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlvAef0ACgkQ3SOs138+ s6Etkw/8CDqjDhw3dT5o3iLxU8WHHcL1syZVxtoMp8myKzUL83S+RIRFfWhrXYrg 0GoMLZCuuq5YQAFmH2IyOrcyQNP8za88WJmW6ahO5rUj2dToorEqD2kijC8Z1YY4 gJBm2OpTKROOUoZdP3fUkcLsJradOzua+wrzHeKkIOwleWWIRC4yXnfkPSlvYdAH 0ul5Nhteg6ulN25WE8uPEFGqWPgMAA0+tU64/COQ4V9Yg7P5YJbERNax72Dm7v0N eIppDnmtbVtt+SvJ+QAM8NgZogMhJnkdf8T7Ax8UPGMG6JSxmVsSz0hCMB5IVenF Lfp5u68cXO6hxyhku3ss4nthU8QMprEsM55chBEHvXyH7+4IsB6U+WEfc5tGxxN+ AJcQgan0mRO179DjdCYtxcELpJVRLglzhpjTIJisip+Kp0WtxJPd7wYtovMVlEHl VyqEXCearUquqFdJ3R20ZN5sUanv5miTaK9QpNYdQrkCv9t3/KK5KdutUZDpyDD7 3kubTcLr4W3cSqwrq2GJF6KV+9b6VdLUeZgmPHvAj/81pfHFb3j7Q9gmjJLgGgBr tVNXoCLSOaWWya9qrLPeKoZmm90zG3NpEoyExycPdai8qDGLIuhOspNZ7SG/ixFw eKm2sG95UCmCkGVSaIUVTZRgslDEv63kjKKG6qoza9kEMRjmqCg= =TBBW -----END PGP SIGNATURE----- --H4SyuGOnfnj3aJqJ--