Re: [PATCH v2 4/4] ARM: dts: aspeed: Add lpc ctrl for Facebook

2019-01-17 Thread Vijay Khemka


On 1/16/19, 6:49 PM, "Joel Stanley"  wrote:

On Fri, 21 Dec 2018 at 05:06, Vijay Khemka  wrote:
>
> On 12/17/18, 12:04 PM, "Vijay Khemka"  wrote:
>
> Added lpc ctrl device to enable LPC clock in Facebook
> Tiogapass device tree.
>
> Signed-off-by: Vijay Khemka 
>
> Joel, Can you please take care of these patches merge.

I did not apply this one as I think the description will change once
we've merged your aspeed-lpc-ctrl patch.

Yes I will update and send new one.

Cheers,

Joel




Re: [PATCH v2 4/4] ARM: dts: aspeed: Add lpc ctrl for Facebook

2019-01-16 Thread Joel Stanley
On Fri, 21 Dec 2018 at 05:06, Vijay Khemka  wrote:
>
> On 12/17/18, 12:04 PM, "Vijay Khemka"  wrote:
>
> Added lpc ctrl device to enable LPC clock in Facebook
> Tiogapass device tree.
>
> Signed-off-by: Vijay Khemka 
>
> Joel, Can you please take care of these patches merge.

I did not apply this one as I think the description will change once
we've merged your aspeed-lpc-ctrl patch.

Cheers,

Joel


Re: [Potential Spoof] Re: [Potential Spoof] Re: [PATCH v2 4/4] ARM: dts: aspeed: Add lpc ctrl for Facebook

2019-01-14 Thread Vijay Khemka


On 1/13/19, 2:39 PM, "Andrew Jeffery"  wrote:

Hi Vijay,

Sorry for providing an opinion so late, however:

