[PATCH 3/3] ARM: dts: Enable EC vboot context support on Peach boards

2015-09-08 Thread Emilio López
The Peach boards use the EC to store the vboot context information, so add the corresponding properties on the EC node to indicate so. Signed-off-by: Emilio López <emilio.lo...@collabora.co.uk> --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 1 + arch/arm/boot/dts/exynos5800-peach-pi.dt

[PATCH 0/3] platform/chrome: vboot context support

2015-09-08 Thread Emilio López
. The series was tested on a peach pi and was found to work OK there. As always, all comments and further tests are welcome :) Cheers! Emilio Emilio López (3): sysfs: Fix is_visible() support for binary attributes platform/chrome: Support reading/writing the vboot context ARM: dts: Enable EC

Re: [PATCH 1/3] sysfs: Fix is_visible() support for binary attributes

2015-09-08 Thread Emilio López
Hi Greg & Guenter, On 08/09/15 16:30, Guenter Roeck wrote: On Tue, Sep 08, 2015 at 12:10:02PM -0700, Greg KH wrote: On Tue, Sep 08, 2015 at 08:30:13AM -0700, Guenter Roeck wrote: Emilio, On Tue, Sep 08, 2015 at 09:07:44AM -0300, Emilio López wrote: According to the sysfs header

Re: [PATCH 1/3] sysfs: Fix is_visible() support for binary attributes

2015-09-09 Thread Emilio López
On 09/09/15 01:12, Guenter Roeck wrote: On 09/08/2015 08:58 PM, Greg KH wrote: On Tue, Sep 08, 2015 at 06:10:16PM -0700, Guenter Roeck wrote: Hi Emilio, On 09/08/2015 05:51 PM, Emilio López wrote: Hi Greg & Guenter, [ ... ] Unless I am missing something, this is not explained anyw

[PATCH v2 2/3] platform/chrome: Support reading/writing the vboot context

2015-09-14 Thread Emilio López
Some EC implementations include a small nvram space used to store verified boot context data. This patch offers a way to expose this data to userspace. Signed-off-by: Emilio López <emilio.lo...@collabora.co.uk> --- Changes from v1: - Use is_bin_visible instead of is_visible Documen

[PATCH v2 0/3] platform/chrome: vboot context support

2015-09-14 Thread Emilio López
. The series was tested on a peach pi and was found to work OK there. As always, all comments and further tests are welcome :) Cheers! Emilio Emilio López (3): sysfs: Support is_visible() on binary attributes platform/chrome: Support reading/writing the vboot context ARM: dts: Enable EC

[PATCH v2 1/3] sysfs: Support is_visible() on binary attributes

2015-09-14 Thread Emilio López
) function to implement the same functionality for binary attributes, and updates documentation accordingly. Signed-off-by: Emilio López <emilio.lo...@collabora.co.uk> --- Changes from v1: - Don't overload is_visible, introduce is_bin_visible instead as discussed on the list. fs/sysfs/g

Re: [PATCH v2 2/3] platform/chrome: Support reading/writing the vboot context

2015-09-15 Thread Emilio López
Hi Javier, Thanks for the review. You'll find my answers inline On 15/09/15 10:47, Javier Martinez Canillas wrote: Hello Emilio, Patch looks mostly good to me, I just have a few comments. On Mon, Sep 14, 2015 at 2:34 PM, Emilio López <emilio.lo...@collabora.co.uk> wrote: S

Re: [PATCH v2 2/3] platform/chrome: Support reading/writing the vboot context

2015-09-15 Thread Emilio López
Hi Javier, On 15/09/15 16:43, Javier Martinez Canillas wrote: Hello Emilio, On Tue, Sep 15, 2015 at 9:16 PM, Emilio López <emilio.lo...@collabora.co.uk> wrote: [snip] obj-$(CONFIG_CHROMEOS_LAPTOP) += chromeos_laptop.o obj-$(CONFIG_CHROMEOS_PSTORE) += chromeos_pstore.o -cros_e

Re: [PATCH v3 2/4] Documentation: bindings: mfd: cros ec: document vbc EC property

2015-09-23 Thread Emilio López
Hi Lee, On 22/09/15 21:34, Lee Jones wrote: On Mon, 21 Sep 2015, Emilio López wrote: Some EC implementations include a small nvram space used to store verified boot context data. This boolean property lets us indicate whether this space is available or not on a specific EC implementation

[PATCH v3 3/4] platform/chrome: Support reading/writing the vboot context

2015-09-21 Thread Emilio López
Some EC implementations include a small nvram space used to store verified boot context data. This patch offers a way to expose this data to userspace. Reviewed-by: Javier Martinez Canillas <jav...@osg.samsung.com> Signed-off-by: Emilio López <emilio.lo...@collabora.co.uk> --- Cha

[PATCH v3 2/4] Documentation: bindings: mfd: cros ec: document vbc EC property

2015-09-21 Thread Emilio López
Some EC implementations include a small nvram space used to store verified boot context data. This boolean property lets us indicate whether this space is available or not on a specific EC implementation. Signed-off-by: Emilio López <emilio.lo...@collabora.co.uk> --- Patch is new in v3,

[PATCH v3 4/4] ARM: dts: Enable EC vboot context support on Peach boards

2015-09-21 Thread Emilio López
The Peach boards use the EC to store the vboot context information, so add the corresponding properties on the EC node to indicate so. Reviewed-by: Krzysztof Kozlowski <k.kozlow...@samsung.com> Acked-by: Javier Martinez Canillas <jav...@osg.samsung.com> Signed-off-by: Emilio Lópe

[PATCH v3 0/4] platform/chrome: vboot context support

2015-09-21 Thread Emilio López
the context data. The fourth patch adds the DT properties on peach boards which, judging by the vendor tree, use the EC to store the verified boot context. The series was tested on a peach pi and was found to work OK there. As always, all comments and further tests are welcome :) Cheers! Emilio Emilio

Re: [PATCH 1/4] sysfs: Support is_visible() on binary attributes

2015-09-21 Thread Emilio López
This is v3, even if the subject doesn't say so. This is what happens when you forget to use --reroll-count and try to fix it manually :) Emilio On 21/09/15 10:38, Emilio López wrote: According to the sysfs header file: "The returned value will replace static permissions de