[PATCH 4/5] MIPS: barebox.lds.S: put .text_entry contents after _stext and _text

2017-05-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/lib/barebox.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S index cc214920e3..899f62b968 100644 --- a/arch/mips/lib/barebox.lds.S +++

[PATCH 3/5] MIPS: barebox.lds.S: remove unused got

2017-05-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/lib/barebox.lds.S | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S index ffe846728f..cc214920e3 100644 --- a/arch/mips/lib/barebox.lds.S +++ b/arch/mi

[PATCH 0/5] MIPS: start*.S and barebox.lds.S fixups

2017-05-05 Thread Antony Pavlov
Antony Pavlov (5): MIPS: start*.S: drop redundant .text MIPS: barebox.lds.S: drop unneeded '_start = .' MIPS: barebox.lds.S: remove unused got MIPS: barebox.lds.S: put .text_entry contents after _stext and _text MIPS: start.S: put entry code into the ".text_entry" section

[PATCH 2/5] MIPS: barebox.lds.S: drop unneeded '_start = .'

2017-05-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/lib/barebox.lds.S | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S index 8057634ddb..ffe846728f 100644 --- a/arch/mips/lib/barebox.lds.S +++ b/arch/mi

[PATCH 5/5] MIPS: start.S: put entry code into the ".text_entry" section

2017-05-05 Thread Antony Pavlov
The ".text_bare_init" section is not intended to be used for storing entry code. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/boot/start.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/boot/start.S b/arch/mips/boot/start.S

Re: [PATCH 07/15] input: Add input core

2017-05-05 Thread Antony Pavlov
console_register(>console); > +} > +console_initcall(input_init); > diff --git a/include/input/input.h b/include/input/input.h > new file mode 100644 > index 000..dbf3e7f > --- /dev/null > +++ b/include/input/input.h > @@ -0,0 +1,34 @@ > +#ifndef __INPUT_H > +#de

[PATCH] state: backend_bucket_circular: drop unused free_pattern constant

2017-05-03 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- common/state/backend_bucket_circular.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/state/backend_bucket_circular.c b/common/state/backend_bucket_circular.c index 832f44e599..7c81cdfaff 100644 --- a/common

[PATCH] net: rtl8139: drop unused rtl8139_intr_mask constant

2017-05-03 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers/net/rtl8139.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index a9eb865358..cfa34a2f2a 100644 --- a/drivers/net/rtl8139.c +++ b/drivers/net/rtl8139.c @@ -492,10

Re: [PATCH] mtd: m25p80: make it possible to use 4K erase block

2017-04-28 Thread Antony Pavlov
On Fri, 28 Apr 2017 10:18:48 +0200 Sascha Hauer <s.ha...@pengutronix.de> wrote: > On Wed, Apr 26, 2017 at 05:17:34PM +0300, Antony Pavlov wrote: > > We already have the MTD_SPI_NOR_USE_4K_SECTORS option handling in C code > > for 4K erase block support. Alas this 4K era

[PATCH] mtd: m25p80: make it possible to use 4K erase block

2017-04-26 Thread Antony Pavlov
option declaration from linux v4.11-rc8. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers/mtd/spi-nor/Kconfig | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig index a84591fdd1..8ede3c90be

[PATCH] commands: add spd_decode to the 'hardware manipulation' group

2017-04-24 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- commands/spd_decode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/spd_decode.c b/commands/spd_decode.c index 2bedcf05c5..08b9589622 100644 --- a/commands/spd_decode.c +++ b/commands/spd_decode.c @@ -59,5

[PATCH] eeprom: at24: add the "read-only" dt parameter support

2017-04-24 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers/eeprom/at24.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/eeprom/at24.c b/drivers/eeprom/at24.c index 1227286fbe..050a35aed8 100644 --- a/drivers/eeprom/at24.c +++ b/drivers/eeprom/at24.c @@ -454,6 +

[PATCH] readline_simple: drop unusable u-boot legacy stuff

2017-04-24 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- lib/readline_simple.c | 13 - 1 file changed, 13 deletions(-) diff --git a/lib/readline_simple.c b/lib/readline_simple.c index c2960665fb..c4d3d240e5 100644 --- a/lib/readline_simple.c +++ b/lib/readline_simple.c @@

[PATCH 1/2] globalvar: make nv_device static

