[PATCH 2/2] MCI: init device_node for MCI mainarea cdev

2015-12-08 Thread Lucas Stach
This fixes a regression, where boards specifying the environment path using the form device-path = &phandle, "partname:part" would be unable to find their env. This is due to of_find_path() switching to cdev_by_device_node() internally, which expects the device_node member of the main area cdev to

[PATCH 1/2] ARM: ccxmx53: properly guard initcall for multiimage

2015-12-08 Thread Lucas Stach
Make sure to not run this board specific initcall on any other board. Signed-off-by: Lucas Stach --- arch/arm/boards/ccxmx53/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boards/ccxmx53/board.c b/arch/arm/boards/ccxmx53/board.c index 0031aed772e4..9d81cd80a373 100644 --

Messed up commit in master

2015-12-08 Thread Lucas Stach
Hi Sascha, I've just stumbled across a messed up commit that landed in barebox master. It seems you squashed other unrelated commits into commit e7a8519963fcb235a123dfe5e7dd59d6fb2eaf9e (ARM: mx6sx-sabresdb: set proper hostname). I know its against the master stability rules, but I think it would

Re: [RFC 3/9] MIPS: add virt_to_phys() and phys_to_virt()

2015-12-08 Thread Peter Mamonov
On Mon, 7 Dec 2015 11:27:44 +0100 Sascha Hauer wrote: > On Sun, Dec 06, 2015 at 05:50:51PM +0300, Antony Pavlov wrote: > > On Fri, 4 Sep 2015 08:20:48 +0200 > > Sascha Hauer wrote: > > > > > On Fri, Aug 28, 2015 at 06:46:14PM +0300, Antony Pavlov wrote: > > > > On Fri, 28 Aug 2015 08:34:32 +020

Re: [PATCH v2 9/9] fs: Add pstore filesystem

2015-12-08 Thread Markus Pargmann
Hi, On Tuesday 08 December 2015 13:35:52 Antony Pavlov wrote: > On Tue, 8 Dec 2015 10:39:32 +0100 > Markus Pargmann wrote: > > > pstore is a persistent storage filesystem used for RAMOOPS. It is used > > to store console logs, panics, ftrace and other information in case of a > > crash/panic/oo

Re: [PATCH v2 9/9] fs: Add pstore filesystem

2015-12-08 Thread Antony Pavlov
On Tue, 8 Dec 2015 10:39:32 +0100 Markus Pargmann wrote: > pstore is a persistent storage filesystem used for RAMOOPS. It is used > to store console logs, panics, ftrace and other information in case of a > crash/panic/oops/reboot. > > pstore is implemented for barebox as a read-only filesystem

[PATCH v2 9/9] fs: Add pstore filesystem

2015-12-08 Thread Markus Pargmann
pstore is a persistent storage filesystem used for RAMOOPS. It is used to store console logs, panics, ftrace and other information in case of a crash/panic/oops/reboot. pstore is implemented for barebox as a read-only filesystem at the moment. It may be extended later on. The idea is to provide a

[PATCH v2 4/9] vsprintf: Add scnprintf from kernel

2015-12-08 Thread Markus Pargmann
Signed-off-by: Markus Pargmann --- include/stdio.h | 1 + lib/vsprintf.c | 24 2 files changed, 25 insertions(+) diff --git a/include/stdio.h b/include/stdio.h index f1909117621d..d0817bd0715a 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -13,6 +13,7 @@ void s

[PATCH v2 3/9] printk: Add missing include/declaration

2015-12-08 Thread Markus Pargmann
There are functions or structs used that do need these. Signed-off-by: Markus Pargmann --- include/printk.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/printk.h b/include/printk.h index a27ad514cfe1..822f64c61f7d 100644 --- a/include/printk.h +++ b/include/printk.h @@ -1,6 +1,

[PATCH v2 1/9] arm: boards: karo-tx6x remove definition of DIV_ROUND_UP

2015-12-08 Thread Markus Pargmann
DIV_ROUND_UP is defined in include/linux/kernel.h. Use that instead. Signed-off-by: Markus Pargmann --- arch/arm/boards/karo-tx6x/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boards/karo-tx6x/board.c b/arch/arm/boards/karo-tx6x/board.c index 6d9dd9a505f0.

[PATCH v2 2/9] log2: Add missing __rounddown_pow_of_two()

