Re: [PATCH v2 05/51] mtd: add mtd_ooblayout_xxx() helper functions

2016-02-04 Thread Boris Brezillon
On Thu, 4 Feb 2016 11:06:28 +0100 Boris Brezillon wrote: > 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

[PATCH] staging: wilc1000: Fix compilation error when CONFIG_PM disabled

2016-02-04 Thread Glen Lee
Commit 73584a40d748 ("staging: wilc1000: add ops resuem/suspend/wakeup in cfg80211") causes following compilation error. This patch fixes this by using suspend/resume under CONFIG_PM. drivers/staging/wilc1000/wilc_wfi_cfgoperations.c: In function 'wilc_create_wiphy': >> drivers/staging/wilc1000/wi

[PATCH] Staging:iio:Remove exceptional & on function name

2016-02-04 Thread Bhumika Goyal
In this file,function names are otherwise used as pointers without &. Found using coccinelle. // @r@ identifier f; @@ f(...) { ... } @@ identifier r.f; @@ - &f + f // Signed-off-by: Bhumika Goyal --- drivers/staging/iio/impedance-analyzer/ad5933.c | 8 1 file changed, 4 insertions(+

[PATCH 5/8] staging: wilc1000: fix return type of wilc_send_config_pkt

2016-02-04 Thread Chaehyun Lim
wilc_send_config_pkt is returned 0 or -ETIMEDOUT according to return value of wilc_wlan_cfg_get or wilc_wlan_cfg_set. It is better to use int type to represent linux standard error code. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 5 +++-- 1 file changed, 3 inse

[PATCH 8/8] staging: wilc1000: rename counter in wilc_send_config_pkt

2016-02-04 Thread Chaehyun Lim
counter is used as for-loop control variable and indicating index of struct wid array. It is to improve readability by changing counter variable name as i because wilc_send_config_pkt has a similar argument name as count. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.

[PATCH 7/8] staging: wilc1000: remove initialization code of counter variable

2016-02-04 Thread Chaehyun Lim
There is no need to set to 0 for counter variable before entering next for-loop statement because counter is initialized again in for-loop statement, so just remove it. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 1 - 1 file changed, 1 deletion(-) diff --git a/

[PATCH 4/8] staging: wilc1000: fix return error code of wilc_deinit

2016-02-04 Thread Chaehyun Lim
It should be returned error code as -EFAULT instead of 0 when hif_drv is NULL. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_

[PATCH 2/8] staging: wilc1000: rename pstrCfgParamVal in wilc_hif_set_cfg

2016-02-04 Thread Chaehyun Lim
This patch renames pstrCfgParamVal to cfg_param to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/host_i

[PATCH 6/8] staging: wilc1000: use int type for counter variable

2016-02-04 Thread Chaehyun Lim
counter is used as for-loop control variable and indicating index of struct wid array so that it is better to use int type. There is no need to set to 0 when it is declared at the top of this function. It is initialized as 0 in for-loop statement. Signed-off-by: Chaehyun Lim --- drivers/staging/

[PATCH 3/8] staging: wilc1000: fix return type of wilc_deinit

2016-02-04 Thread Chaehyun Lim
This patch changes return type of wilc_deinit from s32 to int. The result variable gets return value from wilc_mq_send that has return type of int. It should be changed return type of this function as well as data type of result variable. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/

[PATCH 1/8] staging: wilc1000: fix return type of wilc_hif_set_cfg

2016-02-04 Thread Chaehyun Lim
This patch changes return type of wilc_hif_set_cfg from s32 to int. The result variable gets return value from wilc_mq_send that has data type of int. It should be changed return type of this function as well as data type of result variable. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc10

Your Contract/Inheritance Fund ATM CARD PIN is 1765.

2016-02-04 Thread PAYMENT DEPARTMENT OFFICE
Re:COMPENSATION Attention: Beneficiary Attn: Be informed that Your Contract/Inheritance Fund ATM CARD PIN is 1765. Your daily Card Limit is 10,000.00 USD per day. The Card is valid till December 2017. And the Total Amount in the ATM VISA Card is One Million United State Dollars. We await your

Re: [PATCH RESEND 70/70] staging: wilc1000: remove warnings line over 80 characters

2016-02-04 Thread Joe Perches
On Thu, 2016-02-04 at 18:24 +0900, Glen Lee wrote: > From: Leo Kim > > This patch removes the warnings reported by checkpatch.pl > for line over 80 characters. > > Signed-off-by: Leo Kim > --- >  drivers/staging/wilc1000/coreconfigurator.c | 11 +++ >  1 file changed, 7 insertions(+), 4

