[PATCH v3 2/4] state: Refactor state framework

2016-07-06 Thread Markus Pargmann
ses another bucket as backend device and caches all accesses. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/Makefile|2 +- common/state.c | 1720 common/state/Makefile

[PATCH v3 3/4] docs: Add/Update state documentation

2016-07-06 Thread Markus Pargmann
Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- .../devicetree/bindings/barebox/barebox,state.rst | 7 +++- Documentation/user/state.rst | 46 ++ Documentation/user/user-manual.rst | 1 + 3 files changed, 53 insertions

[PATCH v3 1/4] libfile: Change write_full to be have const buf

2016-07-06 Thread Markus Pargmann
write() uses a const pointer so write_full should do the same. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- include/libfile.h | 2 +- lib/libfile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libfile.h b/include/libfile.h index de4f42

[PATCH v3 4/4] state: also append backend storage stridesize

2016-07-06 Thread Markus Pargmann
From: Michael Grzeschik Signed-off-by: Michael Grzeschik --- common/state/backend_storage.c | 1 + common/state/state.c | 7 +++ common/state/state.h | 2 ++ 3 files changed, 10 insertions(+) diff --git

[PATCH v3 0/4] state: Refactor backend

2016-07-06 Thread Markus Pargmann
Changes in v3: - A central cache implementation bucket data. This is implemented as another bucket (backend_bucket_cached) which can access other buckets. See the updated diagram in the second patch. - Fixup flush usage - lazy initialization of buckets Best Regards, Markus Markus Pargmann

[PATCH v2 2/6] state: Refactor state framework

2016-06-24 Thread Markus Pargmann
ion. * * * * * * .---. .-. | backend_bucket_direct | | backend_bucket_circular | '---' '-' Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/Makefile|2 +- commo

[PATCH v2 0/6] state: Refactor backend

2016-06-24 Thread Markus Pargmann
to the direct bucket. Best Regards, Markus Markus Pargmann (3): libfile: Change write_full to be have const buf state: Refactor state framework docs: Add/Update state documentation Michael Grzeschik (3): state: also append backend storage stridesize state: backend_storage_direct: also use

[PATCH v2 3/6] docs: Add/Update state documentation

2016-06-24 Thread Markus Pargmann
Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- .../devicetree/bindings/barebox/barebox,state.rst | 7 +++- Documentation/user/state.rst | 46 ++ Documentation/user/user-manual.rst | 1 + 3 files changed, 53 insertions

[PATCH v2 5/6] state: backend_storage_direct: also use cached data on write

2016-06-24 Thread Markus Pargmann
From: Michael Grzeschik <m.grzesc...@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/state/backend_bucket_direct.c | 55 1 file changed, 55 inserti

[PATCH v2 4/6] state: also append backend storage stridesize

2016-06-24 Thread Markus Pargmann
From: Michael Grzeschik <m.grzesc...@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/state/backend_storage.c | 1 + common/state/state.c | 7 +++ common/state/state.h

[PATCH v2 1/6] libfile: Change write_full to be have const buf

2016-06-24 Thread Markus Pargmann
write() uses a const pointer so write_full should do the same. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- include/libfile.h | 2 +- lib/libfile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libfile.h b/include/libfile.h index de4f42

[PATCH v2 6/6] barebox-state: handle flush errno correctly

2016-06-24 Thread Markus Pargmann
From: Michael Grzeschik <m.grzesc...@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de> Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/state/backend_bucket_circular.c | 13 ++--- common/state/backend_bucket_direct.c | 11 ++

Re: [PATCH 1/2] state: Refactor state framework

2016-06-23 Thread Markus Pargmann
Hi, On Friday 17 June 2016 11:14:34 Markus Pargmann wrote: > The state framework grew organically over the time. Unfortunately the > architecture and abstractions disappeared during this period. > > This patch refactors the framework to recreate the abstractions. The > main focus

[PATCH 2/2] docs: Add/Update state documentation

