[PATCH 05/25] staging/lustre: Remove unused lustre_build_lock_params()

2016-02-25 Thread green
From: Oleg Drokin And also struct lustre_rw_params that is only referenced by it. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre_lite.h| 48 -- 1 file changed, 48 deletions(-) diff --git

[PATCH 02/25] staging/lustre/include: Fix style of function declarations

2016-02-25 Thread green
From: Oleg Drokin This mostly fixes checkpatch complaints about "Alignment should match open parenthesis" and "space prohibited between function name and open parenthesis" Signed-off-by: Oleg Drokin ---

[PATCH 00/25] Lustre cleanups continued

2016-02-25 Thread green
From: Oleg Drokin These are the cleanup patches that were not applied from the previous patch set due to a missing NFS/fhandle fix that is now applied. Also some defines removal and such. Please apply. Oleg Drokin (25): staging/lustre/llite: Fix style vs open

[PATCH 04/25] staging/lustre: Remove unused liblustre_check_services prototype

2016-02-25 Thread green
From: Oleg Drokin liblustre_check_services is no longer present in the tree. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 03/25] staging/lustre/fld: Fix style vs open parenthesis alignment

2016-02-25 Thread green
From: Oleg Drokin This mostly fixes checkpatch complaints about "Alignment should match open parenthesis" Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/fld/fld_cache.c | 14 +++---

[PATCH 10/25] staging/lustre: F_SETLKW64 F_SETLK64 F_GETLK64 are always defined

2016-02-25 Thread green
From: Oleg Drokin Remove the ifdefs for the around usage. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/file.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/file.c

[PATCH 23/25] staging/lustre: Rework MAX_DIO_SIZE macro

2016-02-25 Thread green
From: Oleg Drokin KMALLOC_MAX_SIZE is always defined in the kernel, so no point in checking for it, just use t directly. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/rw26.c | 10 ++ 1 file changed, 2 insertions(+), 8

[PATCH 22/25] staging/lustre: Fix lines that start with spaces

2016-02-25 Thread green
From: Oleg Drokin Found with checkpatch. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_cfg.h | 2 +- drivers/staging/lustre/lustre/include/lustre_dlm.h | 4 ++-- drivers/staging/lustre/lustre/llite/llite_nfs.c| 6

[PATCH 20/25] staging/lustre/obdecho: Fix style vs open parenthesis alignment

2016-02-25 Thread green
From: Oleg Drokin This mostly fixes checkpatch complaints about "Alignment should match open parenthesis" Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/obdecho/echo_client.c| 22 +++--- 1 file changed, 11

[PATCH 25/25] staging/lustre/ptlrpc: Fix ENABLE_PINGER ifdef

2016-02-25 Thread green
From: Oleg Drokin As it is ENABLE_PINGER is never defined, but in reality it's the code that is now compiled out that should be used since all other instances were converted like that too. Signed-off-by: Oleg Drokin ---

[PATCH 13/25] staging/lustre: NEED_QUOTA_DEFS is never defined, drop it.

2016-02-25 Thread green
From: Oleg Drokin Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre/lustre_user.h | 16 1 file changed, 16 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/lustre/lustre_user.h

[PATCH 21/25] staging/lustre/lmv: Fix style vs open parenthesis alignment

2016-02-25 Thread green
From: Oleg Drokin This mostly fixes checkpatch complaints about "Alignment should match open parenthesis" Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/lmv/lmv_intent.c | 2 +- drivers/staging/lustre/lustre/lmv/lmv_internal.h | 4

[PATCH 24/25] staging/lustre: Remove unneeded {} in lprocfs_stats_unlock()

2016-02-25 Thread green
From: Oleg Drokin Since there's only one call in those if () else branches, the braces are not really necessary. Highlighted by checkpatch. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lprocfs_status.h | 10 -- 1

[PATCH 19/25] staging/lustre/mgc: Fix style vs open parenthesis alignment

2016-02-25 Thread green
From: Oleg Drokin This mostly fixes checkpatch complaints about "Alignment should match open parenthesis" Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 28 - 1 file changed, 14

[PATCH 08/25] staging/lustre: Remove liblustre references from explanations

2016-02-25 Thread green
From: Oleg Drokin Since liblustre is no longer with us, referencing to it in the explanations only makes things less clear Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/cl_object.h | 4 ++--

[PATCH 09/25] staging/lustre/lmv: Remove commented out MDS selection policies

