lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 23 Jan 2020 14:02:45 +0530
From:   Lokesh Vutla <lokeshvutla@...com>
To:     Peter Ujfalusi <peter.ujfalusi@...com>, <t-kristo@...com>,
        <nm@...com>
CC:     <mark.rutland@....com>, <devicetree@...r.kernel.org>,
        <robh+dt@...nel.org>, <linux-kernel@...r.kernel.org>,
        <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v2 1/9] arm64: dts: ti: k3-am65-main: Correct main NAVSS
 representation



On 22/01/20 5:09 PM, Peter Ujfalusi wrote:
> 
> 
> On 22/01/2020 13.03, Lokesh Vutla wrote:
>>
>>
>> On 22/01/20 1:56 PM, Peter Ujfalusi wrote:
>>> NAVSS is a subsystem containing different IPs, it is not really a bus.
>>> Change the compatible from "simple-bus" to "simple-mfd" to reflect that.
>>>
>>> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@...com>
>>> ---
>>>  arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 4 ++--
>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
>>> index efb24579922c..e40f7acbec42 100644
>>> --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
>>> +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
>>> @@ -385,8 +385,8 @@ intr_main_gpio: interrupt-controller0 {
>>>  		ti,sci-rm-range-girq = <0x1>;
>>>  	};
>>>  
>>> -	cbass_main_navss: interconnect0 {
>>> -		compatible = "simple-bus";
>>> +	cbass_main_navss: navss@...00000 {
>>
>> This introduces below dtc warning when built with W=1
>>
>> arch/arm64/boot/dts/ti/k3-am65-main.dtsi:388.35-530.4: Warning
>> (unit_address_vs_reg): /interconnect@...000/navss@...00000: node has a unit
>> name, but no reg property
> 
> Interesting, the example in
> Documentation/devicetree/bindings/dma/ti/k3-udma.yaml
> 
> is basically the same and dt_binding_check is happy about it:
> DTC     Documentation/devicetree/bindings/dma/ti/k3-udma.example.dt.yaml
> CHECK   Documentation/devicetree/bindings/dma/ti/k3-udma.example.dt.yaml
> 
> but it screamed when I had the simple-bus in there (copied from the
> existing dtsi file).
> 
> The node name for simple-bus _must_ be
> '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$'
> 
> I would not use any of these to NAVSS node...
> 
>> this is representing cbass inside main_navss, just like cbass_main. You can drop
>> this patch and the similar mcu version.
> 
> According to Documentation/devicetree/bindings/mfd/mfd.txt:
> - compatible : "simple-mfd" - this signifies that the operating system
>   should consider all subnodes of the MFD device as separate devices
>   akin to how "simple-bus" indicates when to see subnodes as children
>   for a simple memory-mapped bus.
> 
> NAVSS is falling into simple-mfd as the devices under it are independent
> devices.

okay, may be rename cbass_main_navss to main_navss.

Thanks and regards,
Lokesh

> 
>>
>> Thanks and regards,
>> Lokesh
>>
>>> +		compatible = "simple-mfd";
>>>  		#address-cells = <2>;
>>>  		#size-cells = <2>;
>>>  		ranges;
>>>
> 
> - Péter
> 
> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
> Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