On Sat, 12 Jan 2019, at 11:03, Vijay Khemka wrote:
> Joel,
> Please merge these patches as it is required by facebook platform.
> 
> Regards
> -Vijay
> 
> On 1/7/19, 11:25 AM, "Linux-aspeed on behalf of Vijay Khemka"  aspeed-bounces+vijaykhemka=fb@lists.ozlabs.org on behalf of 
> vijaykhe...@fb.com> wrote:
> 
> Please merge these patches in upstream kernel.
> 
> Regards
> -Vijay
> 
> On 12/20/18, 10:06 AM, "Linux-aspeed on behalf of Vijay Khemka" 
>  vijaykhe...@fb.com> wrote:
> 
> Joel, Can you please take care of these patches merge.
> 
> On 12/17/18, 12:04 PM, "Vijay Khemka"  wrote:
> 
> Added lpc ctrl device to enable LPC clock in Facebook
> Tiogapass device tree.
> 
> Signed-off-by: Vijay Khemka 
> ---
>  .../boot/dts/aspeed-bmc-facebook-tiogapass.dts  | 17 ++
> +++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-
> tiogapass.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
> index 73e58a821613..ef7875b54562 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
> @@ -22,6 +22,17 @@
>   reg = <0x8000 0x2000>;
>   };
>  
> + reserved-memory {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges;
> +
> + flash_memory: region@9800 {
> + no-map;
> + reg = <0x9800 0x1000>; /* 4K */
> + };
> + };
> +
>   iio-hwmon {
>   compatible = "iio-hwmon";
>   io-channels = <&adc 0>, <&adc 1>, <&adc 2>, 
<&adc 3>,
> @@ -54,6 +65,12 @@
>   };
>  };
>  
> +&lpc_ctrl {
> + status = "okay";
> + memory-region = <&flash_memory>;
> + flash = <&spi1>;
> +};
> +
>  &uart1 {
>   // Host Console
>   status = "okay";
> -- 
> 2.17.1

I understand you just want to make your system work, but this is a
broken way to do it. And that's not your fault - we should really fix
the driver. I think the memory-region phandle should be optional
and the driver should simply limit the options available to the ioctl
to just the flash region if the memory node is not present (i.e. return
an error if the memory region is requested but not described in the
devicetree).
Let me fix driver itself first.

Andrew




Re: [Potential Spoof] Re: [Potential Spoof] Re: [PATCH v2 4/4] ARM: dts: aspeed: Add lpc ctrl for Facebook

2019-01-13 Thread Andrew Jeffery
Hi Vijay,

Sorry for providing an opinion so late, however:

On Sat, 12 Jan 2019, at 11:03, Vijay Khemka wrote:
> Joel,
> Please merge these patches as it is required by facebook platform.
> 
> Regards
> -Vijay
> 
> On 1/7/19, 11:25 AM, "Linux-aspeed on behalf of Vijay Khemka"  aspeed-bounces+vijaykhemka=fb@lists.ozlabs.org on behalf of 
> vijaykhe...@fb.com> wrote:
> 
> Please merge these patches in upstream kernel.
> 
> Regards
> -Vijay
> 
> On 12/20/18, 10:06 AM, "Linux-aspeed on behalf of Vijay Khemka" 
>  vijaykhe...@fb.com> wrote:
> 
> Joel, Can you please take care of these patches merge.
> 
> On 12/17/18, 12:04 PM, "Vijay Khemka"  wrote:
> 
> Added lpc ctrl device to enable LPC clock in Facebook
> Tiogapass device tree.
> 
> Signed-off-by: Vijay Khemka 
> ---
>  .../boot/dts/aspeed-bmc-facebook-tiogapass.dts  | 17 ++
> +++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-
> tiogapass.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
> index 73e58a821613..ef7875b54562 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
> @@ -22,6 +22,17 @@
>   reg = <0x8000 0x2000>;
>   };
>  
> + reserved-memory {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges;
> +
> + flash_memory: region@9800 {
> + no-map;
> + reg = <0x9800 0x1000>; /* 4K */
> + };
> + };
> +
>   iio-hwmon {
>   compatible = "iio-hwmon";
>   io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
> @@ -54,6 +65,12 @@
>   };
>  };
>  
> +&lpc_ctrl {
> + status = "okay";
> + memory-region = <&flash_memory>;
> + flash = <&spi1>;
> +};
> +
>  &uart1 {
>   // Host Console
>   status = "okay";
> -- 
> 2.17.1

I understand you just want to make your system work, but this is a
broken way to do it. And that's not your fault - we should really fix
the driver. I think the memory-region phandle should be optional
and the driver should simply limit the options available to the ioctl
to just the flash region if the memory node is not present (i.e. return
an error if the memory region is requested but not described in the
devicetree).

Andrew


Re: [Potential Spoof] Re: [Potential Spoof] Re: [PATCH v2 4/4] ARM: dts: aspeed: Add lpc ctrl for Facebook

2019-01-11 Thread Vijay Khemka
Joel,
Please merge these patches as it is required by facebook platform.

Regards
-Vijay

On 1/7/19, 11:25 AM, "Linux-aspeed on behalf of Vijay Khemka" 
 wrote:

Please merge these patches in upstream kernel.

Regards
-Vijay

On 12/20/18, 10:06 AM, "Linux-aspeed on behalf of Vijay Khemka" 
 wrote:

Joel, Can you please take care of these patches merge.

On 12/17/18, 12:04 PM, "Vijay Khemka"  wrote:

Added lpc ctrl device to enable LPC clock in Facebook
Tiogapass device tree.

Signed-off-by: Vijay Khemka 
---
 .../boot/dts/aspeed-bmc-facebook-tiogapass.dts  | 17 
+
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts 
b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
index 73e58a821613..ef7875b54562 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
@@ -22,6 +22,17 @@
reg = <0x8000 0x2000>;
};
 
+   reserved-memory {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   ranges;
+
+   flash_memory: region@9800 {
+   no-map;
+   reg = <0x9800 0x1000>; /* 4K */
+   };
+   };
+
iio-hwmon {
compatible = "iio-hwmon";
io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
@@ -54,6 +65,12 @@
};
 };
 