2017-04-24 Thread Antony Pavlov
nv_device isn't used outside of common/globalvar.c so make it static. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- common/globalvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/globalvar.c b/common/globalvar.c index 32ca6a24db..ebc5e830d2

[PATCH 2/2] globalvar: don't use nv_device if CONFIG_NVVAR is disabled

2017-04-24 Thread Antony Pavlov
sed -i "s/CONFIG_ENV_HANDLING=y/# CONFIG_ENV_HANDLING is not set/" .config barebox$ make oldconfig barebox$ ./barebox Segmentation fault Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- common/globalvar.c | 12 +++- 1 file changed, 11 insertions(+), 1 deleti

[PATCH 0/2] globalvar: nv_device fixes

2017-04-24 Thread Antony Pavlov
Antony Pavlov (2): globalvar: make nv_device static globalvar: don't use nv_device if CONFIG_NVVAR is disabled common/globalvar.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) -- 2.11.0 ___ barebox mailing list barebox

Re: [PATCH 2/2] of: base: of_new_property(): use xstrdup() instead of strdup()

2017-04-19 Thread Antony Pavlov
On Mon, 17 Apr 2017 13:42:10 +0300 Antony Pavlov <antonynpav...@gmail.com> wrote: > At the moment of_new_property() uses xfunctions for memory > allocation so we can use xstrdup() instead of strdup() > for code simplification. > > A side effect of this commmit is that

[PATCH 2/2] of: base: of_new_property(): use xstrdup() instead of strdup()

2017-04-17 Thread Antony Pavlov
At the moment of_new_property() uses xfunctions for memory allocation so we can use xstrdup() instead of strdup() for code simplification. A side effect of this commmit is that the of_new_property() function can't return NULL anymore if CONFIG_OFTREE is set. Signed-off-by: Antony Pavlov

[PATCH 1/2] of: base: exclude memcpy-like code from of_property_write_u8_array()

2017-04-17 Thread Antony Pavlov
The of_new_property() function already has functionality to copy data into of_property so we can make of_property_write_u8_array() simpler. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers/of/base.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff

[PATCH 0/2] of: base: some simplifications

2017-04-17 Thread Antony Pavlov
Antony Pavlov (2): of: base: exclude memcpy-like code from of_property_write_u8_array() of: base: of_new_property(): use xstrdup() instead of strdup() drivers/of/base.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) -- 2.11.0

[PATCH] drivers: video: drop unused of_display_timings_exist()

2017-04-11 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers/video/of_display_timing.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c index 6a5bf62a3..20f9354a1 100644 --- a/drivers

[PATCH] gui: image_renderer: fix "no previous prototype for 'squashfs_set_rootarg'" warning

2017-04-07 Thread Antony Pavlov
The patch fixes this compiler's warning: fs/squashfs/squashfs.c:115:6: warning: no previous prototype for 'squashfs_set_rootarg' [-Wmissing-prototypes] void squashfs_set_rootarg(struct squashfs_priv *priv, struct fs_device_d *fsdev) ^ Signed-off-by: Antony Pavlov <antonyn

[PATCH] commands: digest: show area info only if necessary

2017-04-05 Thread Antony Pavlov
area info in the barebox digets commands output for every file makes it more similar to traditional *nix digest commands output. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- commands/digest.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/c

[PATCH] sandbox_defconfig: enable squashfs support

2017-04-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/sandbox/configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sandbox/configs/sandbox_defconfig b/arch/sandbox/configs/sandbox_defconfig index c20dd15a0..dbaff12bf 100644 --- a/arch/sandbox/c

[PATCH] video: edid.c: fix "no previous prototype" warning

2017-03-23 Thread Antony Pavlov
The patch fixes this compiler's warning: drivers/video/edid.c:390:5: warning: no previous prototype for 'fb_get_mode' [-Wmissing-prototypes] int fb_get_mode(int flags, u32 val, struct fb_videomode *var) ^ Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers

[PATCH] net: phy: mdio-gpio.c: fix "no previous prototype" warning

2017-03-23 Thread Antony Pavlov
The patch fixes this compiler's warning: drivers/net/phy/mdio-gpio.c:48:24: warning: no previous prototype for 'mdio_gpio_of_get_info' [-Wmissing-prototypes] struct mdio_gpio_info *mdio_gpio_of_get_info(struct device_d *dev) ^ Signed-off-by: Antony Pavlov

