Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1388779
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Andy Shevchenko <andy.shevchenko@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v6 2/4] dmaengine: dw: revisit data_width property |
| Date | Wed, 27 Apr 2016 10:30:02 +0200 |
| Message-ID | <rst18-6uo-5@gated-at.bofh.it> (permalink) |
| References | <rrNXY-5VY-11@gated-at.bofh.it> <rrNXY-5VY-13@gated-at.bofh.it> <rrNXZ-5VY-33@gated-at.bofh.it> <rsrsm-4Yn-7@gated-at.bofh.it> |
| X-Original-To | Viresh Kumar <viresh.kumar@linaro.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=hfbDKqbSuHbZd17ZN4ud6s43WRh/77s8GLzGB9ur6RY=; b=aGx9pLHQWFt7IAcR4b9Zv3Yc6cThLJdT8nHcOY79HfW8E8T+/K3+tXdMUEEYmhanqu B3M2QxF+ccRzuI9f//b6YvDoCTQ3sRLcL/zJURostA4l7ZulGrvFnBF1k3Cfa2ZKKQ6B SJpSl54Qt5ISspfcBc8w7+6fAmdjIYNd0hm826rN1LDCqr7b6IIUpjkKQ3S1Irpnw0H9 yvaJ9oEYev+xThxEwHGvCEO3x9p9Mnk5tag8TIEbQOLBH/abxJvK1I31UyZlSfjneHI5 pFd1HE23hVYJKMKni5lkQN1ZVVqK8z9Vgo9GBnBL7ejfPy9iJK1vcbJ8MD4H7SHSql6U KiWA== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=hfbDKqbSuHbZd17ZN4ud6s43WRh/77s8GLzGB9ur6RY=; b=Wa2ttaY5KB+o7QACy2sNp4qlwq/kBcKSyXIfCGS5snzJ1uIzA/Svbh6HjRFA2OOdHm iGztCgfhuVjHquFmx1CRrLXJ2/nMLRx4yFuzXHeHQrbdUQNwFRgtrUW4YaO6VTIsIE+U xrk0KIQ9Cc7D7RegcRBcBZZTsCIpnguIlxi/CStfqqBa9uqTCJWZ690sm2GSLFF4l2Xc UWyxaph7LNPYY8g8jLQR1EeoWss1dIBWhPsdKOPtgc09D0mORvluCMTbnPThOrxoanpU 2p3HuUZ0G1dG+tK3ARXrQ/aagI3OaZhLdG/6+DVWtKBLMQkyC/JPigkrYXVtJURxOmwd Y93w== |
| X-Gm-Message-State | AOPr4FX58IQccNkXajxH0n7jRfsBnXg5b4FqlF3JWWdD6p1JCEc/tutNZIR3zOWLt1HZfHqa957n6H9qdwcT9Q== |
| MIME-Version | 1.0 |
| X-Received | by 10.157.27.179 with SMTP id z48mr2626594otd.193.1461745523855; Wed, 27 Apr 2016 01:25:23 -0700 (PDT) |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 68 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Viresh Kumar <vireshk@kernel.org>, Vinod Koul <vinod.koul@intel.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, dmaengine <dmaengine@vger.kernel.org>, Rob Herring <robh+dt@kernel.org>, Mark Brown <broonie@kernel.org>, Vineet Gupta <vgupta@synopsys.com>, Tejun Heo <tj@kernel.org> |
| X-Original-Date | Wed, 27 Apr 2016 11:25:23 +0300 |
| X-Original-Message-ID | <CAHp75Vc=EZ1gLHpackYEAQXuTs_WCqOP1bk0SBkLJHdje3zCug@mail.gmail.com> |
| X-Original-References | <andriy.shevchenko@linux.intel.com> <1461587709-147048-1-git-send-email-andriy.shevchenko@linux.intel.com> <1461587709-147048-3-git-send-email-andriy.shevchenko@linux.intel.com> <20160427064317.GA4225@vireshk-i7> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1388779 |
Show key headers only | View raw
On Wed, Apr 27, 2016 at 9:43 AM, Viresh Kumar <viresh.kumar@linaro.org> wrote: > On 25-04-16, 15:35, Andy Shevchenko wrote: >> There are several changes are done here: >> >> - Convert the property to be in bytes >> >> Besides this is common practice for such property the use of a value in bytes >> much more convenient than handling the encoded value. >> >> - Rename data_width to data-width in the device tree bindings >> >> - While here, replace dwc_fast_ffs() by __ffs() >> >> The change leaves the support for old format as well just in case someone will >> use a newer kernel with an old device tree blob. >> >> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> >> --- >> Documentation/devicetree/bindings/dma/snps-dma.txt | 6 ++-- >> arch/arc/boot/dts/abilis_tb10x.dtsi | 2 +- >> arch/arm/boot/dts/spear13xx.dtsi | 4 +-- >> drivers/dma/dw/core.c | 42 ++++++---------------- >> drivers/dma/dw/platform.c | 5 ++- >> include/linux/platform_data/dma-dw.h | 2 +- >> 6 files changed, 21 insertions(+), 40 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/dma/snps-dma.txt b/Documentation/devicetree/bindings/dma/snps-dma.txt >> index c99c1ff..544b9b9 100644 >> --- a/Documentation/devicetree/bindings/dma/snps-dma.txt >> +++ b/Documentation/devicetree/bindings/dma/snps-dma.txt >> @@ -13,8 +13,8 @@ Required properties: >> - chan_priority: priority of channels. 0 (default): increase from chan 0->n, 1: >> increase from chan n->0 >> - block_size: Maximum block size supported by the controller >> -- data_width: Maximum data width supported by hardware per AHB master >> - (0 - 8bits, 1 - 16bits, ..., 5 - 256bits) >> +- data-width: Maximum data width supported by hardware per AHB master >> + (in bytes, power of 2) >> >> >> Optional properties: >> @@ -38,7 +38,7 @@ Example: >> chan_allocation_order = <1>; >> chan_priority = <1>; >> block_size = <0xfff>; >> - data_width = <3 3>; >> + data-width = <8 8>; >> }; > > You broke backward compatibility with earlier DTs. How? > > What's backward compatibility ? > > Consider that the DT from an earlier version of kernel is part of the bootrom of > a SoC. Now that bootrom should work just fine with any new kernel version. i.e. > old DT + new kernels should always work. Yes, the property name is slightly different as meaning. If we find data-width property driver will use it, otherwise it takes old name and converts variable to be in bytes in the driver. -- With Best Regards, Andy Shevchenko
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v6 2/4] dmaengine: dw: revisit data_width property Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-04-25 14:40 +0200
Re: [PATCH v6 2/4] dmaengine: dw: revisit data_width property Viresh Kumar <viresh.kumar@linaro.org> - 2016-04-27 08:50 +0200
Re: [PATCH v6 2/4] dmaengine: dw: revisit data_width property Vinod Koul <vinod.koul@intel.com> - 2016-04-27 10:10 +0200
Re: [PATCH v6 2/4] dmaengine: dw: revisit data_width property Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-04-27 10:30 +0200
Re: [PATCH v6 2/4] dmaengine: dw: revisit data_width property Viresh Kumar <viresh.kumar@linaro.org> - 2016-04-27 10:40 +0200
Re: [PATCH v6 2/4] dmaengine: dw: revisit data_width property Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-04-27 10:40 +0200
csiph-web