2016-02-25 Thread green
From: Oleg Drokin The new DNE code does not use them either so they are not longer needed. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/lmv/lmv_obd.c | 45 - 1 file changed, 45 deletions(-) diff --git

[PATCH 14/25] staging/lustre/ptlrpc: Fix style vs open parenthesis alignment

2016-02-25 Thread green
From: Oleg Drokin This mostly fixes checkpatch complaints about "Alignment should match open parenthesis" Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ptlrpc/client.c | 40 +---

[PATCH 11/25] staging/lustre: MS_POSIXACL is always defined, don't check for it

2016-02-25 Thread green
From: Oleg Drokin Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/llite_lib.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.c

[PATCH 17/25] staging/lustre/lov: Fix style vs open parenthesis alignment

2016-02-25 Thread green
From: Oleg Drokin This mostly fixes checkpatch complaints about "Alignment should match open parenthesis" Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/lov/lov_cl_internal.h| 87 +++---

[PATCH 18/25] staging/lustre/mdc: Fix style vs open parenthesis alignment

2016-02-25 Thread green
From: Oleg Drokin This mostly fixes checkpatch complaints about "Alignment should match open parenthesis" Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/mdc/mdc_internal.h | 2 +- drivers/staging/lustre/lustre/mdc/mdc_locks.c| 26

[PATCH 12/25] staging/lustre: Remove RELEASEPAGE_ARG_TYPE compat macro

2016-02-25 Thread green
From: Oleg Drokin Not used in the kernel proper. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/rw26.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/rw26.c

[PATCH 16/25] staging/lustre/obdclass: Fix style vs open parenthesis alignment

2016-02-25 Thread green
From: Oleg Drokin This mostly fixes checkpatch complaints about "Alignment should match open parenthesis" Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/obdclass/cl_io.c | 20 ++-- drivers/staging/lustre/lustre/obdclass/cl_lock.c

[PATCH 15/25] staging/lustre/osc: Fix style vs open parenthesis alignment

2016-02-25 Thread green
From: Oleg Drokin This mostly fixes checkpatch complaints about "Alignment should match open parenthesis" Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/osc/lproc_osc.c | 20 ++---

[PATCH 07/25] staging/lustre: Remove misleading liblustre comments.

2016-02-25 Thread green
From: Oleg Drokin These two comments certainly refer to some ifdefed code that is no longer present, so remove them too. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/lov/lov_pool.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH 01/25] staging/lustre/llite: Fix style vs open parenthesis alignment

2016-02-25 Thread green
From: Oleg Drokin This mostly fixes checkpatch complaints about "Alignment should match open parenthesis" Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/dcache.c | 3 +- drivers/staging/lustre/lustre/llite/dir.c |

Re: [lustre-devel] [PATCH v2 0/6] staging: lustre: update modinfo data

2016-02-25 Thread Greg Kroah-Hartman
On Fri, Feb 26, 2016 at 06:11:07AM +, Drokin, Oleg wrote: > > On Feb 26, 2016, at 1:03 AM, Greg Kroah-Hartman wrote: > > > On Thu, Feb 25, 2016 at 08:07:06PM -0500, James Simmons wrote: > >> The module information for Lustre is stale or in some cases > >> completely missing. This collection

Re: [PATCH] staging/lustre: proper support of NFS anonymous dentries

2016-02-25 Thread Greg Kroah-Hartman
On Fri, Feb 26, 2016 at 01:13:58AM -0500, Oleg Drokin wrote: > > On Feb 26, 2016, at 1:13 AM, Greg Kroah-Hartman wrote: > > > On Mon, Feb 22, 2016 at 09:34:17PM -0500, Oleg Drokin wrote: > >> > >> On Feb 14, 2016, at 7:58 PM, Greg Kroah-Hartman wrote: > >> > >>> On Sun, Feb 14, 2016 at

Re: [PATCH] staging/lustre: proper support of NFS anonymous dentries

2016-02-25 Thread Oleg Drokin
On Feb 26, 2016, at 1:13 AM, Greg Kroah-Hartman wrote: > On Mon, Feb 22, 2016 at 09:34:17PM -0500, Oleg Drokin wrote: >> >> On Feb 14, 2016, at 7:58 PM, Greg Kroah-Hartman wrote: >> >>> On Sun, Feb 14, 2016 at 07:13:52PM -0500, gr...@linuxhacker.ru wrote: From: Dmitry Eremin

Re: [PATCH] staging/lustre: proper support of NFS anonymous dentries