[PATCH 3/3] tags: Process Kconfig files in a single pass

2017-03-21 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- scripts/tags.sh | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index 22a5cc4bf..8ae44642a 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -154,10 +

[PATCH 2/3] tags: Do not try to index defconfigs

2017-03-21 Thread Antony Pavlov
ns, so there is no need to | index them. Plus, the script was only looking for files named | 'defconfig', which only works on a few architectures nowadays. | | Signed-off-by: Michal Marek <mma...@suse.com> Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- scripts/tags.sh |

[PATCH 0/3] scripts/tags.sh: adopt some linux kernel commits

2017-03-21 Thread Antony Pavlov
Antony Pavlov (3): scripts/tags.sh: drop __TestClearPage*() helpers tags: Do not try to index defconfigs tags: Process Kconfig files in a single pass scripts/tags.sh | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) -- 2.11.0

[PATCH 1/3] scripts/tags.sh: drop __TestClearPage*() helpers

2017-03-21 Thread Antony Pavlov
ed-off-by: Kirill A. Shutemov <kirill.shute...@linux.intel.com> | Signed-off-by: Andrew Morton <a...@linux-foundation.org> | Signed-off-by: Linus Torvalds <torva...@linux-foundation.org> Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- scripts/tag

[PATCH 7/7] ext4: Use correct descriptor size when reading the block group descriptor

2017-03-20 Thread Antony Pavlov
orrect descriptor size must be used when calculating offsets, and | also to read the correct amount of data. | | Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- fs/ext4/ext4_common.c | 8 1 file changed,

[PATCH 2/7] ext4: use kernel names for byte swaps

2017-03-20 Thread Antony Pavlov
to_cpu. | | Signed-off-by: Michael Walle <mich...@walle.cc> Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- fs/ext4/ext4_common.c | 60 +-- fs/ext4/ext4fs.c | 2 +- fs/ext4/ext_barebox.c | 10 - fs/ext4/ext_common

[PATCH 5/7] ext4: Update ext2/3/4 superblock, group descriptor and inode structures

2017-03-20 Thread Antony Pavlov
tantly, the superblock provides the used group descriptor size, | which is required for the EXT4_FEATURE_INCOMPAT_64BIT. | | Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- fs/ext4

[PATCH 0/7] fix ext4 support for volumes greater than 4 GiB

2017-03-20 Thread Antony Pavlov
:/ ls /mnt/ -l drwxrwxrwx 0 . drwxrwxrwx 0 .. drwx-- 16384 lost+found drwxr-xr-x 4096 testdir Antony Pavlov (7): ext4: change structure fields to __le/__be types ext4: use kernel names for byte swaps ext4: drop unused

[PATCH 6/7] ext4: determine group descriptor size for 64bit feature

2017-03-20 Thread Antony Pavlov
d | | Reported-by: Kever Yang <kever.y...@rock-chips.com> | Reported-by: frostyby...@protonmail.com | Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> | Tested-by: Kever Yang <kever.y...@rock-chips.com> Signed-off-by: Antony Pavlov <antonynpav...@gma

[PATCH 1/7] ext4: change structure fields to __le/__be types

2017-03-20 Thread Antony Pavlov
endian types and all the | JBD fields to big endian types. Now we can use sparse (make C=1) to check | for statements where we need byteswaps. | | Signed-off-by: Michael Walle <mich...@walle.cc> Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- fs/ext4/

[PATCH 3/7] ext4: drop unused and misdefined INODE_SIZE_FILESYSTEM macro

2017-03-20 Thread Antony Pavlov
Nota bene sblock.inode_size actually has __le16 type. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- fs/ext4/ext_common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/ext4/ext_common.h b/fs/ext4/ext_common.h index a02f0b333..63cd4d26c 100644 --- a/fs/ext4/ext_co

[PATCH v2] ata: ide-sff: add LBA48 support

2017-03-20 Thread Antony Pavlov
See http://wiki.osdev.org/ATA_PIO_Mode#48_bit_PIO for details. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- Changes since v1: * fix typo in the commit message; * trivial change: put "port->lba48 = ata_id_has_lba48(port->id);" just after debug stuff

[PATCH] ata: ide-sff: add LBA48 support