[PATCH V2 net-next] hv_netvsc: cleanup netdev feature flags for netvsc

2016-02-04 Thread Simon Xiao
1. Adding NETIF_F_TSO6 feature flag; 2. Adding NETIF_F_HW_CSUM. NETIF_F_IPV6_CSUM and NETIF_F_IP_CSUM are being deprecated; 3. Cleanup the coding style of flag assignment by using macro. Signed-off-by: Simon Xiao Reviewed-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/net/hyperv/

Re: [RFC PATCH 1/2] iio: hmc5843 Add channel attribute for bias configuration

2016-02-04 Thread Lars-Peter Clausen
On 02/04/2016 03:50 PM, Cristina Moraru wrote: > Replace non standard meas_conf attribute with the standard IIO > calibbias attribute. > > API for setting bias measurement configuration: > > 0 - Normal measurement configuration (default): In normal measurement > configuration the device follo

Re: [PATCH] staging: rdma: use setup_timer() api

2016-02-04 Thread ira.weiny
On Thu, Feb 04, 2016 at 09:38:32AM -0600, Mike Marciniszyn wrote: > > Subject: [PATCH] staging: rdma: use setup_timer() api > > > > From: Hari Prasath Gujulan Elango > > > > Doug, > > We are going to add this to the rdmavt/hfi1/qib work, with the appropriate > authorship credit. Otherwise,

RE: [PATCH] staging: rdma: use setup_timer() api

2016-02-04 Thread Marciniszyn, Mike
> Subject: [PATCH] staging: rdma: use setup_timer() api > > From: Hari Prasath Gujulan Elango > Doug, We are going to add this to the rdmavt/hfi1/qib work, with the appropriate authorship credit. Otherwise, there will certainly be conflicts. Hari, Note that ehca is going away. In additio

[RFC PATCH 1/2] iio: hmc5843 Add channel attribute for bias configuration

2016-02-04 Thread Cristina Moraru
Replace non standard meas_conf attribute with the standard IIO calibbias attribute. API for setting bias measurement configuration: 0 - Normal measurement configuration (default): In normal measurement configuration the device follows normal measurement flow. Pins BP and BN are left float

[RFC PATCH 2/2] iio: hmc5843: Add attribute for available bias values

2016-02-04 Thread Cristina Moraru
Add static attribute calibbias_available to show available configurations for the bias current. API for setting bias measurement configuration: 0 - Normal measurement configuration (default): In normal measurement configuration the device follows normal measurement flow. Pins BP and BN ar

[PATCHv2] staging: rdma: use setup_timer() api

2016-02-04 Thread Gujulan Elango, Hari Prasath (H.)
From: Hari Prasath Gujulan Elango Replace the timer API's to initialize a timer & then assign the callback function by the setup_timer() API. Signed-off-by: Hari Prasath Gujulan Elango --- v2: Unwanted text present in the commit comments sections.Removed them --- drivers/staging/rdma/e

Re: [PATCH v3 06/11] staging/android: turn fence_info into a __u64 pointer

2016-02-04 Thread Maarten Lankhorst
Op 04-02-16 om 14:05 schreef Gustavo Padovan: > 2016-02-04 Maarten Lankhorst : > >> Op 03-02-16 om 21:09 schreef Gustavo Padovan: >>> Hi Maarten, >>> >>> 2016-02-03 Maarten Lankhorst : >>> Op 03-02-16 om 14:25 schreef Gustavo Padovan: > From: Gustavo Padovan > > Turn sync_fence_in

[PATCH] staging: rdma: use setup_timer() api

2016-02-04 Thread Gujulan Elango, Hari Prasath (H.)
From: Hari Prasath Gujulan Elango Date: Thu, 4 Feb 2016 18:46:31 +0530 Replace the timer API's to initialize a timer & then assign the callback function by the setup_timer() API. Signed-off-by: Hari Prasath Gujulan Elango --- drivers/staging/rdma/ehca/ehca_main.c | 3 +-- drivers/staging/rdma/

Re: [PATCH] staging: amso1100: fix format string for 64-bit phys_addr

2016-02-04 Thread Arnd Bergmann
On Thursday 04 February 2016 07:15:05 Doug Ledford wrote: > I've sent off a deletion of this file to Linus already, sorry. > Even better, thanks! Arnd ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/m

Re: [PATCH v3 06/11] staging/android: turn fence_info into a __u64 pointer

