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]
Message-ID: <50cc134a-eb21-3b06-0c6e-41a4a5a5fd76@linaro.org>
Date:   Wed, 8 Mar 2023 10:59:57 +0100
From:   Konrad Dybcio <konrad.dybcio@...aro.org>
To:     Neil Armstrong <neil.armstrong@...aro.org>,
        Andy Gross <agross@...nel.org>,
        Bjorn Andersson <andersson@...nel.org>,
        Rob Herring <robh+dt@...nel.org>,
        Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
        Abel Vesa <abel.vesa@...aro.org>,
        Sai Prakash Ranjan <quic_saipraka@...cinc.com>
Cc:     Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
        linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] arm64: dts: qcom: sm8550: replace 0x0 to 0



On 8.03.2023 09:32, Neil Armstrong wrote:
> Unify the sm8550.dtsi style by replacing the 0x0 to 0 as it was
> required in the initial file submission.
> 
> Fixes: 377972ac743f ("arm64: dts: qcom: sm8550: add I2C Master Hub nodes")
> Fixes: 433477c3bf0b ("arm64: dts: qcom: sm8550: add QCrypto nodes")
> Fixes: 35cf1aaab169 ("arm64: dts: qcom: sm8550: Add UFS host controller and phy nodes")
> Fixes: d0c061e366ed ("arm64: dts: qcom: sm8550: add adsp, cdsp & mdss nodes")
> Fixes: 7d1158c984d3 ("arm64: dts: qcom: sm8550: Add PCIe PHYs and controllers nodes")
> Fixes: 7f7e5c1b037f ("arm64: dts: qcom: sm8550: Add USB PHYs and controller nodes")
> Fixes: 6de7f9c34358 ("arm64: dts: qcom: sm8550: add GPR and LPASS pin controller")
> Signed-off-by: Neil Armstrong <neil.armstrong@...aro.org>
> ---
I think the sentiment is towards 0x0, as these are register addreses/
sizes, but nobody wants to send a big giant commit changing it everywhere
as - frankly - it's just a lot of work and noise..