2017-03-20 Thread Antony Pavlov
See http://wiki.osdev.org/ATA_PIO_Mode#48_bit_PIO for datails. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers/ata/disk_ata_drive.c | 1 + drivers/ata/ide-sff.c| 54 +++- include/ata_drive.h | 3 +++ 3 files c

[PATCH 1/3] gui: bmp.c: fix "no previous prototype" warning

2017-03-20 Thread Antony Pavlov
] void bmp_close(struct image *img) ^ Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- lib/gui/bmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gui/bmp.c b/lib/gui/bmp.c index 143aa2805..8bffc70a4 100644 --- a/lib/gui/bmp.c +++ b/lib/gui

[PATCH 3/3] gui: image_renderer: fix "no previous prototype for 'image_renderer_unregister'" warning

2017-03-20 Thread Antony Pavlov
The patch fixes this compiler's warning: lib/gui/image_renderer.c:92:6: warning: no previous prototype for 'image_renderer_unregister' [-Wmissing-prototypes] void image_renderer_unregister(struct image_renderer *ir) ^ Signed-off-by: Antony Pavlov <antonynpav...@gmail.

[PATCH 0/3] fix "no previous prototype" warnings

2017-03-20 Thread Antony Pavlov
Antony Pavlov (3): gui: bmp.c: fix "no previous prototype" warning clk: clk-gate-shared: fix "no previous prototype" warning gui: image_renderer: fix "no previous prototype for 'image_renderer_unregister'" warning drivers/clk/clk-gate-shared.c | 6 +++---

[PATCH 2/3] clk: clk-gate-shared: fix "no previous prototype" warning

2017-03-20 Thread Antony Pavlov
/clk-gate-shared.c:89:6: warning: no previous prototype for 'clk_gate_shared_free' [-Wmissing-prototypes] void clk_gate_shared_free(struct clk *clk) ^ Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers/clk/clk-gate-shared.c | 6 +++--- 1 file changed, 3 insertions

Re: [RFC 0/2] sandbox: add gpio support with libftdi1

2017-02-16 Thread Antony Pavlov
On Thu, 16 Feb 2017 08:34:30 +0100 Sascha Hauer <s.ha...@pengutronix.de> wrote: > Hi Antony, > > On Wed, Feb 15, 2017 at 10:12:25AM +0300, Antony Pavlov wrote: > > This patch series makes it possible to use FT2232H ACBUS[7:0] > > pins as gpio pins from sandbox bare

[RFC 2/2] sandbox: add gpio support with libftdi1

2017-02-14 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/sandbox/Kconfig | 1 + arch/sandbox/Makefile | 6 +- arch/sandbox/board/board.c | 7 ++ arch/sandbox/mach-sandbox/include/mach/linux.h | 11 ++

[RFC 1/2] sandbox: avoid symbol conflict for {open,read,close}dir

2017-02-14 Thread Antony Pavlov
This fixes libusb's /dev/bus/usb directory scan. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/sandbox/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index 8155a790e..9d545c3b7 100644 ---

[RFC 0/2] sandbox: add gpio support with libftdi1

2017-02-14 Thread Antony Pavlov
with ACBUS[0] -> ACBUS[1] loopback. The main goal of adding gpio functionality to sandbox barebox is using it for connecting real i2c and spi devices to sandbox barebox (not tested yet). Antony Pavlov (2): sandbox: avoid symbol conflict for {open,read,close}dir sandbox: add gpio supp

[PATCH] MIPS: drop redundant debug_ll_outhexw macro defines

2017-01-09 Thread Antony Pavlov
. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/include/asm/debug_ll_ns16550.h | 32 arch/mips/include/asm/pbl_nmon.h | 31 +++ arch/mips/mach-ath79/include/mach/debug_ll.h | 32 -

Re: [RFC v3 2/2] Add initial RISC-V architecture support

2016-12-13 Thread Antony Pavlov
S += -fno-strict-aliasing cflags-y += -fno-pic -pipe cflags-y += -Wall -Wmissing-prototypes -Wstrict-prototypes \ - -Wno-uninitialized -Wno-format -Wno-main + -Wno-uninitialized -Wno-format -Wno-main -mcmodel=medany LDFLAGS += $(ldflags-y) L

[RFC v3 2/2] Add initial RISC-V architecture support

