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

2016-02-16 Thread Sascha Hauer
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 some > update handler. > > Signed-off-by: Markus Pargmann > --- > drivers/usb/gadget/f_fas

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

2016-02-16 Thread Sascha Hauer
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 commands > where the target file is a mtd device. If we just want to transfer a UBI > image we would

Re: [PATCH 0/7] AM335x related patches

2016-02-16 Thread Sascha Hauer
On Tue, Feb 16, 2016 at 11:44:55AM +0100, Teresa Remmet wrote: > Different AM335x changes containing new RAM timings and > reducing image size of all am335x boards. > > Patches have been tested on PHYTEC boards and beaglebone black. > > Regards > Teresa > > Arnd Beuscher (1): > ARM: board: phy

Re: [PATCH v2 3/3] fs: add support for SquashFS 4.0

2016-02-16 Thread Sascha Hauer
On Tue, Feb 16, 2016 at 09:38:03AM +0100, Yegor Yefremov wrote: > On Tue, Feb 16, 2016 at 9:23 AM, wrote: > > From: Yegor Yefremov > > > > The driver was imported from Linux 4.4. > > > > Signed-off-by: Yegor Yefremov > > --- > > Changes: > > v2: - fix checkpatch errors > > -

Re: [PATCH 1/3] ARM: i.MX6: add function cpu_is_mx6s()

2016-02-16 Thread Sascha Hauer
On Mon, Feb 15, 2016 at 10:56:53AM +0100, Stefan Christ wrote: > The cpu_is_mx6* function for the i.MX6 Solo was missing. All other > functions are already defined. > > Signed-off-by: Stefan Christ > --- > arch/arm/mach-imx/include/mach/imx6.h | 1 + > 1 file changed, 1 insertion(+) Applied the

Re: [PATCH 00/17] RFC for additional 'nvmem' plumbing

2016-02-16 Thread Andrey Smirnov
On Tue, Feb 16, 2016 at 7:09 PM, Trent Piepho wrote: > On Tue, 2016-02-16 at 17:29 -0800, Andrey Smirnov wrote: >> Hi everyone, >> >> The main purpose of this patchset is propose additional Nvmem plubing >> needed for that subsytem's inclusion in BB and solicit feedback about >> it (patches ## 15

Re: [PATCH 15/18] [RFC] net: eth: Always use DEVICE_ID_DYNAMIC

2016-02-16 Thread Andrey Smirnov
On Tue, Feb 16, 2016 at 6:40 PM, Trent Piepho wrote: > On Tue, 2016-02-16 at 17:29 -0800, Andrey Smirnov wrote: >> Assigning device IDs based on device tree aliases doesn't work very well >> on platforms that have both NICs that are a part of a platform with >> assigned aliases and NICs with DEVIC

Re: [PATCH 00/17] RFC for additional 'nvmem' plumbing

2016-02-16 Thread Trent Piepho
On Tue, 2016-02-16 at 17:29 -0800, Andrey Smirnov wrote: > Hi everyone, > > The main purpose of this patchset is propose additional Nvmem plubing > needed for that subsytem's inclusion in BB and solicit feedback about > it (patches ## 15 to 17) . Included in this set are also a number of > bugfixe

Re: [PATCH 15/18] [RFC] net: eth: Always use DEVICE_ID_DYNAMIC

2016-02-16 Thread Trent Piepho
On Tue, 2016-02-16 at 17:29 -0800, Andrey Smirnov wrote: > Assigning device IDs based on device tree aliases doesn't work very well > on platforms that have both NICs that are a part of a platform with > assigned aliases and NICs with DEVICE_ID_DYNAMIC policy of ID > assignement due to the nature o

[PATCH 14/18] fec_imx: Unregister MDIO when probe fails

2016-02-16 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- drivers/net/fec_imx.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c index 0877a53..27d816f 100644 --- a/drivers/net/fec_imx.c +++ b/drivers/net/fec_imx.c @@ -799,14 +799,16 @@ static int fe

[PATCH 15/18] [RFC] net: eth: Always use DEVICE_ID_DYNAMIC

2016-02-16 Thread Andrey Smirnov
Assigning device IDs based on device tree aliases doesn't work very well on platforms that have both NICs that are a part of a platform with assigned aliases and NICs with DEVICE_ID_DYNAMIC policy of ID assignement due to the nature of the interfaces they are connected via (PCIe, USB, etc.). Consid

[PATCH 03/18] [RFC] at91: Make IS_ERR work for I/O pointers

2016-02-16 Thread Andrey Smirnov
Having this functionality partially "broken" opens the door for subtle bugs in peripheral drivers for AT91 platform since it not straight out obvious that IS_ERR might return a false positive. It also makes it much harder to judge the correctness of the driver code, for example it is perfectly fin