2016-06-17 Thread Markus Pargmann
Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- .../devicetree/bindings/barebox/barebox,state.rst | 4 +- Documentation/user/state.rst | 46 ++ Documentation/user/user-manual.rst | 1 + 3 files changed, 50 insertions

[PATCH 1/2] state: Refactor state framework

2016-06-17 Thread Markus Pargmann
ion. * * * * * * .---. .-. | backend_bucket_direct | | backend_bucket_circular | '---' '-' Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/Makefile|2 +- commo

[PATCH v2 4/8] ubi: Add helper to map a mtd device to a ubi number

2016-03-10 Thread Markus Pargmann
ubi_num_get_by_mtd() searches for attached ubi devices for the given mtd and returns the number of the ubi device. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/mtd/ubi/build.c | 35 ++- include/mtd/ubi-user.h | 1 + 2 files chang

[PATCH v2 3/8] ubi: Add getter ubi_volume_get_cdev()

2016-03-10 Thread Markus Pargmann
cdev is used in a future commit to find the mounted filesystems. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/mtd/ubi/kapi.c | 5 + include/linux/mtd/ubi.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c

[PATCH v2 5/8] ubi: Helper to iterate over all ubi volumes

2016-03-10 Thread Markus Pargmann
To find all the ubi volume ids on a given UBI, we need a helper. The added functions allow to use ubi_volume_for_each() to get each volume id of a UBI. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/mtd/ubi/kapi.c | 42 ++ include

[PATCH v2 8/8] ubiformat: Cleanly umount and detach the ubi before formating

2016-03-10 Thread Markus Pargmann
was detached previously, the code tries to reattach the ubi. Filesystems are not remounted. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- commands/ubiformat.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/commands/ubiformat.c b/co

[PATCH v2 6/8] ubi: Add function to detach a UBI by using mtd_info

2016-03-10 Thread Markus Pargmann
We may don't know which UBI is attached on a given MTD device. This adds a function to detach a UBI given a MTD device. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/mtd/ubi/build.c | 21 + include/mtd/ubi-user.h | 1 + 2 files changed, 22 inse

[PATCH v2 7/8] ubi: Let ubidetach umount all filesystems before detaching

2016-03-10 Thread Markus Pargmann
This patch iterates through all ubi volumes and umounts all filesystems that are mounted. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/mtd/ubi/build.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/mtd/ubi/build.c b/drivers/m

[PATCH v2 2/8] fs: umount based on device path and mount path

2016-03-10 Thread Markus Pargmann
umount on Linux can be used on a mount pathes and device pathes. This patch adds this functionality to barebox. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- commands/umount.c | 2 +- fs/fs.c | 47 --- include/fs.h |

[PATCH v2 1/8] fs: Add for_each_fs_device_safe()

2016-03-10 Thread Markus Pargmann
We need to be able to umount specific filesystems while iterating all of them. This helper gives us a safe macro to do so. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- include/fs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fs.h b/include/fs.h index 9ac455

[PATCH] fastboot: Umount filesystems of target devices before flashing

2016-03-09 Thread Markus Pargmann
Before flashing data to some device, we should check whether this device is in use. If it is mounted it is umounted and flashed afterwards. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- Hi, This patch requires the for_each_fs_device_safe() macro which was sent as a patch yes

[PATCH 2/5] ubi: Add getter ubi_volume_get_cdev()

2016-03-08 Thread Markus Pargmann
cdev is used in a future commit to find the mounted filesystems. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/mtd/ubi/kapi.c | 5 + include/linux/mtd/ubi.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c

[PATCH 5/5] ubiformat: Cleanly umount and detach the ubi before formating

2016-03-08 Thread Markus Pargmann
was detached previously, the code tries to reattach the ubi. Filesystems are not remounted. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- commands/ubiformat.c | 87 ++-- 1 file changed, 85 insertions(+), 2 deletions(-) diff --git a/co

[PATCH 4/5] ubi: Helper to iterate over all ubi volumes

2016-03-08 Thread Markus Pargmann
To find all the ubi volume ids on a given UBI, we need a helper. The added functions allow to use ubi_volume_for_each() to get each volume id of a UBI. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/mtd/ubi/kapi.c | 42 ++ include