2016-12-11 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> -- TODOs: * split patch; * use sifive timer IP-block. --- Documentation/boards/riscv.rst | 93 ++ arch/riscv/Kconfig | 76 + arch/riscv/Ma

[RFC v3 0/2] add initial RISC-V architecture support

2016-12-11 Thread Antony Pavlov
; * fix guard macro names. TODOs: * add nmon for RISC-V; * run barebox on a real FPGA board. Antony Pavlov (2): serial: add driver for SiFive UART Add initial RISC-V architecture support Documentation/boards/riscv.rst | 93 + arch/riscv/Kconfig

[RFC v3 1/2] serial: add driver for SiFive UART

2016-12-11 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> -- TODO: * add speed setup support; * add Tx FIFO check. --- drivers/serial/Kconfig | 3 ++ drivers/serial/Makefile| 1 + drivers/serial/serial_sifive.c | 109 + 3 files c

Re: [RFC v2 6/8] bootm: add kexec ELF support

2016-12-07 Thread Antony Pavlov
On Wed, 7 Dec 2016 20:59:04 +0100 Sascha Hauer <s.ha...@pengutronix.de> wrote: > On Mon, Dec 05, 2016 at 12:40:31PM +0300, Antony Pavlov wrote: > > Also introduce reboot() for starting already loaded > > via kexec ELF segments. > > > > Signed-off-by: Anton

Re: [RFC v2 4/8] import initial kexec stuff

2016-12-07 Thread Antony Pavlov
On Wed, 7 Dec 2016 20:47:55 +0100 Sascha Hauer <s.ha...@pengutronix.de> wrote: > On Mon, Dec 05, 2016 at 12:40:29PM +0300, Antony Pavlov wrote: > > Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> > > Signed-off-by: Peter Mamonov <pmamo...@gmail.com> >

[RFC v2 6/8] bootm: add kexec ELF support

2016-12-05 Thread Antony Pavlov
Also introduce reboot() for starting already loaded via kexec ELF segments. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- include/linux/reboot.h | 14 ++ lib/kexec/Makefile | 1 + lib/kexec/kexec-bootm-elf.c | 37 ++

[RFC v2 7/8] MIPS: add kexec ELF loading support

2016-12-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- arch/mips/include/asm/elf.h | 8 +- arch/mips/lib/Makefile | 3 + arch/mips/lib/kexec-mips.c | 171 a

[RFC v2 3/8] resource: add create_resource() helper function

2016-12-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- common/resource.c | 15 +++ include/linux/ioport.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/common/resource.c b/common/resource.c index e4bbe15..fa9ffd0 100644 --- a/common/resource.c +++ b/

[RFC v2 2/8] MIPS: c-r4k: add support for secondary cache

2016-12-05 Thread Antony Pavlov
From: Peter Mamonov Signed-off-by: Peter Mamonov --- arch/mips/include/asm/cacheops.h | 10 ++ arch/mips/lib/c-r4k.c| 19 +-- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git

[RFC v2 4/8] import initial kexec stuff

2016-12-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- commands/Kconfig | 7 + common/Kconfig | 3 + lib/Makefile | 1 + lib/kexec/Makefile | 3 + lib/kexec/kexec-elf-exec.c | 8

[RFC v2 5/8] filetype: add ELF type

2016-12-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- common/filetype.c | 5 + include/filetype.h | 1 + 2 files changed, 6 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index 8d72933..f204638 100644 --- a/common/filetype.c +++ b/common/filetype.c @@ -25,6

[RFC v2 8/8] MIPS: malta: enable kexec

2016-12-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/Kconfig | 1 + arch/mips/mach-malta/Makefile | 1 + arch/mips/mach-malta/reboot.c | 104 ++ 3 files changed, 106 insertions(+) diff --git a/arch/mips/Kconfig b/arc

[RFC v2 0/8] MIPS: use kexec to load ELF linux images

2016-12-05 Thread Antony Pavlov
in the appropriate memory places and tunes relocator; next reboot() is called and machine-specific code works on cmdline passing. The 'import initial kexec stuff' contains some codes stealed from kexec-tools as-is. These codes have some checkpatch.pl issues. Antony Pavlov (7): MIPS: add virt_to_phys

[RFC v2 1/8] MIPS: add virt_to_phys() and phys_to_virt()