[PATCH 17/18] [RFC] nvmem: Add nvmem-ro-of-blob driver

2016-02-16 Thread Andrey Smirnov
Add a driver that implements provisions to allow creationg of fake nvmem devices and cells whose data comes from device tree blob. Signed-off-by: Andrey Smirnov --- drivers/misc/Makefile | 1 + drivers/misc/nvmem-ro-of-blob.c | 196 2 files c

[PATCH 04/18] [RFC] base/driver.c: Remove dev_request_mem_region_err_null

2016-02-16 Thread Andrey Smirnov
Having functional IS_ERR on AT91 means we no longer need that function Signed-off-by: Andrey Smirnov --- arch/arm/mach-at91/at91sam926x_time.c | 6 +++--- drivers/base/driver.c | 16 drivers/pinctrl/pinctrl-at91.c| 6 +++--- drivers/serial/atmel.c

[PATCH 16/18] [RFC] nvmem: Add of_nvmem_cell_from_cell_np

2016-02-16 Thread Andrey Smirnov
Add of_nvmem_cell_from_cell_np to allow creating 'struct nvmem_cell' form a phandle of 'nvmem' cell. Signed-off-by: Andrey Smirnov --- drivers/nvmem/core.c | 57 ++ include/linux/nvmem-consumer.h | 10 2 files changed, 45 insertions(+),

[PATCH 10/18] fec_imx: Free phy_reset GPIO if when probe fails

2016-02-16 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- drivers/net/fec_imx.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c index c059882..d132586 100644 --- a/drivers/net/fec_imx.c +++ b/drivers/net/fec_imx.c @@ -732,7 +732,7 @@ static int fec

[PATCH 09/18] fec_imx: Deallocate I/O resources if probe fails

2016-02-16 Thread Andrey Smirnov
Add a proper check for I/O memory resource allocation failure and replace dev_request_mem_region with dev_request_mem_resource so it would be possible to correctly deallocate device's I/O resources when probe fails. Signed-off-by: Andrey Smirnov --- drivers/net/fec_imx.c | 16 1

[PATCH 18/18] [RFC] nvmem: Add nvmem-sg driver

2016-02-16 Thread Andrey Smirnov
Add nvmem-sg driver which adds provisions to create fake 'nvmem' devices whose cells are comprised of bits and pieces of other 'nvmem' cells in a scatter-gather manner. Signed-off-by: Andrey Smirnov --- drivers/misc/Makefile | 1 + drivers/misc/nvmem-sg.c | 287 ++

[PATCH 07/18] fec_imx: Deallocate clocks when probe fails

2016-02-16 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- drivers/net/fec_imx.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c index 4465788..f413acd 100644 --- a/drivers/net/fec_imx.c +++ b/drivers/net/fec_imx.c @@ -710,7 +710,9 @@ stati

[PATCH 11/18] fec_imx: Use FEC_ECNTRL_RESET instead of a magic number