2016-02-25 Thread Greg Kroah-Hartman
On Mon, Feb 22, 2016 at 09:34:17PM -0500, Oleg Drokin wrote: > > On Feb 14, 2016, at 7:58 PM, Greg Kroah-Hartman wrote: > > > On Sun, Feb 14, 2016 at 07:13:52PM -0500, gr...@linuxhacker.ru wrote: > >> From: Dmitry Eremin > >> > >> NFS can ask to encode dentries that

Re: [PATCH v2 60/84] staging/lustre/llite: Fix style vs open parenthesis alignment

2016-02-25 Thread Oleg Drokin
On Feb 26, 2016, at 1:10 AM, Greg Kroah-Hartman wrote: > On Wed, Feb 24, 2016 at 10:00:43PM -0500, gr...@linuxhacker.ru wrote: >> From: Oleg Drokin >> >> This mostly fixes checkpatch complaints about >> "Alignment should match open parenthesis" >> >> Signed-off-by: Oleg

Re: [lustre-devel] [PATCH v2 0/6] staging: lustre: update modinfo data

2016-02-25 Thread Drokin, Oleg
On Feb 26, 2016, at 1:03 AM, Greg Kroah-Hartman wrote: > On Thu, Feb 25, 2016 at 08:07:06PM -0500, James Simmons wrote: >> The module information for Lustre is stale or in some cases >> completely missing. This collection of patches brings the >> modinfo up to date as well as filling in any

Re: [PATCH v2 60/84] staging/lustre/llite: Fix style vs open parenthesis alignment

2016-02-25 Thread Greg Kroah-Hartman
On Wed, Feb 24, 2016 at 10:00:43PM -0500, gr...@linuxhacker.ru wrote: > From: Oleg Drokin > > This mostly fixes checkpatch complaints about > "Alignment should match open parenthesis" > > Signed-off-by: Oleg Drokin This patch doesn't apply to the

Re: [PATCH v2 0/6] staging: lustre: update modinfo data

2016-02-25 Thread Greg Kroah-Hartman
On Thu, Feb 25, 2016 at 08:07:06PM -0500, James Simmons wrote: > The module information for Lustre is stale or in some cases > completely missing. This collection of patches brings the > modinfo up to date as well as filling in any missing information. > This patch set has been redone to rebase it

[PATCH RESEND 1/1] staging: ion: debugfs invalid gfp mask

2016-02-25 Thread Derek Yerger
From drivers/staging/android TODO file - sparse errors. The current code attempts assignment of -1 to an unsigned type. Note that in a downstream function ion_page_pool_shrink this mask is only ever evaluated against __GFP_HIGHMEM (drivers/staging/android/ion/ion_page_pool.c, line 125).

Re: [PATCH v3 00/52] mtd: rework ECC layout definition

2016-02-25 Thread Boris Brezillon
On Thu, 25 Feb 2016 17:27:23 -0800 Stefan Agner wrote: > Hi Boris, > > On 2016-02-25 16:57, Boris Brezillon wrote: > > Hello, > > > > This patchset aims at getting rid of the nand_ecclayout limitations. > > struct nand_ecclayout is defining fixed eccpos and oobfree arrays

Re: [PATCH v3 00/52] mtd: rework ECC layout definition

2016-02-25 Thread Stefan Agner
Hi Boris, On 2016-02-25 16:57, Boris Brezillon wrote: > Hello, > > This patchset aims at getting rid of the nand_ecclayout limitations. > struct nand_ecclayout is defining fixed eccpos and oobfree arrays which > can only be increased by modifying the MTD_MAX_ECCPOS_ENTRIES_LARGE and >

[PATCH v3 51/52] mtd: nand: kill the ecc->layout field

2016-02-25 Thread Boris Brezillon
Now that all NAND drivers have switch to mtd_ooblayout_ops, we can kill the ecc->layout field. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 7 --- drivers/mtd/nand/nand_bch.c | 9 - include/linux/mtd/nand.h | 2 -- 3

[PATCH v3 52/52] mtd: kill the nand_ecclayout struct

2016-02-25 Thread Boris Brezillon
Now that all MTD drivers have moved to the mtd_ooblayout_ops model we can safely remove the struct nand_ecclayout definition, and all the remaining places where it was still used. Signed-off-by: Boris Brezillon --- drivers/mtd/mtdchar.c | 12 ++---

[PATCH v3 49/52] mtd: onenand: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Modify the onenand drivers to switch to this approach. Signed-off-by: Boris Brezillon --- drivers/mtd/onenand/onenand_base.c | 162