Konrad
>  arch/arm64/boot/dts/qcom/sm8550.dtsi | 60 ++++++++++++++++++------------------
>  1 file changed, 30 insertions(+), 30 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi
> index ff4d342c0725..fe8b92954550 100644
> --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi
> @@ -547,7 +547,7 @@ adspslpi_mem: adspslpi-region@...00000 {
>  
>  		rmtfs_mem: rmtfs-region@...80000 {
>  			compatible = "qcom,rmtfs-mem";
> -			reg = <0x0 0xd4a80000 0x0 0x280000>;
> +			reg = <0 0xd4a80000 0 0x280000>;
>  			no-map;
>  
>  			qcom,client-id = <1>;
> @@ -1078,7 +1078,7 @@ spi15: spi@...000 {
>  
>  		i2c_master_hub_0: geniqup@...000 {
>  			compatible = "qcom,geni-se-i2c-master-hub";
> -			reg = <0x0 0x009c0000 0x0 0x2000>;
> +			reg = <0 0x009c0000 0 0x2000>;
>  			clock-names = "s-ahb";
>  			clocks = <&gcc GCC_QUPV3_I2C_S_AHB_CLK>;
>  			#address-cells = <2>;
> @@ -1088,7 +1088,7 @@ i2c_master_hub_0: geniqup@...000 {
>  
>  			i2c_hub_0: i2c@...000 {
>  				compatible = "qcom,geni-i2c-master-hub";
> -				reg = <0x0 0x00980000 0x0 0x4000>;
> +				reg = <0 0x00980000 0 0x4000>;
>  				clock-names = "se", "core";
>  				clocks = <&gcc GCC_QUPV3_I2C_S0_CLK>,
>  					 <&gcc GCC_QUPV3_I2C_CORE_CLK>;
> @@ -1105,7 +1105,7 @@ i2c_hub_0: i2c@...000 {
>  
>  			i2c_hub_1: i2c@...000 {
>  				compatible = "qcom,geni-i2c-master-hub";
> -				reg = <0x0 0x00984000 0x0 0x4000>;
> +				reg = <0 0x00984000 0 0x4000>;
>  				clock-names = "se", "core";
>  				clocks = <&gcc GCC_QUPV3_I2C_S1_CLK>,
>  					 <&gcc GCC_QUPV3_I2C_CORE_CLK>;
> @@ -1122,7 +1122,7 @@ i2c_hub_1: i2c@...000 {
>  
>  			i2c_hub_2: i2c@...000 {
>  				compatible = "qcom,geni-i2c-master-hub";
> -				reg = <0x0 0x00988000 0x0 0x4000>;
> +				reg = <0 0x00988000 0 0x4000>;
>  				clock-names = "se", "core";
>  				clocks = <&gcc GCC_QUPV3_I2C_S2_CLK>,
>  					 <&gcc GCC_QUPV3_I2C_CORE_CLK>;
> @@ -1139,7 +1139,7 @@ i2c_hub_2: i2c@...000 {
>  
>  			i2c_hub_3: i2c@...000 {
>  				compatible = "qcom,geni-i2c-master-hub";
> -				reg = <0x0 0x0098c000 0x0 0x4000>;
> +				reg = <0 0x0098c000 0 0x4000>;
>  				clock-names = "se", "core";
>  				clocks = <&gcc GCC_QUPV3_I2C_S3_CLK>,
>  					 <&gcc GCC_QUPV3_I2C_CORE_CLK>;
> @@ -1156,7 +1156,7 @@ i2c_hub_3: i2c@...000 {
>  
>  			i2c_hub_4: i2c@...000 {
>  				compatible = "qcom,geni-i2c-master-hub";
> -				reg = <0x0 0x00990000 0x0 0x4000>;
> +				reg = <0 0x00990000 0 0x4000>;
>  				clock-names = "se", "core";
>  				clocks = <&gcc GCC_QUPV3_I2C_S4_CLK>,
>  					 <&gcc GCC_QUPV3_I2C_CORE_CLK>;
> @@ -1653,8 +1653,8 @@ pcie0: pci@...0000 {
>  			reg-names = "parf", "dbi", "elbi", "atu", "config";
>  			#address-cells = <3>;
>  			#size-cells = <2>;
> -			ranges = <0x01000000 0x0 0x60200000 0 0x60200000 0x0 0x100000>,
> -				 <0x02000000 0x0 0x60300000 0 0x60300000 0x0 0x3d00000>;
> +			ranges = <0x01000000 0 0x60200000 0 0x60200000 0 0x100000>,
> +				 <0x02000000 0 0x60300000 0 0x60300000 0 0x3d00000>;
>  			bus-range = <0x00 0xff>;
>  
>  			dma-coherent;
> @@ -1693,7 +1693,7 @@ pcie0: pci@...0000 {
>  			interconnects = <&pcie_noc MASTER_PCIE_0 0 &mc_virt SLAVE_EBI1 0>;
>  
>  			iommus = <&apps_smmu 0x1400 0x7f>;
> -			iommu-map = <0x0   &apps_smmu 0x1400 0x1>,
> +			iommu-map = <0     &apps_smmu 0x1400 0x1>,
>  				    <0x100 &apps_smmu 0x1401 0x1>;
>  
>  			resets = <&gcc GCC_PCIE_0_BCR>;
> @@ -1744,16 +1744,16 @@ pcie0_phy: phy@...6000 {
>  		pcie1: pci@...8000 {
>  			device_type = "pci";
>  			compatible = "qcom,pcie-sm8550";
> -			reg = <0x0 0x01c08000 0x0 0x3000>,
> -			      <0x0 0x40000000 0x0 0xf1d>,
> -			      <0x0 0x40000f20 0x0 0xa8>,
> -			      <0x0 0x40001000 0x0 0x1000>,
> -			      <0x0 0x40100000 0x0 0x100000>;
> +			reg = <0 0x01c08000 0 0x3000>,
> +			      <0 0x40000000 0 0xf1d>,
> +			      <0 0x40000f20 0 0xa8>,
> +			      <0 0x40001000 0 0x1000>,
> +			      <0 0x40100000 0 0x100000>;
>  			reg-names = "parf", "dbi", "elbi", "atu", "config";
>  			#address-cells = <3>;
>  			#size-cells = <2>;
> -			ranges = <0x01000000 0x0 0x40200000 0 0x40200000 0x0 0x100000>,
> -				 <0x02000000 0x0 0x40300000 0 0x40300000 0x0 0x1fd00000>;
> +			ranges = <0x01000000 0 0x40200000 0 0x40200000 0 0x100000>,
> +				 <0x02000000 0 0x40300000 0 0x40300000 0 0x1fd00000>;
>  			bus-range = <0x00 0xff>;
>  
>  			dma-coherent;
> @@ -1797,7 +1797,7 @@ pcie1: pci@...8000 {
>  			interconnects = <&pcie_noc MASTER_PCIE_1 0 &mc_virt SLAVE_EBI1 0>;
>  
>  			iommus = <&apps_smmu 0x1480 0x7f>;
> -			iommu-map = <0x0   &apps_smmu 0x1480 0x1>,
> +			iommu-map = <0     &apps_smmu 0x1480 0x1>,
>  				    <0x100 &apps_smmu 0x1481 0x1>;
>  
>  			resets = <&gcc GCC_PCIE_1_BCR>,
> @@ -1821,7 +1821,7 @@ pcie1: pci@...8000 {
>  
>  		pcie1_phy: phy@...e000 {
>  			compatible = "qcom,sm8550-qmp-gen4x2-pcie-phy";
> -			reg = <0x0 0x01c0e000 0x0 0x2000>;
> +			reg = <0 0x01c0e000 0 0x2000>;
>  
>  			clocks = <&gcc GCC_PCIE_1_AUX_CLK>,
>  				 <&gcc GCC_PCIE_1_CFG_AHB_CLK>,
> @@ -1851,7 +1851,7 @@ pcie1_phy: phy@...e000 {
>  
>  		cryptobam: dma-controller@...4000 {
>  			compatible = "qcom,bam-v1.7.0";
> -			reg = <0x0 0x01dc4000 0x0 0x28000>;
> +			reg = <0 0x01dc4000 0 0x28000>;
>  			interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
>  			#dma-cells = <1>;
>  			qcom,ee = <0>;
> @@ -1862,7 +1862,7 @@ cryptobam: dma-controller@...4000 {
>  
>  		crypto: crypto@...0000 {
>  			compatible = "qcom,sm8550-qce";
> -			reg = <0x0 0x01dfa000 0x0 0x6000>;
> +			reg = <0 0x01dfa000 0 0x6000>;
>  			dmas = <&cryptobam 4>, <&cryptobam 5>;
>  			dma-names = "rx", "tx";
>  			iommus = <&apps_smmu 0x480 0x0>,
> @@ -1873,7 +1873,7 @@ crypto: crypto@...0000 {
>  
>  		ufs_mem_phy: phy@...0000 {
>  			compatible = "qcom,sm8550-qmp-ufs-phy";
> -			reg = <0x0 0x01d80000 0x0 0x2000>;
> +			reg = <0 0x01d80000 0 0x2000>;
>  			clocks = <&tcsr TCSR_UFS_CLKREF_EN>,
>  				 <&gcc GCC_UFS_PHY_PHY_AUX_CLK>;
>  			clock-names = "ref", "ref_aux";
> @@ -1892,7 +1892,7 @@ ufs_mem_phy: phy@...0000 {
>  		ufs_mem_hc: ufs@...4000 {
>  			compatible = "qcom,sm8550-ufshc", "qcom,ufshc",
>  				     "jedec,ufs-2.0";
> -			reg = <0x0 0x01d84000 0x0 0x3000>;
> +			reg = <0 0x01d84000 0 0x3000>;
>  			interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
>  			phys = <&ufs_mem_phy>;
>  			phy-names = "ufsphy";
> @@ -1954,7 +1954,7 @@ tcsr: clock-controller@...0000 {
>  
>  		remoteproc_mpss: remoteproc@...0000 {
>  			compatible = "qcom,sm8550-mpss-pas";
> -			reg = <0x0 0x04080000 0x0 0x4040>;
> +			reg = <0 0x04080000 0 0x4040>;
>  
>  			interrupts-extended = <&intc GIC_SPI 264 IRQ_TYPE_EDGE_RISING>,
>  					      <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>,
> @@ -2383,7 +2383,7 @@ dispcc: clock-controller@...0000 {
>  
>  		usb_1_hsphy: phy@...3000 {
>  			compatible = "qcom,sm8550-snps-eusb2-phy";
> -			reg = <0x0 0x088e3000 0x0 0x154>;
> +			reg = <0 0x088e3000 0 0x154>;
>  			#phy-cells = <0>;
>  
>  			clocks = <&tcsr TCSR_USB2_CLKREF_EN>;
> @@ -2396,7 +2396,7 @@ usb_1_hsphy: phy@...3000 {
>  
>  		usb_dp_qmpphy: phy@...8000 {
>  			compatible = "qcom,sm8550-qmp-usb3-dp-phy";
> -			reg = <0x0 0x088e8000 0x0 0x3000>;
> +			reg = <0 0x088e8000 0 0x3000>;
>  
>  			clocks = <&gcc GCC_USB3_PRIM_PHY_AUX_CLK>,
>  				 <&rpmhcc RPMH_CXO_CLK>,
> @@ -2418,7 +2418,7 @@ usb_dp_qmpphy: phy@...8000 {
>  
>  		usb_1: usb@...8800 {
>  			compatible = "qcom,sm8550-dwc3", "qcom,dwc3";
> -			reg = <0x0 0x0a6f8800 0x0 0x400>;
> +			reg = <0 0x0a6f8800 0 0x400>;
>  			#address-cells = <2>;
>  			#size-cells = <2>;
>  			ranges;
> @@ -2458,7 +2458,7 @@ usb_1: usb@...8800 {
>  
>  			usb_1_dwc3: usb@...0000 {
>  				compatible = "snps,dwc3";
> -				reg = <0x0 0x0a600000 0x0 0xcd00>;
> +				reg = <0 0x0a600000 0 0xcd00>;
>  				interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
>  				iommus = <&apps_smmu 0x40 0x0>;
>  				snps,dis_u2_susphy_quirk;
> @@ -3444,7 +3444,7 @@ system-cache-controller@...00000 {
>  
>  		remoteproc_adsp: remoteproc@...00000 {
>  			compatible = "qcom,sm8550-adsp-pas";
> -			reg = <0x0 0x30000000 0x0 0x100>;
> +			reg = <0 0x30000000 0 0x100>;
>  
>  			interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>,
>  					      <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>,
> @@ -3576,7 +3576,7 @@ nsp_noc: interconnect@...c0000 {
>  
>  		remoteproc_cdsp: remoteproc@...00000 {
>  			compatible = "qcom,sm8550-cdsp-pas";
> -			reg = <0x0 0x32300000 0x0 0x1400000>;
> +			reg = <0 0x32300000 0 0x1400000>;
>  
>  			interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>,
>  					      <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>,
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