2015-12-08 Thread Markus Pargmann
Signed-off-by: Markus Pargmann --- include/linux/log2.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/linux/log2.h b/include/linux/log2.h index d9913f06bd09..36519e3aa38b 100644 --- a/include/linux/log2.h +++ b/include/linux/log2.h @@ -63,6 +63,15 @@ unsigned long __roundup

[PATCH v2 5/9] lib: Import reed solomon code from kernel

2015-12-08 Thread Markus Pargmann
reed solomon code is used by RAMOOPS to check and fix data stored in volatile memory. Signed-off-by: Markus Pargmann --- Notes: Changes in v2: - Removed fine control over parts of the code. Reduced to one config symbol. include/linux/rslib.h | 103 +++ lib/Kconfig

[PATCH v2 7/9] arm: start: Add visible sdram region for barebox board data

2015-12-08 Thread Markus Pargmann
This helps to understand and find problems with the memory layout of barebox. It adds another entry for the board data that barebox allocated. Signed-off-by: Markus Pargmann --- arch/arm/cpu/start.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm/

[PATCH v2 6/9] arm: Clarify memory layout calculation

2015-12-08 Thread Markus Pargmann
The memory calculations used are all hardcoded into three different files, start-pbl.c, uncompress.c and start.c. To make this more readable and reliable, this patch gathers these information in barebox-arm.h with static inline functions for the calculation of the memory offsets. This patch also a

[PATCH v2 0/9] RAMOOPS read support for Barebox

2015-12-08 Thread Markus Pargmann
Hi, This is v2 with some smaller fixes. Changes are described at the individual patches. Best Regards, Markus Markus Pargmann (9): arm: boards: karo-tx6x remove definition of DIV_ROUND_UP log2: Add missing __rounddown_pow_of_two() printk: Add missing include/declaration vsprintf: Add s

[PATCH v2 8/9] arm: Add RAMOOPS memory area

2015-12-08 Thread Markus Pargmann
RAMOOPS is a driver that uses a reserved static memory region to store the data from the last panic or boot. This helps to debug crashes at the next boot while preserving the boot messages. To guarantee a memory area that is not altered by barebox or the kernel, this area is located at the end of

[PATCH 4/4] misc: Add PT100 temperature sensor support

2015-12-08 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/misc/Kconfig | 5 ++ drivers/misc/Makefile | 1 + drivers/misc/pt100.c | 145 ++ 3 files changed, 151 insertions(+) create mode 100644 drivers/misc/pt100.c diff --git a/drivers/misc/Kconfig b/drivers/m

[PATCH 2/4] misc: Add basic LM75 temperature driver

2015-12-08 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/misc/Kconfig | 5 + drivers/misc/Makefile | 1 + drivers/misc/lm75.c | 262 ++ 3 files changed, 268 insertions(+) create mode 100644 drivers/misc/lm75.c diff --git a/drivers/misc/Kconfig b/drivers/mis

[PATCH 3/4] misc: Add Microchip MCP342x support

2015-12-08 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/misc/Kconfig | 5 + drivers/misc/Makefile | 2 + drivers/misc/mcp342x.c | 259 + 3 files changed, 266 insertions(+) create mode 100644 drivers/misc/mcp342x.c diff --git a/drivers/misc/Kconfig b/driver

[PATCH 1/4] misc: Add iodevice support

2015-12-08 Thread Sascha Hauer
This adds a poor copy of the Linux IIO framework. Signed-off-by: Sascha Hauer --- drivers/misc/Kconfig| 3 ++ drivers/misc/Makefile | 1 + drivers/misc/iodevice.c | 109 include/iodevice.h | 33 +++ 4 files changed, 146

[RFC] iodevice support

2015-12-08 Thread Sascha Hauer
The following is something like a mixture of Linux IIO and hwmon support for the poor. I called it iodevice, but better names are appreciated. A iodevice has multiple channels, each providing a value like for example a temperature or a voltage. For each iodevice we provide device parameters to acce

Re: [RFC 3/9] MIPS: add virt_to_phys() and phys_to_virt()

2015-12-08 Thread Antony Pavlov
On Mon, 7 Dec 2015 11:27:44 +0100 Sascha Hauer wrote: > On Sun, Dec 06, 2015 at 05:50:51PM +0300, Antony Pavlov wrote: > > On Fri, 4 Sep 2015 08:20:48 +0200 > > Sascha Hauer wrote: > > > > > On Fri, Aug 28, 2015 at 06:46:14PM +0300, Antony Pavlov wrote: > > > > On Fri, 28 Aug 2015 08:34:32 +020