[PATCH 3/5] ubi: Add helper to map a mtd device to a ubi number

2016-03-08 Thread Markus Pargmann
ubi_num_get_by_mtd() searches for attached ubi devices for the given mtd and returns the number of the ubi device. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/mtd/ubi/build.c | 30 +- include/mtd/ubi-user.h | 1 + 2 files changed, 22 inse

[PATCH] Documentation: Update USB fastboot section

2016-02-19 Thread Markus Pargmann
Add some documentation about fastboot 'flash' command and some useful example how to use it to boot an initrd. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- Documentation/user/usb.rst | 52 ++ 1 file changed, 52 insertions(+) diff

[PATCH] bbu: Fix imx-bbu-nand-fcb handler to use complete device path

2016-02-17 Thread Markus Pargmann
olute path back to the device within the devfs. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/imx-bbu-nand-fcb.c | 6 +++--- fs/devfs-core.c | 25 + fs/fs.c | 12 include/driver.h | 1

[PATCH v2 4/4] fastboot: Add a ARM Barebox filetype handler

2016-02-17 Thread Markus Pargmann
This will automatically call barebox_update for the transfered file if it is an ARM Barebox image and the destination file is defined by some update handler. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/filetype.c | 13 + drivers/usb/

[PATCH v2 3/4] fastboot: Fix usage of ubiformat for UBI image transfers

2016-02-17 Thread Markus Pargmann
if the destination file is a MTD device by opening it and calling an ioctl MEMGETINFO. Only for MTD devices, ubiformat is called. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/usb/gadget/f_fastboot.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff

[PATCH v2 2/4] bbu: Add function to check if an update handler exists

2016-02-17 Thread Markus Pargmann
This adds a function to check for the existence of an update handler based on the supplied bbu_data. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/bbu.c | 14 ++ include/bbu.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/common/bbu.c b/common

Re: [PATCH 4/4] fastboot: Add a ARM Barebox filetype handler

2016-02-17 Thread Markus Pargmann
On Wednesday, February 17, 2016 08:37:49 AM Sascha Hauer wrote: > On Tue, Feb 16, 2016 at 07:54:48PM +0100, Markus Pargmann wrote: > > This will automatically call barebox_update for the transfered file if > > it is an ARM Barebox image and the destination file is defined by

Re: [PATCH 3/4] fastboot: Fix usage of ubiformat for UBI image transfers

2016-02-17 Thread Markus Pargmann
Hi, On Wednesday, February 17, 2016 08:29:14 AM Sascha Hauer wrote: > On Tue, Feb 16, 2016 at 07:54:47PM +0100, Markus Pargmann wrote: > > Currently all fastboot flash commands with UBI images are handled by a > > final call to 'ubiformat'. This only makes sense for flash com

[PATCH 1/4] bbu: Add barebox_update search by device

2016-02-16 Thread Markus Pargmann
bbu_data includes a devicefile information. Add the possibility to make an update based on the given devicefile. This is in addition to the normal search for a barebox update handler by its name. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/bbu.c | 20 +

[PATCH 2/4] bbu: Add function to check if an update handler exists

2016-02-16 Thread Markus Pargmann
This adds a function to check for the existence of an update handler based on the supplied bbu_data. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/bbu.c | 14 ++ include/bbu.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/common/bbu.c b/common

[PATCH 3/4] fastboot: Fix usage of ubiformat for UBI image transfers

2016-02-16 Thread Markus Pargmann
if the destination file is a MTD device by opening it and calling an ioctl MEMGETINFO. Only for MTD devices, ubiformat is called. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/usb/gadget/f_fastboot.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff

[PATCH 4/4] fastboot: Add a ARM Barebox filetype handler

2016-02-16 Thread Markus Pargmann
This will automatically call barebox_update for the transfered file if it is an ARM Barebox image and the destination file is defined by some update handler. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/usb/gadget/f_fastboot.c | 29 +

[PATCH 1/2] mtd: nand: Add erased page bitflip check helper functions

