Re: [PATCH 0/9] MIPS: xburst: add JZ4780 SoC and MIPS Creator CI20 board support

2014-09-11 Thread Sascha Hauer
On Wed, Sep 10, 2014 at 11:42:17AM +0400, Antony Pavlov wrote: The MIPS Creator CI20 board is a high performance, fully featured Linux and Android development platform. The Creator CI20 is supplied free of charge to certain approved projects under Imagination's ecosystem. Please see

Re: [PATCH] net: dm9k: fix copy-paste typo

2014-09-11 Thread Sascha Hauer
On Wed, Sep 10, 2014 at 11:49:52AM +0400, Antony Pavlov wrote: Signed-off-by: Antony Pavlov antonynpav...@gmail.com --- drivers/net/dm9k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks Sascha diff --git a/drivers/net/dm9k.c b/drivers/net/dm9k.c index

Re: [PATCH] net: dm9k: show only one phy on miibus

2014-09-11 Thread Sascha Hauer
On Wed, Sep 10, 2014 at 11:51:12AM +0400, Antony Pavlov wrote: Signed-off-by: Antony Pavlov antonynpav...@gmail.com --- drivers/net/dm9k.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/dm9k.c b/drivers/net/dm9k.c index 3a4c6aa..950bdb3 100644 ---

Re: [RFC] net: dm9k: add device tree support

2014-09-11 Thread Sascha Hauer
On Wed, Sep 10, 2014 at 11:53:48AM +0400, Antony Pavlov wrote: Signed-off-by: Antony Pavlov antonynpav...@gmail.com --- drivers/net/dm9k.c | 46 +++--- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/drivers/net/dm9k.c

[PATCH] checkpatch.pl: check for the FSF mailing address

2014-09-11 Thread Antony Pavlov
This check code is imported from Linux v3.16 checkpatch.pl. Signed-off-by: Antony Pavlov antonynpav...@gmail.com --- scripts/checkpatch.pl | 10 ++ 1 file changed, 10 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 153af8d..419436d 100755 ---

[RFC] net: dm9k: fix reset routine

2014-09-11 Thread Antony Pavlov
Based on Linux's commit: commit 09ee9f87d02e779e4fc3f5c29212c733d6d6e349 Author: Michael Abbott michael.abb...@diamond.ac.uk Date: Wed Oct 16 11:41:33 2013 +0300 dm9000: Implement full reset of DM9000 network device A Davicom application note for the DM9000 network

[PATCH] commands: of_dump: Fix return value

2014-09-11 Thread Teresa Gámez
In an error case the return value is set nicely but 0 is always beeing returned. Signed-off-by: Teresa Gámez t.ga...@phytec.de --- commands/of_dump.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/of_dump.c b/commands/of_dump.c index 1222ebf..513a4b8 100644

[PATCH 10/10] UBI: bugfix in ubi_wl_flush()

2014-09-11 Thread Sascha Hauer
From: Richard Weinberger rich...@nod.at Use the _safe variant because we're iterating over a list where items get deleted and freed. Signed-off-by: Richard Weinberger rich...@nod.at Signed-off-by: Artem Bityutskiy artem.bityuts...@linux.intel.com --- drivers/mtd/ubi/wl.c | 4 ++-- 1 file

[PATCH 07/10] UBI: fix the volumes tree sorting criteria

2014-09-11 Thread Sascha Hauer
From: Heiko Schocher h...@denx.de Commig 604b592 UBI: fix rb_tree node comparison in add_map broke fastmap backward compatibility and older fastmap images cannot be mounted anymore. The reason is that it changes the volumes RB-tree sorting criteria. This patch fixes the problem. Artem: re-write

[PATCH 01/10] UBI: fix error return code