[PATCH v3 46/52] mtd: nand: sm_common: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sm_common.c | 93 1 file changed, 77 insertions(+), 16

[PATCH v3 47/52] mtd: nand: sunxi: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 114 +++--- 1 file changed, 52 insertions(+), 62

[PATCH v3 50/52] staging: mt29f_spinand: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Replace the nand_ecclayout definition by the equivalent mtd_ooblayout_ops definition. Signed-off-by: Boris Brezillon --- drivers/staging/mt29f_spinand/mt29f_spinand.c | 48 +-- 1 file changed, 30 insertions(+), 18 deletions(-) diff

[PATCH v3 48/52] mtd: nand: vf610: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/vf610_nfc.c | 34 -- 1 file changed, 4 insertions(+), 30 deletions(-)

[PATCH v3 44/52] mtd: nand: s3c2410: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/s3c2410.c | 32 +++- 1 file changed, 27 insertions(+), 5 deletions(-) diff

[PATCH v3 45/52] mtd: nand: sh_flctl: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sh_flctl.c | 87 ++--- 1 file changed, 67 insertions(+), 20

[PATCH v3 38/52] mtd: nand: hisi504: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/hisi504_nand.c | 26 +++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff

[PATCH v3 41/52] mtd: nand: mxc: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/mxc_nand.c | 212 ++-- 1 file changed, 105 insertions(+), 107

[PATCH v3 40/52] mtd: nand: lpc32xx: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/lpc32xx_mlc.c | 50 -- drivers/mtd/nand/lpc32xx_slc.c | 41

[PATCH v3 43/52] mtd: nand: pxa3xx: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/pxa3xx_nand.c | 104 + 1 file changed, 64 insertions(+), 40

[PATCH v3 42/52] mtd: nand: omap2: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/omap2.c | 194 +++ 1 file changed, 113 insertions(+), 81

[PATCH v3 39/52] mtd: nand: jz4780: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/jz4780_nand.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git

[PATCH v3 37/52] mtd: nand: gpmi: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 52 ++ 1 file changed, 40 insertions(+), 12

[PATCH v3 36/52] mtd: nand: fsmc: get rid of the fsmc_nand_eccplace struct

2016-02-25 Thread Boris Brezillon
Now that mtd_ooblayout_ecc() returns the ECC byte position using the OOB free method, we can get rid of the fsmc_nand_eccplace struct. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/fsmc_nand.c | 60 +++-

[PATCH v3 34/52] mtd: nand: fsl_ifc: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/fsl_ifc_nand.c | 231 1 file changed, 67 insertions(+), 164

[PATCH v2 4/6] staging: lustre: update the MODULE_DESCRIPTION for all lustre modules

2016-02-25 Thread James Simmons
From: Andreas Dilger Fixup the MODULE_DESCRIPTION for several lustre modules. Some wrongly place the version in the string or they are not descriptive enough. Broken out of patch http://review.whamcloud.com/16787. Signed-off-by: Andreas Dilger

[PATCH v3 35/52] mtd: nand: fsmc: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/fsmc_nand.c | 298 --- 1 file changed, 82 insertions(+), 216

[PATCH v2 5/6] staging: lustre: make module_init/exit naming consistent

2016-02-25 Thread James Simmons
From: Andreas Dilger Make the name of the module_init()/_exit() functions consistently {module_name}_init and {module_name}_exit. Signed-off-by: Andreas Dilger Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6204 Reviewed-on:

[PATCH v2 1/6] staging: lustre: move module info to end of libcfs module.c file

2016-02-25 Thread James Simmons
Move the MODULE_* field in module.c that belongs to libcfs to the end of the file like it is done for other kernel drivers. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/libcfs/module.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-)

[PATCH v2 2/6] staging: lustre: add missing MODULE_AUTHOR for LNet selftest module

2016-02-25 Thread James Simmons
From: Andreas Dilger For LNet selftest module the MODULE_AUTHOR was missing. Add proper OpenSFS authorship. Broken out of patch http://review.whamcloud.com/16787. Signed-off-by: Andreas Dilger Intel-bug-id:

[PATCH v2 6/6] staging: lustre: update comment for lnet_lib_init/exit

2016-02-25 Thread James Simmons
From: Andreas Dilger The documentation about the return values for lnet_lib_init and lnet_lib_exit was in the old style format. Bring it in sync with the rest of the LNet core. Broken out of patch 16787. Signed-off-by: Andreas Dilger