2016-02-04 Thread Gustavo Padovan
2016-02-04 Maarten Lankhorst : > Op 03-02-16 om 21:09 schreef Gustavo Padovan: > > Hi Maarten, > > > > 2016-02-03 Maarten Lankhorst : > > > >> Op 03-02-16 om 14:25 schreef Gustavo Padovan: > >>> From: Gustavo Padovan > >>> > >>> Turn sync_fence_info into __u64 type enable us to extend the struct

Re: [PATCH] staging: amso1100: fix format string for 64-bit phys_addr

2016-02-04 Thread Doug Ledford
On 02/01/2016 11:34 AM, Arnd Bergmann wrote: > The amso1100 driver prints a phys_addr_t by casting it to a pointer, > which causes a warning when phys_addr_t is 64-bit and pointers > are 32-bit: > > drivers/staging/rdma/amso1100/c2.c: In function 'c2_rx_error': > drivers/staging/rdma/amso1100/c2.c

[PATCH v2 42/51] mtd: nand: pxa3xx: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v2 41/51] mtd: nand: omap2: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nan

[PATCH v2 50/51] mtd: nand: kill the ecc->layout field

2016-02-04 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 | 8 drivers/mtd/nand/nand_bch.c | 9 - include/linux/mtd/nand.h | 2 -- 3 files changed, 19 deletions(-) diff --g

[PATCH v2 51/51] mtd: kill the nand_ecclayout struct

2016-02-04 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 ++--- drivers/mtd/mtdcore.c | 120

[PATCH v2 47/51] mtd: nand: vf610: switch to mtd_ooblayout_ops

2016-02-04 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(-) diff --git a/drivers/mtd/nand/vf610_nfc.

[PATCH v2 45/51] mtd: nand: sm_common: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v2 40/51] mtd: nand: mxc: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/na

[PATCH v2 29/51] mtd: nand: davinci: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v2 43/51] mtd: nand: s3c2410: switch to mtd_ooblayout_ops

2016-02-04 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 --git a/drivers/mtd/nand/s3c2410.c b/dr

[PATCH v2 46/51] mtd: nand: sunxi: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v2 44/51] mtd: nand: sh_flctl: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v2 49/51] staging: mt29f_spinand: switch to mtd_ooblayout_ops

2016-02-04 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 --git a/drivers/staging/mt29f_spinand/m

[PATCH v2 22/51] mtd: nand: bch: switch to mtd_ooblayout_ops

2016-02-04 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 a/drivers/mtd/nand/nand_bch.c b/drivers/mtd/n

[PATCH v2 23/51] mtd: nand: sharpsl: switch to mtd_ooblayout_ops

2016-02-04 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 +- include/linux/mtd/sharpsl.h | 2 +- 3 file

[PATCH v2 36/51] mtd: nand: gpmi: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v2 34/51] mtd: nand: fsl_ifc: switch to mtd_ooblayout_ops

2016-02-04 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 | 232 1 file changed, 67 insertions(+), 165 deletions(-) diff --git a/drivers/mtd/nan

[PATCH v2 48/51] mtd: onenand: switch to mtd_ooblayout_ops

2016-02-04 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 | 154 ++--- include/linux/mtd/onenand

[PATCH v2 39/51] mtd: nand: lpc32xx: switch to mtd_ooblayout_ops

2016-02-04 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 +++--- 2 files

[PATCH v2 27/51] mtd: nand: brcm: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/na

[PATCH v2 37/51] mtd: nand: hisi504: switch to mtd_ooblayout_ops

2016-02-04 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 | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/hisi504_nand.c

[PATCH v2 15/51] mtd: use mtd_set_ecclayout() where appropriate

2016-02-04 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 a/drivers/mtd/mtdconcat.c b/drivers/mtd/mtdco

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

2016-02-04 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, w

[PATCH v2 32/51] mtd: nand: docg4: switch to mtd_ooblayout_ops

2016-02-04 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 --git a/drivers/mtd/nand/docg4.c b/drive

[PATCH v2 18/51] mtd: docg3: use mtd_set_ecclayout() where appropriate

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

[PATCH v2 21/51] mtd: nand: implement the default mtd_ooblayout_ops

2016-02-04 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 | 147 --- include/linux/mtd/nand.h | 3 + 2 files changed, 99 inse

[PATCH v2 31/51] mtd: nand: diskonchip: switch to mtd_ooblayout_ops

2016-02-04 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 | 38 +- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/nand/disko

[PATCH v2 35/51] mtd: nand: fsmc: switch to mtd_ooblayout_ops

2016-02-04 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 | 300 --- 1 file changed, 84 insertions(+), 216 deletions(-) diff --git a/drivers/mtd/nan

[PATCH v2 13/51] mtd: onenand: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-04 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 --- drivers/mtd/onenand/onen