2016-12-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- arch/mips/include/asm/io.h | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h i

[PATCH] MIPS: qemu-malta_defconfig: set MAX_IMAGE_SIZE = 4 MiB

2016-12-05 Thread Antony Pavlov
If barebox binary image size exceeds the 4 MiB then qemu exits with the 'Could not load MIPS bios' message. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/configs/qemu-malta_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/configs/qemu-malta_def

Re: [RFCv2 1/2] serial: add driver for SiFive UART

2016-11-18 Thread Antony Pavlov
On Thu, 17 Nov 2016 08:07:06 +0100 Sascha Hauer <s.ha...@pengutronix.de> wrote: > On Mon, Nov 14, 2016 at 12:50:14AM +0300, Antony Pavlov wrote: > > Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> > > --- > > > > TODO: > > > > * add sp

[RFCv2 2/2] add initial RISC-V architecture support

2016-11-13 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- TODOs: * split this patch. * use sifive timer IP-block. Documentation/boards/riscv.rst | 63 +++ arch/riscv/Kconfig | 42 + arch/riscv/Ma

[RFCv2 1/2] serial: add driver for SiFive UART

2016-11-13 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- TODO: * add speed setup support. drivers/serial/Kconfig | 3 ++ drivers/serial/Makefile| 1 + drivers/serial/serial_sifive.c | 109 + 3 files changed, 113 inse

[RFCv2 0/2] add initial RISC-V architecture support

2016-11-13 Thread Antony Pavlov
qemu-sifive board support; * add Documentation/boards/riscv.rst; * fix guard macro names. TODOs: * split patch; * use sifive timer IP-block. Antony Pavlov (2): serial: add driver for SiFive UART Add initial RISC-V architecture support Documentation/boards/riscv.rst

[PATCH] command.h: drop unused Struct_Section attribute