[PATCH v2 0/6] staging: lustre: update modinfo data

2016-02-25 Thread James Simmons
The module information for Lustre is stale or in some cases completely missing. This collection of patches brings the modinfo up to date as well as filling in any missing information. This patch set has been redone to rebase it on Oleg's latest patch set to avoid collisons in merging. Andreas

[PATCH v2 3/6] staging: lustre: update the MODULE_VERSION for all lustre modules

2016-02-25 Thread James Simmons
For several lustre modules the MODULE_VERSION has the wrong value, located in the wrong place in the source code, or completely missing. This patch brings it up to date. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6204 Reviewed-on:

[PATCH v3 33/52] mtd: nand: fsl_elbc: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/fsl_elbc_nand.c | 83 +++- 1 file changed, 47 insertions(+), 36

[PATCH v3 32/52] mtd: nand: docg4: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/docg4.c | 33 - 1 file changed, 28 insertions(+), 5 deletions(-) diff

[PATCH v3 31/52] mtd: nand: diskonchip: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/diskonchip.c | 60 --- 1 file changed, 45 insertions(+), 15

[PATCH v3 30/52] mtd: nand: denali: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/denali.c | 51 +-- 1 file changed, 36 insertions(+), 15

[PATCH v3 29/52] mtd: nand: davinci: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/davinci_nand.c | 118 +++- 1 file changed, 44 insertions(+), 74

[PATCH v3 24/52] mtd: nand: jz4740: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- arch/mips/include/asm/mach-jz4740/jz4740_nand.h | 2 +- arch/mips/jz4740/board-qi_lb60.c| 87

[PATCH v3 28/52] mtd: nand: cafe: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/cafe_nand.c | 45 1 file changed, 33 insertions(+), 12

[PATCH v3 26/52] mtd: nand: bf5xx: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/bf5xx_nand.c | 51 --- 1 file changed, 28 insertions(+), 23

[PATCH v3 27/52] mtd: nand: brcm: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/brcmnand/brcmnand.c | 258 +-- 1 file changed, 157 insertions(+), 101

[PATCH v3 25/52] mtd: nand: atmel: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/atmel_nand.c | 84 --- 1 file changed, 38 insertions(+), 46

[PATCH v3 23/52] mtd: nand: sharpsl: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Signed-off-by: Boris Brezillon --- arch/arm/mach-pxa/spitz.c | 55 - drivers/mtd/nand/sharpsl.c | 2 +-

[PATCH v3 22/52] mtd: nand: bch: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Replace the nand_ecclayout definition by the equivalent mtd_ooblayout_ops definition. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_bch.c | 33 +++-- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git

[PATCH v3 20/52] mtd: docg3: switch to mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Replace the nand_ecclayout definition by the equivalent mtd_ooblayout_ops definition. Signed-off-by: Boris Brezillon Acked-by: Robert Jarzmik --- drivers/mtd/devices/docg3.c | 46 ++--- 1 file

[PATCH v3 21/52] mtd: nand: implement the default mtd_ooblayout_ops

2016-02-25 Thread Boris Brezillon
Replace the default nand_ecclayout definitions for large and small page devices with the equivalent mtd_ooblayout_ops. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 148 --- include/linux/mtd/nand.h

[PATCH v3 19/52] mtd: create an mtd_ooblayout_ops struct to ease ECC layout definition

2016-02-25 Thread Boris Brezillon
ECC layout definitions are currently exposed using the nand_ecclayout struct which embeds oobfree and eccpos arrays with predefined size. This approach was acceptable when NAND chips were providing relatively small OOB regions, but MLC and TLC now provide OOB regions of several hundreds of bytes,

[PATCH v3 18/52] mtd: docg3: use mtd_set_ecclayout() where appropriate

2016-02-25 Thread Boris Brezillon
Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon Acked-by: Robert Jarzmik --- drivers/mtd/devices/docg3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v3 17/52] mtd: onenand: use mtd_set_ecclayout() where appropriate

2016-02-25 Thread Boris Brezillon
Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon --- drivers/mtd/onenand/onenand_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v3 16/52] mtd: nand: use mtd_set_ecclayout() where appropriate

2016-02-25 Thread Boris Brezillon
Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/nand_base.c

[PATCH v3 14/52] mtd: add mtd_set_ecclayout() helper function

2016-02-25 Thread Boris Brezillon
Add an mtd_set_ecclayout() helper function to avoid direct accesses to the mtd->ecclayout field. This will ease future reworks of ECC layout definition. Signed-off-by: Boris Brezillon --- include/linux/mtd/mtd.h | 6 ++ 1 file changed, 6 insertions(+)

