[PATCH] x86/mm: fix slow_virt_to_phys() for X86_PAE again

2016-02-25 Thread Dexuan Cui
"d1cd12108346: x86, pageattr: Prevent overflow in slow_virt_to_phys() for X86_PAE" was unintentionally removed by the recent "34437e67a672: x86/mm: Fix slow_virt_to_phys() to handle large PAT bit". And, the variable 'phys_addr' was defined as "unsigned long" by mistake -- it should be "phys_addr

Re: [1/4] rtlwifi: Prepare for reworking 5G channels

2016-02-25 Thread Kalle Valo
> There are 3 drivers in this family that have 5G radios. Each of them > defines local copies of the available channels. This patch adds the > two arrays to the core driver. > > Signed-off-by: Larry Finger Thanks, 4 patches applied to wireless-drivers-next.git: 9696a159c398 rtlwifi: Prepare fo

Re: [PATCH] PCI: Remove usage of pci_domain_nr when the PCI bus doesn't yet exist

2016-02-25 Thread Bjorn Helgaas
On Wed, Feb 24, 2016 at 06:56:36PM +, ja...@microsoft.com wrote: > From: Jake Oshins > > This patch fixes a race condition in this driver. Using the > function pci_domain_nr() only works if the PCI bus has already > been fully created. This patch just deletes one call site, > as it was in d

Re: [RFC 26/29] dma-buf/fence: remove pointless fence_timeline_signal at destroy phase

2016-02-25 Thread Gustavo Padovan
2016-02-09 Tom Cherry : > On Fri, Jan 15, 2016 at 3:42 PM, Greg Hackmann wrote: > > On 01/15/2016 10:02 AM, Gustavo Padovan wrote: > >> > >> Patches 27 and 28 are attempt to fix that. I assumed that if some code is > >> calling fence_timeline_destroy() it wants to stop everything so I > >> worked

Re: [PATCH] x86/mm: fix slow_virt_to_phys() for X86_PAE again

2016-02-25 Thread Toshi Kani
On Thu, 2016-02-25 at 01:58 -0800, Dexuan Cui wrote: > "d1cd12108346: x86, pageattr: Prevent overflow in slow_virt_to_phys() for > X86_PAE" > was unintentionally removed by the recent > "34437e67a672: x86/mm: Fix slow_virt_to_phys() to handle large PAT bit". > > And, the variable 'phys_addr' was d

[PATCH] rtlwifi: Fix size of wireless mode variable