2016-11-07 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- include/command.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/command.h b/include/command.h index 2e72780..43ee454 100644 --- a/include/command.h +++ b/include/command.h @@ -89,8 +89,6 @@ int run_command(const cha

[PATCH] MIPS: drop redundant start_barebox() declaration

2016-11-07 Thread Antony Pavlov
The start_barebox() function is defined in the header file. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/boot/main_entry.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/boot/main_entry.c b/arch/mips/boot/main_entry.c index 015150bf..43a78c2

[PATCH] sandbox: eliminate sdl_init()

2016-10-19 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/sandbox/mach-sandbox/include/mach/linux.h | 1 - arch/sandbox/os/sdl.c | 7 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/sandbox/mach-sandbox/include/mach/linux.h b/arch/s

[PATCH] of: fix typos

2016-10-17 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers/of/base.c | 2 +- drivers/of/fdt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 1e6c33d..767d4e1 100644 --- a/drivers/of/base.c +++ b/drivers/of/

[RFC] add riscv support

2016-10-13 Thread Antony Pavlov
age into ${TOOLCHAIN_INSTALL_PATH}/riscv64-unknown-elf/bin directory. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/riscv/Kconfig | 17 + arch/riscv/Makefile | 84 +++ arch/riscv/boards/pk/.gitignore | 1 + a

[PATCH] sandbox: drop unused header files

2016-10-11 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/sandbox/include/asm/processor.h | 25 - arch/sandbox/include/asm/ptrace.h| 1 - 2 files changed, 26 deletions(-) delete mode 100644 arch/sandbox/include/asm/processor.h delete mode 100644 arch/s

[PATCH] sandbox: Makefile: drop unused SUBARCH stuff

2016-10-03 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/sandbox/Makefile | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index a539a90..8155a79 100644 --- a/arch/sandbox/Makefile +++ b/arch/sandbox/Makefile @@ -31,11 +31,6 @

Re: [PATCH 1/2] mfd: syscon: fix exported symbol name

2016-09-27 Thread Antony Pavlov
mem *syscon_base_lookup_by_pdevname(const char *s) > { > -- > 2.9.3 > > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- --  Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH] Documentation: imd: fix sphinx warning

2016-09-20 Thread Antony Pavlov
The patch fixes this sphinx warnings: barebox/Documentation/user/imd.rst:27: WARNING: Could not lex literal_block as "c". Highlighting skipped. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> Cc: Sascha Hauer <s.ha...@pengutronix.de> --- Documentation/user/i

Re: [PATCH v2 1/3] state: copy backend of_path string

2016-09-16 Thread Antony Pavlov
device tree or through > fixup handlers. As a result, the string may be deleted. > Use local copies of the full path instead. > > Signed-off-by: Michael Olbrich <m.olbr...@pengutronix.de> --  Best regards,   Antony Pavlov __

[PATCH] net: phy: of_phy_register_fixed_link(): drop redundant initialization

2016-08-18 Thread Antony Pavlov
The phy_device_create() function makes all necessary phydev initialization so we can drop phydev->pause and phydev->link initialization in the of_phy_register_fixed_link() function. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers/net/phy/phy.c | 2 -- 1 fil

Re: [PATCH] MIPS: dts: reuse TP-LINK MR3020 dts file from linux

2016-08-18 Thread Antony Pavlov
On Thu, 18 Aug 2016 08:32:27 +0200 Sascha Hauer <s.ha...@pengutronix.de> wrote: > On Wed, Aug 17, 2016 at 12:36:09AM +0300, Antony Pavlov wrote: > > At the moment barebox tplink-mr3020.dts file has almost > > the same content as linux ar9331_tl_mr3020.dts file > > so

[PATCH] MIPS: dts: reuse TP-LINK MR3020 dts file from linux

2016-08-16 Thread Antony Pavlov
At the moment barebox tplink-mr3020.dts file has almost the same content as linux ar9331_tl_mr3020.dts file so we can reuse linux dts-file and drop duplicated lines from barebox dts-file. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/dts/tplink-mr3020.dt

[PATCH 0/3] Documentation: fix sphinx warnings

2016-08-12 Thread Antony Pavlov
Antony Pavlov (3): Documentation: tplink-mr3020: fix 'Could not lex literal_block as "c"' warning Documentation: barebox: fix 'Could not lex literal_block as "c"' warning Documentation: variables: fix error in "code-block" directive Documentation/boar

[PATCH 1/3] Documentation: tplink-mr3020: fix 'Could not lex literal_block as "c"' warning

2016-08-12 Thread Antony Pavlov
Highlighting skipped. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- Documentation/boards/mips/tplink-mr3020.rst | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/boards/mips/tplink-mr3020.rst b/Documentation/boards/mips/tplink-mr3020.

[PATCH 2/3] Documentation: barebox: fix 'Could not lex literal_block as "c"' warning

2016-08-12 Thread Antony Pavlov
arebox/Documentation/user/barebox.rst:186: WARNING: Could not lex literal_block as "c". Highlighting skipped. barebox/Documentation/user/barebox.rst:205: WARNING: Could not lex literal_block as "c". Highlighting skipped. Signed-off-by: Antony Pavlov <antonynpav...@gmail.co

[PATCH 3/3] Documentation: variables: fix error in "code-block" directive

2016-08-12 Thread Antony Pavlov
nvironment),-(root) barebox@Phytec phyCARD-i.MX27:/ devinfo nand0 Parameters: [...] partitions: 4M(barebox),1M(barebox-environment),8M(kernel),1011M(root) [...] Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- Documentation/user/variables.r

net: phy: fixed link

2016-08-08 Thread Antony Pavlov
the line phydev->link = 1; is redundant because phy_device_create() has already set it. 2. (not so trivial think) the line phydev->registered = 1; Why we want to set phydev->registered here? Can we use phy_register_device() instead? Any sugesstions?

Re: [PATCH v2] net: phy: fixed-link: read link parameters from devicetree

2016-08-08 Thread Antony Pavlov
; 2.8.1 > > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- --  Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH] net: phy: fixed-link: read link parameters from devicetree

2016-08-08 Thread Antony Pavlov
ase fix coding style here. > + phydev->pause = of_property_read_bool(np, "pause"); > + phydev->asym_pause = of_property_read_bool(np, "asym-pause"); > + > return phydev; > } > > -- > 2.8.1 > > >

[PATCH 0/2] MIPS: csrc-r4k: get counter rate from devicetree

2016-07-06 Thread Antony Pavlov
At the moment csrc-r4k rate is fixed to 100 MHz. This is acceptable only for qemu-malta. This patch introduces a devicetree-based solution for detecting csrc-r4k counter rate. The most notable users of this patch are AR9331-based boards. Antony Pavlov (2): of: base: import of_get_cpu_node