[PATCH v3 15/52] mtd: use mtd_set_ecclayout() where appropriate

2016-02-25 Thread Boris Brezillon
Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon --- drivers/mtd/mtdconcat.c | 2 +- drivers/mtd/mtdpart.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v3 11/52] mtd: nand: lpc32xx: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon

[PATCH v3 09/52] mtd: nand: fsl_ifc: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon

[PATCH v3 12/52] mtd: nand: omap2: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon

[PATCH v3 10/52] mtd: nand: gpmi: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon

[PATCH v3 13/52] mtd: onenand: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon

[PATCH v3 03/52] mtd: mtdswap: remove useless if (!mtd->ecclayout) test

2016-02-25 Thread Boris Brezillon
If the MTD device does not have OOB, the mtd->oobsize and mtd->oobavail fields are set to zero, and we are testing those values in the following test. Remove the useless if (!mtd->ecclayout) test. Signed-off-by: Boris Brezillon --- drivers/mtd/mtdswap.c | 8

[PATCH v3 06/52] mtd: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon

[PATCH v3 04/52] mtd: nand: simplify nand_bch_init() usage

2016-02-25 Thread Boris Brezillon
nand_bch_init() requires several arguments which could directly be deduced from the mtd device. Get rid of those useless parameters. nand_bch_init() is also requiring the caller to provide a proper eccbytes value, while this value could be deduced from the ecc.size and ecc.strength value.

[PATCH v3 02/52] mtd: create an mtd_oobavail() helper and make use of it

2016-02-25 Thread Boris Brezillon
Currently, all MTD drivers/sublayers exposing an OOB area are doing the same kind of test to extract the available OOB size based on the mtd_info and mtd_oob_ops structures. Move this common logic into an inline function and make use of it. Signed-off-by: Boris Brezillon

[PATCH v3 08/52] mtd: nand: atmel: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon

[PATCH v3 07/52] mtd: nand: core: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-25 Thread Boris Brezillon
The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed-off-by: Boris Brezillon

[PATCH v3 05/52] mtd: add mtd_ooblayout_xxx() helper functions

2016-02-25 Thread Boris Brezillon
In order to make the ecclayout definition completely dynamic we need to rework the way the OOB layout are defined and iterated. Create a few mtd_ooblayout_xxx() helpers to ease OOB bytes manipulation and hide ecclayout internals to their users. Signed-off-by: Boris Brezillon

[PATCH v3 00/52] mtd: rework ECC layout definition

2016-02-25 Thread Boris Brezillon
Hello, This patchset aims at getting rid of the nand_ecclayout limitations. struct nand_ecclayout is defining fixed eccpos and oobfree arrays which can only be increased by modifying the MTD_MAX_ECCPOS_ENTRIES_LARGE and MTD_MAX_OOBFREE_ENTRIES_LARGE macros. This approach forces us to modify the

[PATCH v3 01/52] mtd: kill the ecclayout->oobavail field

2016-02-25 Thread Boris Brezillon
ecclayout->oobavail is just redundant with the mtd->oobavail field. Moreover, it prevents static const definition of ecc layouts since the NAND framework is calculating this value based on the ecclayout->oobfree field. Signed-off-by: Boris Brezillon ---

[PATCH 07/16] staging: octeon-usb: rename cvmx_usb_perform_complete to cvmx_usb_complete

2016-02-25 Thread Aaro Koskinen
Rename cvmx_usb_perform_complete to cvmx_usb_complete. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 89 - 1 file changed, 42 insertions(+), 47 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c

[PATCH 12/16] staging: octeon-usb: move interrupt transfer handling into separate function

2016-02-25 Thread Aaro Koskinen
Move bulk transfer handling into a separate function to avoid deep indentation. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 74 + 1 file changed, 28 insertions(+), 46 deletions(-) diff --git

[PATCH 14/16] staging: octeon-usb: move next pipe selection into a separate function

2016-02-25 Thread Aaro Koskinen
Move next pipe selection into a separate function to avoid deep nesting. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 49 +++-- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git

[PATCH 16/16] staging: octeon-usb: update TODO

2016-02-25 Thread Aaro Koskinen
Update TODO. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/TODO | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/octeon-usb/TODO b/drivers/staging/octeon-usb/TODO index cc58a7e..2b29acc 100644 ---

  1   2   >