[PATCH v2 17/51] mtd: onenand: use mtd_set_ecclayout() where appropriate

2016-02-04 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 a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_b

[PATCH v2 33/51] mtd: nand: fsl_elbc: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v2 28/51] mtd: nand: cafe: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v2 20/51] mtd: docg3: switch to mtd_ooblayout_ops

2016-02-04 Thread Boris Brezillon
Replace the nand_ecclayout definition by the equivalent mtd_ooblayout_ops definition. Signed-off-by: Boris Brezillon --- drivers/mtd/devices/docg3.c | 38 +- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/devices/docg3.c b/drivers/m

[PATCH v2 30/51] mtd: nand: denali: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v2 38/51] mtd: nand: jz4780: switch to mtd_ooblayout_ops

2016-02-04 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 a/drivers/mtd/nand/jz4780_nand.c b/drivers

[PATCH v2 26/51] mtd: nand: bf5xx: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v2 14/51] mtd: add mtd_set_ecclayout() helper function

2016-02-04 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(+) diff --git a/include/linux/mtd/mtd.h b/

[PATCH v2 16/51] mtd: nand: use mtd_set_ecclayout() where appropriate

2016-02-04 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 b/drivers/mtd/nand/nand_base.c index e01a9b5

[PATCH v2 06/51] mtd: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-04 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 --- drivers/mtd/mtdchar.c |

[PATCH v2 25/51] mtd: nand: atmel: switch to mtd_ooblayout_ops

2016-02-04 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 deletions(-) diff --git a/drivers/mtd/nand

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

2016-02-04 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 --- drivers/mtd/nand/lpc32xx

[PATCH v2 05/51] mtd: add mtd_ooblayout_xxx() helper functions

2016-02-04 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 --- drivers/mtd/mtd

[PATCH v2 01/51] mtd: kill the ecclayout->oobavail field

2016-02-04 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 --- drivers/mtd/devices/docg3.c

[PATCH v2 04/51] mtd: nand: simplify nand_bch_init() usage

2016-02-04 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. Fallback

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

2016-02-04 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 --- drivers/mtd/nand/fsl_ifc

[PATCH v2 24/51] mtd: nand: jz4740: switch to mtd_ooblayout_ops

2016-02-04 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 +++-- drivers/mtd/nand/jz4740

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

2016-02-04 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 Suggested-by: Priit Laes

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

2016-02-04 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 --- drivers/mtd/nand/omap2.c

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

2016-02-04 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 1 file changed, 8 deletions(

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

2016-02-04 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 --- drivers/mtd/nand/atmel_n

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

2016-02-04 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 --- drivers/mtd/nand/nand_ba

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

2016-02-04 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 --- drivers/mtd/nand/gpmi-na

[PATCH v2 00/51] mtd: rework ECC layout definition

2016-02-04 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 ma

Re: [PATCH v3 06/11] staging/android: turn fence_info into a __u64 pointer

2016-02-04 Thread Maarten Lankhorst
Op 03-02-16 om 21:09 schreef Gustavo Padovan: > Hi Maarten, > > 2016-02-03 Maarten Lankhorst : > >> Op 03-02-16 om 14:25 schreef Gustavo Padovan: >>> From: Gustavo Padovan >>> >>> Turn sync_fence_info into __u64 type enable us to extend the struct in the >>> future without breaking the ABI. >>> >>

[PATCH RESEND 70/70] staging: wilc1000: remove warnings line over 80 characters

2016-02-04 Thread Glen Lee
From: Leo Kim This patch removes the warnings reported by checkpatch.pl for line over 80 characters. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.

[PATCH RESEND 69/70] staging: wilc1000: remove unnecessary log message using GENERIC_DBG tag

2016-02-04 Thread Glen Lee
From: Chris Park This patch remove unnecessary log message using GENERIC_DBG tag. Needed log messages has changed netdev_dbg from PRINT_D. And removes variables that were used to log message. Signed-off-by: Chris Park Signed-off-by: Leo Kim --- drivers/staging/wilc1000/host_interface.c

[PATCH RESEND 68/70] staging: wilc1000: remove unused debug tag

2016-02-04 Thread Glen Lee
From: Chris Park This patch remove unused debug tag INT_DBG, LOCK_DBG, BUS_DBG, MEM_DBG and FIRM_DBG Signed-off-by: Chris Park Signed-off-by: Leo Kim --- drivers/staging/wilc1000/linux_wlan_common.h | 15 --- drivers/staging/wilc1000/wilc_debugfs.c | 5 +++-- 2 files changed

[PATCH RESEND 67/70] staging: wilc1000: remove unused log message using the RX_DBG tag

2016-02-04 Thread Glen Lee
From: Chris Park This patch remove unused log message using the RX_DBG tag Signed-off-by: Chris Park Signed-off-by: Leo Kim --- drivers/staging/wilc1000/linux_wlan_common.h | 2 -- drivers/staging/wilc1000/wilc_debugfs.c | 2 +- drivers/staging/wilc1000/wilc_wlan.c | 5 - dri

[PATCH RESEND 61/70] staging: wilc1000: renames u32Tsf of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames u32Tsf variable to tsf_lo. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) d