2015-12-21 Thread Markus Pargmann
This adds the bitflip check helper functions from the kernel. They are used to check for bitflips in erased pages and correct them in the buffer so that UBI can work with it. Unfortunately most nand controllers do not have ECC for erased pages and don't do this on their own. Signed-off-by: Markus

[PATCH 2/2] mtd: gpmi: Add erased page bitflip correction

2015-12-21 Thread Markus Pargmann
is below the ecc_strength. We need to move the memcpy above the for loop to be able to access the buffer directly. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- drivers/mtd/nand/nand_mxs.c | 42 -- 1 file changed, 40 insertions(+), 2 del

[PATCH] Documentation: Document pstore/RAMOOPS

2015-12-10 Thread Markus Pargmann
Add some documentation about behaviour and setup of pstore/RAMOOPS. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- Documentation/filesystems/pstore.rst | 76 1 file changed, 76 insertions(+) create mode 100644 Documentation/filesystems/psto

[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 <m...@pengutronix.de> --- 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/kar

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

2015-12-08 Thread Markus Pargmann
Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- 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

[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 <m...@pengutronix.de> --- Notes: Changes in v2: - Removed fine control over parts of the code. Reduced to one config symbol. include/linux/rslib.h

[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 <m...@pengutronix.de> --- arch/arm/cpu/start.c | 19 ++- 1 file changed, 18 insertions(+), 1 de

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

2015-12-08 Thread Markus Pargmann
adds proper handling of different barebox/board data sizes. Currently only 1MB+Alignment of RAM is reserved for Barebox and board data. This could be too small for bigger devicetrees and barebox. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- Notes: Changes in v2:

[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 <m...@pengutronix.de> --- 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

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

2015-12-08 Thread Markus Pargmann
Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- 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/s

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

2015-12-08 Thread Markus Pargmann
a way to extract essential data from the last running kernel. Most of the code is copied from the kernel. However this is only a lightweight implementation without real write support yet. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- Notes: Changes in v2: - Moved the

[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

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

2015-12-08 Thread Markus Pargmann
of the RAM right after barebox and before the STACK. This ensures that changing barebox sizes do not interfere with RAMOOPS. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- arch/arm/cpu/start.c | 6 ++ arch/arm/include/asm/barebox-arm.h | 14 +- 2

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

2015-12-04 Thread Markus Pargmann
Hi, On Friday 04 December 2015 08:12:55 Sascha Hauer wrote: > On Wed, Dec 02, 2015 at 02:48:47PM +0100, Markus Pargmann wrote: > > reed solomon code is used by RAMOOPS to check and fix data stored in > > volatile memory. > > > > Signed-off-by: Markus Pa

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

2015-12-04 Thread Markus Pargmann
Hi, On Wednesday 02 December 2015 21:37:13 Antony Pavlov wrote: > On Wed, 2 Dec 2015 14:48:51 +0100 > Markus Pargmann <m...@pengutronix.de> wrote: > > > pstore is a persistent storage filesystem used for RAMOOPS. It is used > > to store console logs, panics, ftrace an

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

2015-12-04 Thread Markus Pargmann
Hi, On Friday 04 December 2015 08:07:40 Sascha Hauer wrote: > On Wed, Dec 02, 2015 at 02:48:50PM +0100, Markus Pargmann wrote: > > 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 th

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

2015-12-02 Thread Markus Pargmann
reed solomon code is used by RAMOOPS to check and fix data stored in volatile memory. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- include/linux/rslib.h | 109 lib/Kconfig | 15 ++ lib/Makefile| 1 + lib/reed_s

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

2015-12-02 Thread Markus Pargmann
DIV_ROUND_UP is defined in include/linux/kernel.h. Use that instead. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- 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/kar

[PATCH 0/9] RAMOOPS read support for Barebox

2015-12-02 Thread Markus Pargmann
the actual implementation of pstore and RAMOOPS as filesystem. It is based on the kernel implementation but lots of code was removed and the filesystem layer rewritten for barebox. The files are available in the automounted filesystem /pstore. Best Regards, Markus Markus Pargmann (9): arm

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

2015-12-02 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 <m...@pengutronix.de> --- arch/arm/cpu/start.c | 19 ++- 1 file changed, 18 insertions(+), 1 de

[PATCH 9/9] fs: Add pstore filesystem

2015-12-02 Thread Markus Pargmann
a way to extract essential data from the last running kernel. Most of the code is copied from the kernel. However this is only a lightweight implementation without real write support yet. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- common/startup.c | 5 + fs/K

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

2015-12-02 Thread Markus Pargmann
Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- 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/s

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

2015-12-02 Thread Markus Pargmann
of the RAM right after barebox and before the STACK. This ensures that changing barebox sizes do not interfere with RAMOOPS. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- arch/arm/cpu/start.c | 6 ++ arch/arm/include/asm/barebox-arm.h | 14 +- 2

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

2015-12-02 Thread Markus Pargmann
Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- 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

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

2015-12-02 Thread Markus Pargmann
There are functions or structs used that do need these. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- 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

[PATCH v2] defaultenv: boot/net: Boot initramfs from tftp if present

2015-11-11 Thread Markus Pargmann
Use an 'initramfs' file if it exists instead of nfsroot. This offers the possibility to quickly boot complete filesystems as initramfs without the need to flash an SD-card or similar. If the initramfs does not exist, it uses the default nfsroot mechanism. Signed-off-by: Markus Pargmann &l

[PATCH] defaultenv: boot/net: Boot initramfs from tftp if present

2015-11-02 Thread Markus Pargmann
Use an 'initrd' file if it exists instead of nfsroot. This offers the possibility to quickly boot complete filesystems as initramfs without the need to flash a SD-card or similar. If the initrd does not exist, it uses the default nfsroot mechanism. Signed-off-by: Markus Pargmann &l

Re: [PATCH] param: dev_add_param_mac() depends on CONFIG_NET

2015-10-07 Thread Markus Pargmann
On Wed, Oct 07, 2015 at 08:34:51AM +0200, Sascha Hauer wrote: > Hi Markus, > > On Fri, Oct 02, 2015 at 02:35:01PM +0200, Markus Pargmann wrote: > > This patch adds the proper inline function for CONFIG_PARAMETER && ! > > CONFIG_NET. > > > > Signed-off

[PATCH] param: dev_add_param_mac() depends on CONFIG_NET

2015-10-02 Thread Markus Pargmann
This patch adds the proper inline function for CONFIG_PARAMETER && ! CONFIG_NET. Signed-off-by: Markus Pargmann <m...@pengutronix.de> --- include/param.h | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/include/param.h b/include

[PATCH] imx6: lowlevel_init: Fix workaround for new i.MX6s chips

2015-05-08 Thread Markus Pargmann
it jumped directly to serial downloader mode. This patch executes the PFD workaround only for i.MX6Q and i.MX6D which fixes the issues I saw. Signed-off-by: Markus Pargmann m...@pengutronix.de --- arch/arm/mach-imx/imx6.c | 48 +--- 1 file changed, 25

[PATCH] net: fec: Fix RGMII-ID

2015-04-30 Thread Markus Pargmann
RGMII-ID just defines transmitter internal delays. Otherwise it is the same as RGMII. As the differences only influence the behaviour of the phy, the fec driver should handle it the same way as RGMII. Signed-off-by: Markus Pargmann m...@pengutronix.de --- drivers/net/fec_imx.c | 5 - 1 file

[PATCH v2 1/2] wdog: imx-wd: Introduce ops struct for imx21/imx1

2015-04-09 Thread Markus Pargmann
Replace the set_timeout function in the device platform data by an ops struct which stores a set_timeout and init function. Signed-off-by: Markus Pargmann m...@pengutronix.de --- Notes: Changes in v2: - Compile fix for !CONFIG_WATCHDOG_IMX. watchdog_deregister is using

[PATCH 1/2] wdog: imx-wd: Introduce ops struct for imx21/imx1

2015-04-02 Thread Markus Pargmann
Replace the set_timeout function in the device platform data by an ops struct which stores a set_timeout and init function. Signed-off-by: Markus Pargmann m...@pengutronix.de --- drivers/watchdog/imxwd.c | 54 +--- 1 file changed, 42 insertions(+), 12

[PATCH 2/2] wdog: imx-wd: Disable watchdog powerdown counter

2015-04-02 Thread Markus Pargmann
Disable the watchdog powerdown counter at start. Otherwise this may trigger a reset or poweroff over the WDOG_B line to a PMIC. This counter is set to 16 seconds after poweron. Signed-off-by: Markus Pargmann m...@pengutronix.de --- drivers/watchdog/imxwd.c | 6 ++ 1 file changed, 6

[PATCH v2 1/2] usb: chipidea: Add DT vbus-supply parsing

2014-07-29 Thread Markus Pargmann
Add some code to parse and enable vbus supply when probing. Signed-off-by: Markus Pargmann m...@pengutronix.de --- drivers/usb/imx/chipidea-imx.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/usb/imx/chipidea-imx.c b/drivers/usb/imx/chipidea

[PATCH 2/2] usb: imx-usb-misc: Use reasonable defaults to setup the ports

2014-07-28 Thread Markus Pargmann
This code is partly backported from the linux kernel which also uses some defaults to setup the USB ports. Signed-off-by: Markus Pargmann m...@pengutronix.de --- drivers/usb/imx/imx-usb-misc.c | 44 +- 1 file changed, 5 insertions(+), 39 deletions(-) diff

[PATCH] mfd: mc34704: Add DT support

2014-07-28 Thread Markus Pargmann
Add a compatible to this driver so it can be added through devicetree. Signed-off-by: Markus Pargmann m...@pengutronix.de --- drivers/mfd/mc34704.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mfd/mc34704.c b/drivers/mfd/mc34704.c index 9afab07a2df5..3dc85f5474dd 100644

[PATCH 1/2] usb: chipidea: Add DT vbus-supply parsing

2014-07-28 Thread Markus Pargmann
Add some code to parse and enable vbus supply when probing. Signed-off-by: Markus Pargmann m...@pengutronix.de --- drivers/usb/imx/chipidea-imx.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/usb/imx/chipidea-imx.c b/drivers/usb/imx/chipidea-imx.c index 9b6829b8f59f

[PATCH] include/bbu: Add missing include errno.h

2014-07-28 Thread Markus Pargmann
Signed-off-by: Markus Pargmann m...@pengutronix.de --- include/bbu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/bbu.h b/include/bbu.h index 095eebcf4afa..adb52b0dec42 100644 --- a/include/bbu.h +++ b/include/bbu.h @@ -1,6 +1,8 @@ #ifndef __INCLUDE_BBU_H #define

Re: [PATCH 1/2] usb: chipidea: Add DT vbus-supply parsing

2014-07-28 Thread Markus Pargmann
On Mon, Jul 28, 2014 at 10:45:57PM +0200, Sebastian Hesselbarth wrote: On 07/28/2014 10:23 PM, Markus Pargmann wrote: Add some code to parse and enable vbus supply when probing. Signed-off-by: Markus Pargmann m...@pengutronix.de --- drivers/usb/imx/chipidea-imx.c | 12

[PATCH] net: phy: Add micrel KSZ8031

2013-10-22 Thread Markus Pargmann
KSZ8031 is similar to KSZ8021. It can use the same functions. Signed-off-by: Markus Pargmann m...@pengutronix.de --- drivers/net/phy/micrel.c | 9 + include/linux/micrel_phy.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c

Re: [PATCH] net: phy: Add micrel KSZ8031

2013-10-22 Thread Markus Pargmann
On Tue, Oct 22, 2013 at 04:26:33PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: On 12:46 Tue 22 Oct , Markus Pargmann wrote: KSZ8031 is similar to KSZ8021. It can use the same functions. Signed-off-by: Markus Pargmann m...@pengutronix.de --- drivers/net/phy/micrel.c | 9