+&lpc_ctrl {
+   status = "okay";
+   memory-region = <&flash_memory>;
+   flash = <&spi1>;
+};
+
 &uart1 {
// Host Console
status = "okay";
-- 
2.17.1









Re: [Potential Spoof] Re: [PATCH v2 4/4] ARM: dts: aspeed: Add lpc ctrl for Facebook

2019-01-07 Thread Vijay Khemka
Please merge these patches in upstream kernel.

Regards
-Vijay

On 12/20/18, 10:06 AM, "Linux-aspeed on behalf of Vijay Khemka" 
 wrote:

Joel, Can you please take care of these patches merge.

On 12/17/18, 12:04 PM, "Vijay Khemka"  wrote:

Added lpc ctrl device to enable LPC clock in Facebook
Tiogapass device tree.

Signed-off-by: Vijay Khemka 
---
 .../boot/dts/aspeed-bmc-facebook-tiogapass.dts  | 17 +
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts 
b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
index 73e58a821613..ef7875b54562 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
@@ -22,6 +22,17 @@
reg = <0x8000 0x2000>;
};
 
+   reserved-memory {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   ranges;
+
+   flash_memory: region@9800 {
+   no-map;
+   reg = <0x9800 0x1000>; /* 4K */
+   };
+   };
+
iio-hwmon {
compatible = "iio-hwmon";
io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
@@ -54,6 +65,12 @@
};
 };
 
+&lpc_ctrl {
+   status = "okay";
+   memory-region = <&flash_memory>;
+   flash = <&spi1>;
+};
+
 &uart1 {
// Host Console
status = "okay";
-- 
2.17.1







Re: [PATCH v2 4/4] ARM: dts: aspeed: Add lpc ctrl for Facebook

2018-12-20 Thread Vijay Khemka
Joel, Can you please take care of these patches merge.

On 12/17/18, 12:04 PM, "Vijay Khemka"  wrote:

Added lpc ctrl device to enable LPC clock in Facebook
Tiogapass device tree.

Signed-off-by: Vijay Khemka 
---
 .../boot/dts/aspeed-bmc-facebook-tiogapass.dts  | 17 +
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts 
b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
index 73e58a821613..ef7875b54562 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
@@ -22,6 +22,17 @@
reg = <0x8000 0x2000>;
};
 
+   reserved-memory {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   ranges;
+
+   flash_memory: region@9800 {
+   no-map;
+   reg = <0x9800 0x1000>; /* 4K */
+   };
+   };
+
iio-hwmon {
compatible = "iio-hwmon";
io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
@@ -54,6 +65,12 @@
};
 };
 
+&lpc_ctrl {
+   status = "okay";
+   memory-region = <&flash_memory>;
+   flash = <&spi1>;
+};
+
 &uart1 {
// Host Console
status = "okay";
-- 
2.17.1





[PATCH v2 4/4] ARM: dts: aspeed: Add lpc ctrl for Facebook

2018-12-17 Thread Vijay Khemka
Added lpc ctrl device to enable LPC clock in Facebook
Tiogapass device tree.

Signed-off-by: Vijay Khemka 
---
 .../boot/dts/aspeed-bmc-facebook-tiogapass.dts  | 17 +
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts 
b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
index 73e58a821613..ef7875b54562 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
@@ -22,6 +22,17 @@
reg = <0x8000 0x2000>;
};
 
+   reserved-memory {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   ranges;
+
+   flash_memory: region@9800 {
+   no-map;
+   reg = <0x9800 0x1000>; /* 4K */
+   };
+   };
+
iio-hwmon {
compatible = "iio-hwmon";
io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
@@ -54,6 +65,12 @@
};
 };
 
+&lpc_ctrl {
+   status = "okay";
+   memory-region = <&flash_memory>;
+   flash = <&spi1>;
+};
+
 &uart1 {
// Host Console
status = "okay";
-- 
2.17.1