2016-02-16 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- drivers/net/fec_imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c index d132586..46932fe 100644 --- a/drivers/net/fec_imx.c +++ b/drivers/net/fec_imx.c @@ -740,7 +740,7 @@ static int fec_probe(

[PATCH 13/18] fec_imx: Deallocate DMA buffers when probe fails

2016-02-16 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- drivers/net/fec_imx.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c index 99bd179..0877a53 100644 --- a/drivers/net/fec_imx.c +++ b/drivers/net/fec_imx.c @@ -621,6 +621,12

[PATCH 08/18] [RFC] base: Introduce dev_request_mem_resource

2016-02-16 Thread Andrey Smirnov
Introduce dev_request_mem_resource as a version of dev_request_mem_region that returns the corresponding 'struct resource' and thus allows to perform proper resource deallocation. This is useful for drivers that can experience deferred probling and need to be able to be probed twice. Signed-off-by

[PATCH 05/18] i2c-at91: Use IS_ERR instead of checking for NULL

2016-02-16 Thread Andrey Smirnov
Dev_request_mem_region doesn't return NULL to indicate error and IS_ERR should be used in conjuction with it in order to detect failure. Signed-off-by: Andrey Smirnov --- drivers/i2c/busses/i2c-at91.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-

[PATCH 00/17] RFC for additional 'nvmem' plumbing

2016-02-16 Thread Andrey Smirnov
Hi everyone, The main purpose of this patchset is propose additional Nvmem plubing needed for that subsytem's inclusion in BB and solicit feedback about it (patches ## 15 to 17) . Included in this set are also a number of bugfixes and RFC-for-bugfixes for problems that were discoverd during develo

[PATCH 02/18] base: driver.c: Coalesce error checking code

2016-02-16 Thread Andrey Smirnov
Both dev_get_mem_region and dev_get_mem_region_by_name do exactly the same thing with struct resource they obtain. Move that code into a dedicated helper function. Signed-off-by: Andrey Smirnov --- drivers/base/driver.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --

[PATCH 01/18] common: Add EPROBE_DEFER to strerror

2016-02-16 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- common/misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/misc.c b/common/misc.c index 8b2417b..f0f0b80 100644 --- a/common/misc.c +++ b/common/misc.c @@ -65,6 +65,7 @@ const char *strerror(int errnum) caseENETUNREACH : str = "Netwo

[PATCH 06/18] clk-imx6: Call clk_enable on mmdc_ch0_axi_podf

2016-02-16 Thread Andrey Smirnov
Call clk_enable on mmdc_ch0_axi_podf in order to properly increase reference counters for all of the nodes in this particular clock path. Otherwise it becomes possible for peripherals, located on other branches stemming from "periph", to shut down the whole clock tree (up to "pll2_bus") when they t

[PATCH 12/18] fec_imx: Impelemnt reset timeout

2016-02-16 Thread Andrey Smirnov
Don't wait for more than one second for IP block to finish resetting. If the block is dead it makes more sence to continue execution in hopes that the rest of the processor is fine, rather than spin indefinetly inside of the fec_probe function Signed-off-by: Andrey Smirnov --- drivers/net/fec_im

[PATCH] Documentation: usb: fix otg mode parameter description

2016-02-16 Thread Philipp Zabel
Replace ``device`` otg.mode option with the correct ``peripheral``. Signed-off-by: Philipp Zabel --- Documentation/user/usb.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/user/usb.rst b/Documentation/user/usb.rst index 9eb1437..99158a2 100644 --- a/Document

[PATCH] fs: ext4: make locally used ext4fs_get_indir_block() static

2016-02-16 Thread Antony Pavlov
The patch fixes this compiler's warning: CC fs/ext4/ext4_common.o fs/ext4/ext4_common.c:130:5: warning: no previous prototype for 'ext4fs_get_indir_block' [-Wmissing-prototypes] int ext4fs_get_indir_block(struct ext2fs_node *node, struct ext4fs_indir_block *indir, int b

[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 --- common/bbu.c | 20 +++- 1 file changed, 19 insert

[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 --- common/bbu.c | 14 ++ include/bbu.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/common/bbu.c b/common/bbu.c index bf3790d13fff..a7f6b4

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

2016-02-16 Thread Markus Pargmann
Currently all fastboot flash commands with UBI images are handled by a final call to 'ubiformat'. This only makes sense for flash commands where the target file is a mtd device. If we just want to transfer a UBI image we would expect a simple copy to the correct location. This patch checks if the

[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 --- drivers/usb/gadget/f_fastboot.c | 29 + 1 file changed, 29 insertions(+) d

[PATCH] regulator: fixed: Init gpio properly

2016-02-16 Thread Sascha Hauer
gpio has to be initialized with an invalid gpio number. 0 is a valid number and it will be requested and used by the driver. Signed-off-by: Sascha Hauer --- drivers/regulator/fixed.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index 2

[PATCH 2/2] ARM: am335x_defconfig: Enable the of_fixup_status command

2016-02-16 Thread Teresa Remmet
Signed-off-by: Teresa Remmet --- arch/arm/configs/am335x_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/am335x_defconfig b/arch/arm/configs/am335x_defconfig index 7cf48b8..9196fb8 100644 --- a/arch/arm/configs/am335x_defconfig +++ b/arch/arm/configs/am335x_defconf

[PATCH 1/2] commands: Add of_fixup_status

2016-02-16 Thread Teresa Remmet
of_fixup_status enables or disables the status property of a given node with a device tree fixup. Signed-off-by: Teresa Remmet --- commands/Kconfig | 16 +++ commands/Makefile | 1 + commands/of_fixup_status.c | 101 + 3 files

[PATCH 1/7] ARM: am335x_defconfig: Enable NANDTEST command

2016-02-16 Thread Teresa Remmet
From: Wadim Egorov Signed-off-by: Wadim Egorov --- arch/arm/configs/am335x_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/am335x_defconfig b/arch/arm/configs/am335x_defconfig index 9563865..180e016 100644 --- a/arch/arm/configs/am335x_defconfig +++ b/arch/arm/co

[PATCH 5/7] ARM: boards: phytec-som-am335x: New RAM Timings for phyCORE-AM335x-R2

2016-02-16 Thread Teresa Remmet
Add RAM timings for phyCORE-AM335x-R2 256MB RAM. Signed-off-by: Teresa Remmet --- arch/arm/boards/phytec-som-am335x/lowlevel.c| 1 + arch/arm/boards/phytec-som-am335x/ram-timings.h | 20 images/Makefile.am33xx | 6 ++ 3 files changed, 27 in

[PATCH 6/7] ARM: dts: beaglebone: Strip clocks in MLO device tree

2016-02-16 Thread Teresa Remmet
Reduce even more size of beaglebone MLO device tree with stripping the clocks. Signed-off-by: Teresa Remmet --- arch/arm/dts/am335x-bone-common.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/am335x-bone-common.dts b/arch/arm/dts/am335x-bone-common.dts index 91745d3..0488cb

[PATCH 3/7] ARM: dts: am335x-phytec: eeprom name

2016-02-16 Thread Teresa Remmet
From: Jan Remmet use eeprom as name like in the kernel. This is needed if you use the state framework. phycard: also fix index, it has address 0x54 Signed-off-by: Jan Remmet --- arch/arm/dts/am335x-phytec-phycard-som.dtsi | 2 +- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 2 +- 2 files chan

[PATCH 0/7] AM335x related patches

2016-02-16 Thread Teresa Remmet
Different AM335x changes containing new RAM timings and reducing image size of all am335x boards. Patches have been tested on PHYTEC boards and beaglebone black. Regards Teresa Arnd Beuscher (1): ARM: board: phytec-som-am335x: RAM timings for phyCORE-AM335x-R2 Jan Remmet (1): ARM: dts: am33

[PATCH 7/7] ARM: AM335x: Make use of ARM_USE_COMPRESSED_DTB

2016-02-16 Thread Teresa Remmet
Use ARM_USE_COMPRESSED_DTB for all AM335x based board, to reduce the image size even more. Saves about 9kB in MLO image and 20kB in barebox image. Signed-off-by: Teresa Remmet --- arch/arm/boards/afi-gf/lowlevel.c| 6 +++--- arch/arm/boards/beaglebone/lowlevel.c| 12 ++-

[PATCH 4/7] ARM: board: phytec-som-am335x: RAM timings for phyCORE-AM335x-R2

2016-02-16 Thread Teresa Remmet
From: Arnd Beuscher Add RAM Timings for new phyCORE-AM335x-R2 SoM with 512MB (MT41K256M16TW107IT). Signed-off-by: Arnd Beuscher Sigend-off-by: Teresa Remmet --- arch/arm/boards/phytec-som-am335x/lowlevel.c| 1 + arch/arm/boards/phytec-som-am335x/ram-timings.h | 20 i

[PATCH 2/7] ARM: am335x_defconfig: Enable watchdog support

2016-02-16 Thread Teresa Remmet
Enable wdt driver and command. Signed-off-by: Teresa Remmet --- arch/arm/configs/am335x_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/am335x_defconfig b/arch/arm/configs/am335x_defconfig index 180e016..7cf48b8 100644 --- a/arch/arm/configs/am335x_defconfig ++

Re: [PATCH v2 3/3] fs: add support for SquashFS 4.0

2016-02-16 Thread Yegor Yefremov
On Tue, Feb 16, 2016 at 9:23 AM, wrote: > From: Yegor Yefremov > > The driver was imported from Linux 4.4. > > Signed-off-by: Yegor Yefremov > --- > Changes: > v2: - fix checkpatch errors > - remove spinlock/wait code from cache implementation > - fix directory l

[PATCH v2 3/3] fs: add support for SquashFS 4.0

2016-02-16 Thread yegorslists
From: Yegor Yefremov The driver was imported from Linux 4.4. Signed-off-by: Yegor Yefremov --- Changes: v2: - fix checkpatch errors - remove spinlock/wait code from cache implementation - fix directory listing - add documentation entry about SquashFS

[PATCH v2 1/3] linux/types.h: add sector_t and blkcnt_t types

2016-02-16 Thread yegorslists
From: Yegor Yefremov Signed-off-by: Yegor Yefremov --- include/linux/types.h | 16 1 file changed, 16 insertions(+) diff --git a/include/linux/types.h b/include/linux/types.h index 9f8eb67..f64ec4a 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -157,6 +157,2

[PATCH v2 2/3] linux/fs.h: add types and routines needed for SquashFS

2016-02-16 Thread yegorslists
From: Yegor Yefremov Signed-off-by: Yegor Yefremov --- include/linux/fs.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index 7e9886a..e11a602 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -19,6 +19,26 @@