* [PATCH] mtd: denali: fix property name for Denali DT binding
@ 2016-02-08 7:31 Masahiro Yamada
2016-02-08 8:29 ` Arnd Bergmann
0 siblings, 1 reply; 5+ messages in thread
From: Masahiro Yamada @ 2016-02-08 7:31 UTC (permalink / raw)
To: linux-mtd
Cc: Dinh Nguyen, Masahiro Yamada, devicetree, Kumar Gala,
linux-kernel, Ian Campbell, Rob Herring, Pawel Moll, Mark Rutland
The property "dma-mask" is used in the Examples section of this
document as well as drivers/mtd/nand/denali_dt.c, so I assume the
correct property name is "dma-mask", not "dm-mask"
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
Documentation/devicetree/bindings/mtd/denali-nand.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/mtd/denali-nand.txt b/Documentation/devicetree/bindings/mtd/denali-nand.txt
index b04d03a..785b825 100644
--- a/Documentation/devicetree/bindings/mtd/denali-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/denali-nand.txt
@@ -5,7 +5,7 @@ Required properties:
- reg : should contain registers location and length for data and reg.
- reg-names: Should contain the reg names "nand_data" and "denali_reg"
- interrupts : The interrupt number.
- - dm-mask : DMA bit mask
+ - dma-mask : DMA bit mask
The device tree may optionally contain sub-nodes describing partitions of the
address space. See partition.txt for more detail.
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] mtd: denali: fix property name for Denali DT binding
2016-02-08 7:31 [PATCH] mtd: denali: fix property name for Denali DT binding Masahiro Yamada
@ 2016-02-08 8:29 ` Arnd Bergmann
2016-02-08 8:41 ` Masahiro Yamada
0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2016-02-08 8:29 UTC (permalink / raw)
To: Masahiro Yamada
Cc: linux-mtd, Dinh Nguyen, devicetree, Kumar Gala, linux-kernel,
Ian Campbell, Rob Herring, Pawel Moll, Mark Rutland
On Monday 08 February 2016 16:31:42 Masahiro Yamada wrote:
> diff --git a/Documentation/devicetree/bindings/mtd/denali-nand.txt b/Documentation/devicetree/bindings/mtd/denali-nand.txt
> index b04d03a..785b825 100644
> --- a/Documentation/devicetree/bindings/mtd/denali-nand.txt
> +++ b/Documentation/devicetree/bindings/mtd/denali-nand.txt
> @@ -5,7 +5,7 @@ Required properties:
> - reg : should contain registers location and length for data and reg.
> - reg-names: Should contain the reg names "nand_data" and "denali_reg"
> - interrupts : The interrupt number.
> - - dm-mask : DMA bit mask
> + - dma-mask : DMA bit mask
>
> The device tree may optionally contain sub-nodes describing partitions of the
> address space. See partition.txt for more detail.
>
It looks like this binding is wrong in multiple ways, and it doesn't seem to
be used in any .dts files. Is this actually being shipped anywhere or
could we try to fix the binding properly?
Arnd
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mtd: denali: fix property name for Denali DT binding
2016-02-08 8:29 ` Arnd Bergmann
@ 2016-02-08 8:41 ` Masahiro Yamada
2016-02-08 21:37 ` Rob Herring
0 siblings, 1 reply; 5+ messages in thread
From: Masahiro Yamada @ 2016-02-08 8:41 UTC (permalink / raw)
To: Arnd Bergmann
Cc: linux-mtd, Dinh Nguyen, devicetree, Kumar Gala,
Linux Kernel Mailing List, Ian Campbell, Rob Herring, Pawel Moll,
Mark Rutland
Hi Arnd,
2016-02-08 17:29 GMT+09:00 Arnd Bergmann <arnd@arndb.de>:
> On Monday 08 February 2016 16:31:42 Masahiro Yamada wrote:
>> diff --git a/Documentation/devicetree/bindings/mtd/denali-nand.txt b/Documentation/devicetree/bindings/mtd/denali-nand.txt
>> index b04d03a..785b825 100644
>> --- a/Documentation/devicetree/bindings/mtd/denali-nand.txt
>> +++ b/Documentation/devicetree/bindings/mtd/denali-nand.txt
>> @@ -5,7 +5,7 @@ Required properties:
>> - reg : should contain registers location and length for data and reg.
>> - reg-names: Should contain the reg names "nand_data" and "denali_reg"
>> - interrupts : The interrupt number.
>> - - dm-mask : DMA bit mask
>> + - dma-mask : DMA bit mask
>>
>> The device tree may optionally contain sub-nodes describing partitions of the
>> address space. See partition.txt for more detail.
>>
>
> It looks like this binding is wrong in multiple ways, and it doesn't seem to
> be used in any .dts files. Is this actually being shipped anywhere or
> could we try to fix the binding properly?
>
Looks like it is locally used in Altera's Rocketboard tree now.
See this:
https://github.com/altera-opensource/linux-socfpga/blob/socfpga-4.3/arch/arm/boot/dts/socfpga.dtsi
I hope Dinh can comment on the status.
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mtd: denali: fix property name for Denali DT binding
2016-02-08 8:41 ` Masahiro Yamada
@ 2016-02-08 21:37 ` Rob Herring
2016-03-03 3:56 ` Masahiro Yamada
0 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2016-02-08 21:37 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Arnd Bergmann, linux-mtd, Dinh Nguyen, devicetree, Kumar Gala,
Linux Kernel Mailing List, Ian Campbell, Pawel Moll, Mark Rutland
On Mon, Feb 08, 2016 at 05:41:33PM +0900, Masahiro Yamada wrote:
> Hi Arnd,
>
>
> 2016-02-08 17:29 GMT+09:00 Arnd Bergmann <arnd@arndb.de>:
> > On Monday 08 February 2016 16:31:42 Masahiro Yamada wrote:
> >> diff --git a/Documentation/devicetree/bindings/mtd/denali-nand.txt b/Documentation/devicetree/bindings/mtd/denali-nand.txt
> >> index b04d03a..785b825 100644
> >> --- a/Documentation/devicetree/bindings/mtd/denali-nand.txt
> >> +++ b/Documentation/devicetree/bindings/mtd/denali-nand.txt
> >> @@ -5,7 +5,7 @@ Required properties:
> >> - reg : should contain registers location and length for data and reg.
> >> - reg-names: Should contain the reg names "nand_data" and "denali_reg"
> >> - interrupts : The interrupt number.
> >> - - dm-mask : DMA bit mask
> >> + - dma-mask : DMA bit mask
> >>
> >> The device tree may optionally contain sub-nodes describing partitions of the
> >> address space. See partition.txt for more detail.
> >>
> >
> > It looks like this binding is wrong in multiple ways, and it doesn't seem to
> > be used in any .dts files. Is this actually being shipped anywhere or
> > could we try to fix the binding properly?
> >
>
> Looks like it is locally used in Altera's Rocketboard tree now.
>
> See this:
>
> https://github.com/altera-opensource/linux-socfpga/blob/socfpga-4.3/arch/arm/boot/dts/socfpga.dtsi
>
>
> I hope Dinh can comment on the status.
>From the looks of it, this property should be dropped and the driver
should be updated to not touch dev->dma_mask. The core sets it up
correctly now.
Rob
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mtd: denali: fix property name for Denali DT binding
2016-02-08 21:37 ` Rob Herring
@ 2016-03-03 3:56 ` Masahiro Yamada
0 siblings, 0 replies; 5+ messages in thread
From: Masahiro Yamada @ 2016-03-03 3:56 UTC (permalink / raw)
To: Rob Herring
Cc: Arnd Bergmann, linux-mtd, Dinh Nguyen, devicetree, Kumar Gala,
Linux Kernel Mailing List, Ian Campbell, Pawel Moll, Mark Rutland
Hi Rob,
2016-02-09 6:37 GMT+09:00 Rob Herring <robh@kernel.org>:
> On Mon, Feb 08, 2016 at 05:41:33PM +0900, Masahiro Yamada wrote:
>> Hi Arnd,
>>
>>
>> 2016-02-08 17:29 GMT+09:00 Arnd Bergmann <arnd@arndb.de>:
>> > On Monday 08 February 2016 16:31:42 Masahiro Yamada wrote:
>> >> diff --git a/Documentation/devicetree/bindings/mtd/denali-nand.txt b/Documentation/devicetree/bindings/mtd/denali-nand.txt
>> >> index b04d03a..785b825 100644
>> >> --- a/Documentation/devicetree/bindings/mtd/denali-nand.txt
>> >> +++ b/Documentation/devicetree/bindings/mtd/denali-nand.txt
>> >> @@ -5,7 +5,7 @@ Required properties:
>> >> - reg : should contain registers location and length for data and reg.
>> >> - reg-names: Should contain the reg names "nand_data" and "denali_reg"
>> >> - interrupts : The interrupt number.
>> >> - - dm-mask : DMA bit mask
>> >> + - dma-mask : DMA bit mask
>> >>
>> >> The device tree may optionally contain sub-nodes describing partitions of the
>> >> address space. See partition.txt for more detail.
>> >>
>> >
>> > It looks like this binding is wrong in multiple ways, and it doesn't seem to
>> > be used in any .dts files. Is this actually being shipped anywhere or
>> > could we try to fix the binding properly?
>> >
>>
>> Looks like it is locally used in Altera's Rocketboard tree now.
>>
>> See this:
>>
>> https://github.com/altera-opensource/linux-socfpga/blob/socfpga-4.3/arch/arm/boot/dts/socfpga.dtsi
>>
>>
>> I hope Dinh can comment on the status.
>
> From the looks of it, this property should be dropped and the driver
> should be updated to not touch dev->dma_mask. The core sets it up
> correctly now.
I am still a newbie as for DMA.
Could you help me to understand what we should do and/or what we should not do
for the DMA mask.
Documentation/DMA-API-HOWTO.txt says as follows:
-------------------->8-----------------------
For correct operation, you must interrogate the kernel in your device
probe routine to see if the DMA controller on the machine can properly
support the DMA addressing limitation your device has. It is good
style to do this even if your device holds the default setting,
because this shows that you did think about these issues wrt. your
device.
--------------------<8----------------------
>From your statement, low-level drivers should no longer touch dma-mask
(i.e., the quoted paragraph above no longer applies to the latest
driver implementation),
is this correct?
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-03-03 3:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-08 7:31 [PATCH] mtd: denali: fix property name for Denali DT binding Masahiro Yamada
2016-02-08 8:29 ` Arnd Bergmann
2016-02-08 8:41 ` Masahiro Yamada
2016-02-08 21:37 ` Rob Herring
2016-03-03 3:56 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).