2016-02-25 Thread Larry Finger
Smatch reports the following warning: CHECK drivers/net/wireless/realtek/rtlwifi/rc.c drivers/net/wireless/realtek/rtlwifi/rc.c:144 _rtl_rc_rate_set_series() warn: impossible condition '(wireless_mode == 256) => (0-255 == 256)' This warning arises because commit acc6907b87a9 ("rtlwifi: Fix w

RECONFIRM YOUR DETAILS TO ME,,,,,

2016-02-25 Thread MR THOMAS JAMES
Dearest Beloved, I am Thomas James., A france national,I was browsing and I saw your e-mail, So i decided to write you if your e-mail is real, I have been diagnosed with esophageal cancer. It has defiled all forms of medical treatment, and right now I have only about a few months to live. I am

RECONFIRM YOUR DETAILS TO ME,,,,,

2016-02-25 Thread MR THOMAS JAMES
Dearest Beloved, I am Thomas James., A france national,I was browsing and I saw your e-mail, So i decided to write you if your e-mail is real, I have been diagnosed with esophageal cancer. It has defiled all forms of medical treatment, and right now I have only about a few months to live. I am

[PATCH] staging: add TODO for rtl8192u

2016-02-25 Thread Xose Vazquez Perez
BTW, people should not waste time and energy on this driver. There is a replacement using the kernel wireless stack at: https://github.com/chunkeey/rtl8192su Cc: Jerry Chuang Cc: Mauro Carvalho Chehab Cc: Greg Kroah-Hartman Cc: Christian Lamparter Cc: driverdev-devel@linuxdriverproject.org Sig

Re: [PATCH] staging: add TODO for rtl8192u

2016-02-25 Thread Christian Lamparter
Hello, On Thursday, February 25, 2016 07:54:16 PM Xose Vazquez Perez wrote: > BTW, people should not waste time and energy on this driver. > There is a replacement using the kernel wireless stack at: > https://github.com/chunkeey/rtl8192su I think rtl8192u is for a different device. As far as I c

[PATCH net-next] hv_netvsc: add ethtool support for set and get of settings

2016-02-25 Thread Simon Xiao
This patch allows the user to set and retrieve speed and duplex of the hv_netvsc device via ethtool. Example: $ ethtool eth0 Settings for eth0: ... Speed: Unknown! Duplex: Unknown! (255) ... $ ethtool -s eth0 speed 1000 duplex full $ ethtool eth0 Settings for eth0: ... Speed: 1000Mb/s

Re: [PATCH v3] staging/android/ion : fix a race condition in the ion driver

2016-02-25 Thread Laura Abbott
On 02/23/2016 08:38 PM, EunTaik Lee wrote: > There is a use-after-free problem in the ion driver. > This is caused by a race condition in the ion_ioctl() > function. > > A handle has ref count of 1 and two tasks on different > cpus calls ION_IOC_FREE simultaneously. > > cpu 0

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

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

[PATCH 01/16] staging: octeon-usb: use preferred style for NULL comparison

2016-02-25 Thread Aaro Koskinen
Use preferred coding style for NULL comparison. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c index 1ec8906..27a75

[PATCH 08/16] staging: octeon-usb: rename STATUS_SUCCESS to STATUS_OK

2016-02-25 Thread Aaro Koskinen
Rename STATUS_SUCCESS to STATUS_OK. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c index

[PATCH 11/16] staging: octeon-usb: move bulk 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 | 38 + 1 file changed, 38 insertions(+) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/stagi

[PATCH 04/16] staging: octeon-usb: pass transfer type to find_ready_pipe

2016-02-25 Thread Aaro Koskinen
Since we always search the same list, we can just pass the transfer type. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-u

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

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

[PATCH 06/16] staging: octeon-usb: rename cvmx_usb_complete to cvmx_usb_status

2016-02-25 Thread Aaro Koskinen
Rename cvmx_usb_complete to cvmx_usb_status. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 105 1 file changed, 52 insertions(+), 53 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octe

[PATCH 15/16] staging: octeon-usb: avoid an overlong line

2016-02-25 Thread Aaro Koskinen
Avoid an overlong line. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c index 298fcaa..17442b3 100644 --- a/drivers/

[PATCH 03/16] staging: octeon-usb: eliminate redundant parameter from find_ready_pipe

2016-02-25 Thread Aaro Koskinen
current_frame always equals usb->frame_number. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c index

[PATCH 02/16] staging: octeon-usb: align split lines to match open parenthesis

2016-02-25 Thread Aaro Koskinen
Align split lines to match open parenthesis. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 170 +++- 1 file changed, 81 insertions(+), 89 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octe

[PATCH 09/16] staging: octeon-usb: fold cvmx_usb_state into octeon_hcd

2016-02-25 Thread Aaro Koskinen
Fold cvmx_usb_state into octeon_hcd. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 255 +++- 1 file changed, 118 insertions(+), 137 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd

[PATCH 05/16] staging: octeon-usb: simplify if statement

2016-02-25 Thread Aaro Koskinen
Simplify if statement to avoid deep nesting. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon-usb/octeon-hcd.c | 33 +++-- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octe

[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 a/drivers/staging/octeon-usb/octeon-hcd.c b/dri

[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 a/drivers/staging/octeon-usb/octeon-hcd.c

[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 --- a/drivers/staging/octeon-usb/TODO +++ b/dri

[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 b/drivers/staging/octeo

[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 --- drivers/mtd/devices/docg3.c

[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 ma

[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 --- drivers/mtd/mtd

[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 Suggested-by: Priit Laes

[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 --- drivers/mtd/nand/atmel_n

[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 --- drivers/mtd/nand/nand_ba

[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. Fallback

[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 1 file changed, 8 deletions(

[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 --- drivers/mtd/mtdchar.c |

[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 --- drivers/mtd/onenand/onen

[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 --- drivers/mtd/nand/lpc32xx

[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 --- drivers/mtd/nand/fsl_ifc

[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 --- drivers/mtd/nand/omap2.c

[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 --- drivers/mtd/nand/gpmi-na

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

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

[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 b/drivers/mtd/nand/nand_base.c index 17504f2

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

[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(-) diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/device

[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, w

[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 changed, 35 insertions(+), 11 deletions(-) diff --git a/drive

[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 | 3 + 2 files changed, 99 inse

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

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

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

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

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

[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 +++-- drivers/mtd/nand/jz4740

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

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

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

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

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

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

[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: http://review.whamcloud.com/

[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(-) diff --git a/drivers/stagin

[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: https://jira.hpdd.intel.com/browse/LU-6204 Reviewed-on: http://review.whamcloud.com/1678

[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 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6204 Revi

[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: http://review.whamcloud.com/16787 Reviewed-by: John L. Hammond R

[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 Dilg

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

[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 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU

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

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

[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 +++- include/linux/mtd/fsmc.h | 18

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

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

[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 +++--- 2 files

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

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

[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 --git a/drivers/mtd/nand/hisi504_nand.c

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

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

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

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

[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 --git a/drivers/staging/mt29f_spinand/m

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

[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 ++--- include/linux/mtd/onenand

[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 files changed, 18 deletions(-) diff --gi

[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 ++--- drivers/mtd/mtdcore.c | 117

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 > MTD_MAX_OOB

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 which > > can only be

[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). Sign

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

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 tree, so I've stopped applying this series here

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 missi

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 Drokin > > This patch

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 are not connected to the roo

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 NF

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 07:13:52

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 o

[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 | 6 +- drivers/staging/lustre/lustre/llite/f

  1   2   >