[PATCH RESEND 65/70] staging: wilc1000: renames u64Tsf of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames u64Tsf variable to tsf_hi. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 +++--- 3 files changed, 5 insertions

[PATCH RESEND 64/70] staging: wilc1000: renames strRssi of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames strRssi variable to str_rssi. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 13 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/stag

[PATCH RESEND 59/70] staging: wilc1000: renames bNewNetwork of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames bNewNetwork variable to new_network. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 3 files changed, 4 in

[PATCH RESEND 66/70] staging: wilc1000: remove unnecessary wilc_rx_complete function

2016-02-04 Thread Glen Lee
From: Chris Park This patch remove unnecessary wilc_rx_complete function because this function only print unused log message. remove unused has_packet variable nomore. Signed-off-by: Chris Park Signed-off-by: Leo Kim --- drivers/staging/wilc1000/linux_wlan.c | 5 - drivers/staging

[PATCH RESEND 62/70] staging: wilc1000: renames struct connect_resp_info variables

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames to avoid camelcase changes follow are: - pu8IEs to ies - u16IEsLen to ies_len Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 7 +++--- drivers/staging/wilc1000/coreconfigurator.h | 4 +-- drivers/staging/wilc1000/host_i

[PATCH RESEND 63/70] staging: wilc1000: renames pJoinParams of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames pJoinParams variable to join_params. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/driver

[PATCH RESEND 60/70] staging: wilc1000: renames u8Found of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames u8Found variable to found. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wilc1000

[PATCH RESEND 58/70] staging: wilc1000: renames struct connect_resp_info variables

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames to avoid camelcase changes follow are: - u32TimeRcvdInScanCached to time_scan_cached - u32TimeRcvdInScan to time_scan Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.h | 4 ++-- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1

[PATCH RESEND 54/70] staging: wilc1000: renames au8bssid of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames au8bssid variable to bssid. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 10 +++ drivers/staging/wilc1000

[PATCH RESEND 56/70] staging: wilc1000: renames u8DtimPeriod of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames u8DtimPeriod variable to dtim_period. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/wilc10

[PATCH RESEND 57/70] staging: wilc1000: renames u8channel of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames u8channel variable to ch. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 14 +++--- 3 files changed, 9

[PATCH RESEND 55/70] staging: wilc1000: renames u16BeaconPeriod of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames u16BeaconPeriod variable to beacon_period. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/w

[PATCH RESEND 51/70] staging: wilc1000: renames u16CapInfo of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames u16CapInfo variable to cap_info. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/wilc1000

[PATCH RESEND 43/70] staging: wilc1000: remove unused log message using the HOSTINF_DBG tag

2016-02-04 Thread Glen Lee
From: Chris Park This patch remove unused log message using the HOSTINF_DBG tag Signed-off-by: Chris Park Signed-off-by: Leo Kim --- drivers/staging/wilc1000/host_interface.c | 198 +- drivers/staging/wilc1000/linux_wlan_common.h | 2 - drivers/staging/wilc1

[PATCH RESEND 52/70] staging: wilc1000: renames au8ssid of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames au8ssid variable to ssid. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 3 ++- drivers/staging/wilc1000/wilc_

[PATCH RESEND 53/70] staging: wilc1000: renames u8SsidLen of connect_resp_info structure

2016-02-04 Thread Glen Lee
From: Leo Kim This patch renames u8SsidLen variable to ssid_len. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/w

[PATCH RESEND 47/70] staging: wilc1000: remove typedef from tstrConnectRespInfo

2016-02-04 Thread Glen Lee
From: Leo Kim This patch removes typedef from the struct tstrConnectRespInfo and renames it to connect_resp_info. Signed-off-by: Leo Kim --- drivers/staging/wilc1000/coreconfigurator.c | 6 +++--- drivers/staging/wilc1000/coreconfigurator.h | 6 +++--- drivers/staging/wilc1000/host_interface.c

  1   2   >