2014-09-11 Thread Sascha Hauer
From: Julia Lawall julia.law...@lip6.fr Set the return variable to an error code as done elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl ( if@p1 (\(ret 0\|ret != 0\)) { ... return ret; } | ret@p1

[PATCH 08/10] UBI: fastmap: do not miss bit-flips

2014-09-11 Thread Sascha Hauer
From: Brian Norris computersforpe...@gmail.com The return value from 'ubi_io_read_ec_hdr()' was stored in 'err', not in 'ret'. This fix makes sure Fastmap-enabled UBI does not miss bit-flip while reading EC headers, events and scrubs the affected PEBs. This issue was reported by Coverity Scan.

[PATCH 02/10] UBI: avoid program operation on NOR flash after erasure interrupted

2014-09-11 Thread Sascha Hauer
From: Qi Wang 王起 (qiwang) qiw...@micron.com nor_erase_prepare() will be called before erase a NOR flash, it will program '0' into a block to mark this block. But program data into a erasure interrupted block can cause program timtout(several minutes at most) error, could impact other operation

[PATCH 06/10] UBI: fix rb_tree node comparison in add_map

2014-09-11 Thread Sascha Hauer
From: Mike Snitzer snit...@redhat.com The comparisons used in add_vol() shouldn't be identical. Pretty sure the following is correct but it is completely untested. Signed-off-by: Mike Snitzer snit...@redhat.com Acked-by: Richard Weinberger rich...@nod.at Signed-off-by: Artem Bityutskiy

[PATCH 04/10] UBI: fix error path in __wl_get_peb

2014-09-11 Thread Sascha Hauer
From: Tanya Brokhman tlin...@codeaurora.org In case of an error (if there are not free PEB's for example), __wl_get_peb will return a negative value. In order to prevent access violation we need to test the returned value prior to using it later on. Signed-off-by: Tatyana Brokhman

UBI patches

2014-09-11 Thread Sascha Hauer
The following are the UBI fixes ported from the Kernel. This updates UBI corresponding to Linux-3.17-rc4. Sascha Brian Norris (1): UBI: fastmap: do not miss bit-flips Dan Carpenter (1): UBI: fix some use after free

[PATCH 05/10] UBI: fix ubi free PEBs count calculation

2014-09-11 Thread Sascha Hauer
From: Tanya Brokhman tlin...@codeaurora.org The ubi-free_count should be updated with every insert/remove to/from the ubi-free list. Signed-off-by: Tanya Brokhman tlin...@codeaurora.org Reviewed-by: Dolev Raviv dra...@codeaurora.org Acked-by: Richard Weinberger rich...@nod.at Signed-off-by:

[PATCH 09/10] UBI: init_volumes: Ignore volumes with no LEBs

2014-09-11 Thread Sascha Hauer
From: Richard Weinberger rich...@nod.at UBI assumes that ubi_attach_info will only contain ubi_ainf_volume structures for volumes with at least one LEB. In scanning mode this is true because UBI can nicely create a ubi_ainf_volume on demand while creating the EBA table. For fastmap this is not

[PATCH 03/10] UBI: fix some use after free bugs

2014-09-11 Thread Sascha Hauer
From: Dan Carpenter dan.carpen...@oracle.com Move the kmem_cache_free() calls down a couple lines. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com Signed-off-by: Artem Bityutskiy artem.bityuts...@linux.intel.com --- drivers/mtd/ubi/fastmap.c | 8 1 file changed, 4 insertions(+),

Re: [PATCH] checkpatch.pl: check for the FSF mailing address

2014-09-11 Thread Sascha Hauer
On Thu, Sep 11, 2014 at 01:49:51PM +0400, Antony Pavlov wrote: This check code is imported from Linux v3.16 checkpatch.pl. Signed-off-by: Antony Pavlov antonynpav...@gmail.com Ah good move. I hope this helps not getting the address back into the tree every now and then. Applied, thanks.

Re: [RFC] net: dm9k: fix reset routine

2014-09-11 Thread Sascha Hauer
On Thu, Sep 11, 2014 at 03:20:01PM +0400, Antony Pavlov wrote: Based on Linux's commit: commit 09ee9f87d02e779e4fc3f5c29212c733d6d6e349 Author: Michael Abbott michael.abb...@diamond.ac.uk Date: Wed Oct 16 11:41:33 2013 +0300 dm9000: Implement full reset of DM9000