[PATCH 1/2] of: base: import of_get_cpu_node() from linux-v4.7-rc2

2016-07-06 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers/of/base.c | 86 +++ include/of.h | 10 +++ 2 files changed, 96 insertions(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index 3099c91..1e6c33d

[PATCH 2/2] MIPS: csrc-r4k: get cp0 counter rate from devicetree

2016-07-06 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/lib/csrc-r4k.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/arch/mips/lib/csrc-r4k.c b/arch/mips/lib/csrc-r4k.c index 5c3f18f..6f6e18c 100644 --- a/arch/mips/lib/csrc-r4k.c

Re: [PATCH] input: Compile keymap only if necessary

2016-07-04 Thread Antony Pavlov
_________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- --  Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH v2 4/4] video/edid: Move int_sqrt() out

2016-06-24 Thread Antony Pavlov
+ m = 1UL << (BITS_PER_LONG - 2); > + while (m != 0) { > + b = y + m; > + y >>= 1; > + > + if (x >= b) { > + x -= b; > + y += m; > + } > + m >>= 2; > + } > + > + return y; > +} > +EXPORT_SYMBOL(int_sqrt); > -- > 2.5.5 > > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- --  Best regards,   Antony Pavlov ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH 3/3] GUI: Add fbtest command

2016-06-22 Thread Antony Pavlov
clude > +#include > +#include > + > +unsigned long int_sqrt(unsigned long x); the int_sqrt() function is defined in the drivers/video/edid.c file. To use it we have to keep CONFIG_DRIVER_VIDEO_EDID enabled. But I have see no measures on enabling CONFIG_DRIVER_VIDEO_EDID in your patc

Re: [PATCH 3/3] GUI: Add fbtest command

2016-06-22 Thread Antony Pavlov
prompt "FB test" > + help > + Framebuffer test command that allows to produce a number of > + test patterns on the screen. ^ "on THE screen" here Can you fix this inconsistency, please? --  Best regards,   Antony Pav

[PATCH] net: phy: make locally used of_phy_register_fixed_link() static

2016-06-15 Thread Antony Pavlov
The patch fixes this compiler's warning: drivers/net/phy/phy.c:303:20: warning: no previous prototype for ‘of_phy_register_fixed_link’ [-Wmissing-prototypes] Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- drivers/net/phy/phy.c | 3 ++- 1 file changed, 2 insertions

[PATCH 2/6] MIPS: ath79: dts: sync clk stuff with linux v4.7-rc2

2016-06-13 Thread Antony Pavlov
Please see these linux kernel ath79 commits: commit 1e6a3492e7bb12aa8ee26050ff6829c39ebaa152 Author: Antony Pavlov <antonynpav...@gmail.com> Date: Thu Mar 17 06:34:17 2016 +0300 MIPS: dts: qca: introduce AR9331 devicetree commit 5ae5c452e3361612cd8182eb8bdfecf0eb

[PATCH 3/6] MIPS: ath79: dts: sync uart stuff with linux v4.7-rc2

2016-06-13 Thread Antony Pavlov
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/dts/ar9331.dtsi | 2 +- arch/mips/dts/black-swift.dts | 2 +- arch/mips/dts/tplink-mr3020.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/dts/ar9331.dtsi b/arch/mips/dts/ar933

[PATCH 6/6] MIPS: ath79: dts: use ar9331.dtsi from linux v4.7-rc2

2016-06-13 Thread Antony Pavlov
Nowadays we have AR9331 devicetree from linux v4.7-rc2 in the file dts/src/mips/qca/ar9331.dtsi. Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> --- arch/mips/dts/ar9331.dtsi | 59 - arch/mips/dts/black-swift.dts | 2 +- arch/mi

[PATCH 5/6] MIPS: ath79: dts: tplink-mr3020.dts: sync with linux v4.7-rc2

2016-06-13 Thread Antony Pavlov
Also sync black-swift.dts with tplink-mr3020.dts. And also see this linux kernel commit: commit 2c3694d2e6ead3964aafb31e4e529de219ced92b Author: Antony Pavlov <antonynpav...@gmail.com> Date: Thu Mar 17 06:34:19 2016 +0300 MIPS: ath79: add initial support for TP-LINK

<    1   2   3   4   5   6   7   8   9   10   >