[PATCH 28/60] mtd: nand: denali: drop owner assignment

2015-03-03 Thread Frans Klaver
Owner is automatically set by mtdcore. Make use of that. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/denali.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index f44c606..16e61de 100644 --- a/drivers/mtd/nand

[PATCH 30/60] mtd: nand: fsl_elbc_nand: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/fsl_elbc_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand

[PATCH 13/60] mtd: maps: ixp4xx: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/maps/ixp4xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/maps/ixp4xx.c b

[PATCH 46/60] mtd: nand: plat_nand: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner and name set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/plat_nand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 39/60] mtd: nand: mpc5121_nfc: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/mpc5121_nfc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c index 1f12e5b..b97c371 100644 --- a/drivers/mtd

[PATCH 41/60] mtd: nand: ndfc: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/ndfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand

[PATCH 47/60] mtd: nand: pxa3xx_nand: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/pxa3xx_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/pxa3xx_nand.c

[PATCH 45/60] mtd: nand: pasemi_nand: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/pasemi_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/pasemi_nand.c

[PATCH 07/60] mtd: devices: spear_smi: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/devices/spear_smi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c index 508bab3..015a1cf 100644

[PATCH 16/60] mtd: maps: physmap: drop owner assignment

2015-03-03 Thread Frans Klaver
Owner is automatically set by mtdcore. Make use of that. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/maps/physmap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c index 4305fd6..cc2adbb 100644 --- a/drivers/mtd

[PATCH 17/60] mtd: maps: physmap_of: drop owner assignment

2015-03-03 Thread Frans Klaver
Owner is automatically set by mtdcore. Make use of that. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/maps/physmap_of.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index ff26e97..10954f7 100644

[PATCH 02/60] mtd: core: set some defaults when dev.parent is set

2015-03-03 Thread Frans Klaver
If a parent device is set, add_mtd_device() has enough knowledge to fill in some sane default values for the module name and owner. Do so if they aren't already set. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/mtdcore.c | 9 + 1 file changed, 9 insertions(+) diff

[PATCH 06/60] mtd: devices: mtd_dataflash: drop owner assignment

2015-03-03 Thread Frans Klaver
Owner is automatically set by mtdcore. Make use of that. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/devices/mtd_dataflash.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index 0099aba..ca5ae8e

[PATCH 26/60] mtd: nand: cafe_nand: drop owner assignment

2015-03-03 Thread Frans Klaver
Owner is automatically set by mtdcore. Make use of that. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/cafe_nand.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c index 9a0f45f..aa1dc55 100644 --- a/drivers

[PATCH 12/60] mtd: maps: intel_vr_nor: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/maps/intel_vr_nor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/maps

[PATCH 29/60] mtd: nand: docg4: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/docg4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/docg4.c b/drivers

[PATCH 24/60] mtd: nand: bcm47xxnflash: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/bcm47xxnflash/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand

[PATCH 25/60] mtd: nand: bf5xx_nand: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/bf5xx_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/bf5xx_nand.c b

[PATCH 23/60] mtd: nand: au1550nd: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/au1550nd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/au1550nd.c b

[PATCH 11/60] mtd: maps: gpio-addr-flash: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/maps/gpio-addr-flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/maps/gpio-addr-flash.c b/drivers/mtd/maps/gpio-addr-flash.c index 2fb3460

[PATCH 09/60] mtd: lpddr: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/lpddr/lpddr2_nvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/lpddr/lpddr2_nvm.c b/drivers/mtd/lpddr/lpddr2_nvm.c index 063cec4..2342277 100644 --- a/drivers

[PATCH 54/60] mtd: nand: tmio_nand: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/tmio_nand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index fb8fd35..befddf0 100644 --- a/drivers/mtd/nand

[PATCH 57/60] mtd: onenand: omap2: drop owner and name assignment

2015-03-03 Thread Frans Klaver
Owner and name are automatically set by mtdcore. Make use of that. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/onenand/omap2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c index 646ddd6..3e02856 100644

[PATCH 37/60] mtd: nand: jz4740_nand: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/jz4740_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/jz4740_nand.c

[PATCH 27/60] mtd: nand: davinci_nand: drop owner and name assignment

2015-03-03 Thread Frans Klaver
Owner and name are automatically set by mtdcore. Make use of that. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/davinci_nand.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index feb6d18..78e0c4d

[PATCH 32/60] mtd: nand: fsl_upm: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/fsl_upm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd

[PATCH 33/60] mtd: nand: fsmc_nand: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/fsmc_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/fsmc_nand.c b

[PATCH 38/60] mtd: nand: lpc32xx_mlc: drop owner assignment

2015-03-03 Thread Frans Klaver
Owner is automatically set by mtdcore. Make use of that. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/lpc32xx_mlc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/lpc32xx_mlc.c b/drivers/mtd/nand/lpc32xx_mlc.c index 79c3b78..65b7e03 100644

[PATCH 34/60] mtd: nand: gpio: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd

[PATCH 40/60] mtd: nand: mxc_nand: drop owner assignment

2015-03-03 Thread Frans Klaver
Owner is automatically set by mtdcore. Make use of that. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/mxc_nand.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index a8f550f..a62284c 100644 --- a/drivers/mtd

[PATCH 22/60] mtd: nand: atmel_nand: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/atmel_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel_nand.c b

[PATCH 21/60] mtd: maps: sa1100-flash: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Incidentally, it seems the owner field in the concatenated mtds is not actually used, so this shouldn't make much of a difference anyway. Signed-off-by: Frans Klaver franskla

[PATCH 20/60] mtd: maps: rbtx4939-flash: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/maps/rbtx4939-flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/maps

[PATCH 04/60] mtd: devices: docg3: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/devices/docg3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/devices/docg3.c b

[PATCH 00/60] Fix mtds not showing up in sysfs

2015-03-03 Thread Frans Klaver
/generic The rest is untested. If you have suggestions for me to compile-test most of them for a next run, I'd be much obliged. Thanks for having a go at your favorite MTD, Frans [1] https://lkml.org/lkml/2014/5/26/586 Frans Klaver (60): mtd: core: tone down suggestion that dev.parent should

[PATCH 59/60] mtd: spi-nor: fsl-quadspi: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/spi-nor/fsl-quadspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c index 1c7308c..91b9d3f 100644

[PATCH 55/60] mtd: nand: txx9ndfmc: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/txx9ndfmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/txx9ndfmc.c b

[PATCH 51/60] mtd: nand: sharpsl: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/sharpsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/sharpsl.c b

[PATCH 08/60] mtd: devices: sst251: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/devices/sst25l.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/devices

[PATCH 14/60] mtd: maps: lantiq-flash: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/maps/lantiq-flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/maps/lantiq

[PATCH 44/60] mtd: nand: orion_nand: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/nand/orion_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/orion_nand.c b

[PATCH 15/60] mtd: maps: latch-addr-flash: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/maps/latch-addr-flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/maps

[PATCH 03/60] mtd: devices: bcm47xxflash: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. While at it, make use of the default owner value set by mtdcore. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/devices/bcm47xxsflash.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/mtd

[PATCH 05/60] mtd: devices: m25p80: show device in sysfs

2015-03-03 Thread Frans Klaver
Fix a bug where mtd devices aren't shown in sysfs. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/devices/m25p80.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 85e35467..48eee8f 100644 --- a/drivers/mtd

[PATCH 01/60] mtd: core: tone down suggestion that dev.parent should be set

2015-03-03 Thread Frans Klaver
actually provide a parent device to link to. That means we cannot WARN_ON() here, as it would trigger false positives. Make the comment a bit less firm in its assertion that dev.parent should be set. Signed-off-by: Frans Klaver franskla...@gmail.com --- drivers/mtd/mtdcore.c | 2 +- 1 file changed, 1

[TRIVIAL PATCH] init/main: s,situaiton,situation,

2015-02-23 Thread Frans Klaver
Fix incorrect spelling of situation. Signed-off-by: Frans Klaver --- init/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index 6f0f1c5f..9d353ce 100644 --- a/init/main.c +++ b/init/main.c @@ -143,7 +143,7 @@ EXPORT_SYMBOL_GPL

[TRIVIAL PATCH] init/main: s,situaiton,situation,

2015-02-23 Thread Frans Klaver
Fix incorrect spelling of situation. Signed-off-by: Frans Klaver franskla...@gmail.com --- init/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index 6f0f1c5f..9d353ce 100644 --- a/init/main.c +++ b/init/main.c @@ -143,7 +143,7

Re: The kernel's ctype

2015-02-12 Thread Frans Klaver
On Wed, Feb 4, 2015 at 12:18 PM, Rasmus Villemoes wrote: > Hi, > > The kernel's ctype is almost, but not quite, equivalent to latin1. Apart > from whether one wants to include the C1 control chars (0x80-0x9f), > there are a few other differences. For example, 0xb5 (MICRO SIGN) is, at > least

Re: The kernel's ctype

2015-02-12 Thread Frans Klaver
On Wed, Feb 4, 2015 at 12:18 PM, Rasmus Villemoes li...@rasmusvillemoes.dk wrote: Hi, The kernel's ctype is almost, but not quite, equivalent to latin1. Apart from whether one wants to include the C1 control chars (0x80-0x9f), there are a few other differences. For example, 0xb5 (MICRO SIGN)

Re: divide by zero oops in kernel 3.17.7

2015-02-05 Thread Frans Klaver
On Thu, Feb 5, 2015 at 9:39 AM, Frans Klaver wrote: > On Thu, Feb 5, 2015 at 5:08 AM, william wrote: >> so it seems that i m hitting this bug : >> https://lkml.org/lkml/2014/4/29/497 >> >> + if (!divisor) >> + divisor = 1; >> >> that have been fixe

Re: divide by zero oops in kernel 3.17.7

2015-02-05 Thread Frans Klaver
[+cc andrew, rik, michal] On Thu, Feb 5, 2015 at 5:08 AM, william wrote: > so it seems that i m hitting this bug : > https://lkml.org/lkml/2014/4/29/497 > > + if (!divisor) > + divisor = 1; > > that have been fixed ( well it looks more like a workaround than a fix > seen from here ) in the 64

Re: divide by zero oops in kernel 3.17.7

2015-02-05 Thread Frans Klaver
[+cc andrew, rik, michal] On Thu, Feb 5, 2015 at 5:08 AM, william will...@waisse.org wrote: so it seems that i m hitting this bug : https://lkml.org/lkml/2014/4/29/497 + if (!divisor) + divisor = 1; that have been fixed ( well it looks more like a workaround than a fix seen from here ) in

Re: divide by zero oops in kernel 3.17.7

2015-02-05 Thread Frans Klaver
On Thu, Feb 5, 2015 at 9:39 AM, Frans Klaver franskla...@gmail.com wrote: On Thu, Feb 5, 2015 at 5:08 AM, william will...@waisse.org wrote: so it seems that i m hitting this bug : https://lkml.org/lkml/2014/4/29/497 + if (!divisor) + divisor = 1; that have been fixed ( well it looks more

Re: [PATCH 1/1] 8250_core.c

2015-01-22 Thread Frans Klaver
Hi, On Thu, Jan 22, 2015 at 6:56 AM, Dick Hollenbeck wrote: > This was generated from 3.14 kernel, but since its so small it will likely > apply to newer > kernels without issue. Thanks for contributing. It is the custom that you send your patches in the body of the e-mail instead of as an

Re: [PATCH 1/1] 8250_core.c

2015-01-22 Thread Frans Klaver
Hi, On Thu, Jan 22, 2015 at 6:56 AM, Dick Hollenbeck d...@softplc.com wrote: This was generated from 3.14 kernel, but since its so small it will likely apply to newer kernels without issue. Thanks for contributing. It is the custom that you send your patches in the body of the e-mail

Re: [PATCH RESEND 00/13] ltc2952 modernization and new functionality

2015-01-15 Thread Frans Klaver
On Thu, Jan 15, 2015 at 01:52:49AM +0100, Sebastian Reichel wrote: > Thanks for the cleanup, applied: > > http://git.infradead.org/battery-2.6.git/commit/d84ba07c27fafca3cc77b25a1e204383a4b5af91 Thanks for the heads up. Cheers, Frans -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH RESEND 00/13] ltc2952 modernization and new functionality

2015-01-15 Thread Frans Klaver
On Thu, Jan 15, 2015 at 01:52:49AM +0100, Sebastian Reichel wrote: Thanks for the cleanup, applied: http://git.infradead.org/battery-2.6.git/commit/d84ba07c27fafca3cc77b25a1e204383a4b5af91 Thanks for the heads up. Cheers, Frans -- To unsubscribe from this list: send the line unsubscribe

[PATCH RESEND 12/13] power: reset: ltc2952: make trigger input optional

2015-01-14 Thread Frans Klaver
may power down the platform if the power button is pressed for about 5 seconds, we still need to make sure to start the watchdog toggle to prolong the system power for as long as we need it. This will still allow the system to control power using the kill signal. Signed-off-by: Frans Klaver

[PATCH RESEND 03/13] power: reset: ltc2952: unroll gpio_desc array

2015-01-14 Thread Frans Klaver
The three gpio's used by this driver are stored in an array of pointers. This doesn't add much besides cleanups in a loop. In fact, it makes most of the usage sites harder to read. Unroll the loop, and live with the fact that cleanups become slightly larger. Signed-off-by: Frans Klaver

[PATCH RESEND 02/13] power: reset: ltc2952: prefer devm_request_irq over request_irq

2015-01-14 Thread Frans Klaver
Make use of the fact that we allocated resources can be automatically deallocated. This reduces cleanup code and chance of errors. It also removes the need for the virq member of the ltc2952_poweroff_data struct. Signed-off-by: Frans Klaver --- drivers/power/reset/ltc2952-poweroff.c | 19

[PATCH RESEND 06/13] power: reset: ltc2952: remove global variable poweroff_panic

2015-01-14 Thread Frans Klaver
to the module_platform_driver() macro. Signed-off-by: Frans Klaver --- drivers/power/reset/ltc2952-poweroff.c | 57 +- 1 file changed, 22 insertions(+), 35 deletions(-) diff --git a/drivers/power/reset/ltc2952-poweroff.c b/drivers/power/reset/ltc2952-poweroff.c index 9d493b5..bc8d228

[PATCH RESEND 09/13] power: reset: ltc2952: fix C++ style function pointers

2015-01-14 Thread Frans Klaver
The function pointers for the timers and pm_power_off are assigned with C++ style foo = Let's change it instead to the more C style foo = func; Signed-off-by: Frans Klaver --- drivers/power/reset/ltc2952-poweroff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[PATCH RESEND 07/13] power: reset: ltc2952: drop empty suspend/resume functions

2015-01-14 Thread Frans Klaver
of boiler plate, while achieving nothing. Drop the functions instead. Signed-off-by: Frans Klaver --- drivers/power/reset/ltc2952-poweroff.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/power/reset/ltc2952-poweroff.c b/drivers/power/reset/ltc2952-poweroff.c index bc8d228

[PATCH RESEND 10/13] power: reset: ltc2952: disable timers in _remove

2015-01-14 Thread Frans Klaver
Disable the timers when ltc2952_poweroff is removed. We don't want to risk calling functions on data that no longer exist. Signed-off-by: Frans Klaver --- drivers/power/reset/ltc2952-poweroff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/reset/ltc2952-poweroff.c b

[PATCH RESEND 11/13] power: reset: ltc2952: check trigger value before starting timer

2015-01-14 Thread Frans Klaver
the timer. If the button is active, we should start the timer, else we should stop it. The situation described can now still occur if the polarity of the input pin is set incorrectly, but that at least is predictable behavior and can be detected during the first tests. Signed-off-by: Frans Klaver

[PATCH RESEND 08/13] power: reset: ltc2952: cleanup control flow in poweroff_handler

2015-01-14 Thread Frans Klaver
ltc2952_poweroff_handler uses gotos to return from the function. Since we don't do cleanups exiting this function, just return IRQ_HANDLED on the spot and be done with it. While at it, remove the variable 'ret'. It was never used very much. Signed-off-by: Frans Klaver --- drivers/power/reset

[PATCH RESEND 13/13] power: reset: ltc2952: document optional trigger behavior

2015-01-14 Thread Frans Klaver
Document the fact that the trigger signal is now optional, and describe the behavior when this is used. While at it, fix a typo, and paraphrase a sentence to be less platform specific. Signed-off-by: Frans Klaver --- .../devicetree/bindings/power/reset/ltc2952-poweroff.txt| 13

[PATCH RESEND 04/13] power: reset: ltc2952: prefer devm_gpiod_get over gpiod_get

2015-01-14 Thread Frans Klaver
This reduces cleanup code and chance of errors. Signed-off-by: Frans Klaver --- drivers/power/reset/ltc2952-poweroff.c | 44 -- 1 file changed, 10 insertions(+), 34 deletions(-) diff --git a/drivers/power/reset/ltc2952-poweroff.c b/drivers/power/reset/ltc2952

[PATCH RESEND 00/13] ltc2952 modernization and new functionality

2015-01-14 Thread Frans Klaver
ill to poweroff. The name poweroff is already used a lot. Besides that, the control is referred to as kill in the ltc2952 datasheet. Thanks, Frans Frans Klaver (13): power: reset: ltc2952: prefer devm_kzalloc over kzalloc power: reset: ltc2952: prefer devm_request_irq over request_irq power: re

[PATCH RESEND 05/13] power: reset: ltc2952: reduce dependency on global variables

2015-01-14 Thread Frans Klaver
that little bit of typing. Signed-off-by: Frans Klaver --- drivers/power/reset/ltc2952-poweroff.c | 75 +++--- 1 file changed, 41 insertions(+), 34 deletions(-) diff --git a/drivers/power/reset/ltc2952-poweroff.c b/drivers/power/reset/ltc2952-poweroff.c index 1e96b5b

[PATCH RESEND 01/13] power: reset: ltc2952: prefer devm_kzalloc over kzalloc

2015-01-14 Thread Frans Klaver
Make use of the fact that the allocated resources can be automatically deallocated. This reduces cleanup code and chance of leaks. Signed-off-by: Frans Klaver --- drivers/power/reset/ltc2952-poweroff.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/power

[PATCH RESEND 05/13] power: reset: ltc2952: reduce dependency on global variables

2015-01-14 Thread Frans Klaver
that little bit of typing. Signed-off-by: Frans Klaver frans.kla...@xsens.com --- drivers/power/reset/ltc2952-poweroff.c | 75 +++--- 1 file changed, 41 insertions(+), 34 deletions(-) diff --git a/drivers/power/reset/ltc2952-poweroff.c b/drivers/power/reset/ltc2952

[PATCH RESEND 01/13] power: reset: ltc2952: prefer devm_kzalloc over kzalloc

2015-01-14 Thread Frans Klaver
Make use of the fact that the allocated resources can be automatically deallocated. This reduces cleanup code and chance of leaks. Signed-off-by: Frans Klaver frans.kla...@xsens.com --- drivers/power/reset/ltc2952-poweroff.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff

[PATCH RESEND 13/13] power: reset: ltc2952: document optional trigger behavior

2015-01-14 Thread Frans Klaver
Document the fact that the trigger signal is now optional, and describe the behavior when this is used. While at it, fix a typo, and paraphrase a sentence to be less platform specific. Signed-off-by: Frans Klaver frans.kla...@xsens.com --- .../devicetree/bindings/power/reset/ltc2952

[PATCH RESEND 04/13] power: reset: ltc2952: prefer devm_gpiod_get over gpiod_get

2015-01-14 Thread Frans Klaver
This reduces cleanup code and chance of errors. Signed-off-by: Frans Klaver frans.kla...@xsens.com --- drivers/power/reset/ltc2952-poweroff.c | 44 -- 1 file changed, 10 insertions(+), 34 deletions(-) diff --git a/drivers/power/reset/ltc2952-poweroff.c b/drivers

[PATCH RESEND 08/13] power: reset: ltc2952: cleanup control flow in poweroff_handler

2015-01-14 Thread Frans Klaver
ltc2952_poweroff_handler uses gotos to return from the function. Since we don't do cleanups exiting this function, just return IRQ_HANDLED on the spot and be done with it. While at it, remove the variable 'ret'. It was never used very much. Signed-off-by: Frans Klaver frans.kla...@xsens.com

[PATCH RESEND 00/13] ltc2952 modernization and new functionality

2015-01-14 Thread Frans Klaver
to poweroff. The name poweroff is already used a lot. Besides that, the control is referred to as kill in the ltc2952 datasheet. Thanks, Frans Frans Klaver (13): power: reset: ltc2952: prefer devm_kzalloc over kzalloc power: reset: ltc2952: prefer devm_request_irq over request_irq power: reset

[PATCH RESEND 09/13] power: reset: ltc2952: fix C++ style function pointers

2015-01-14 Thread Frans Klaver
The function pointers for the timers and pm_power_off are assigned with C++ style foo = func; Let's change it instead to the more C style foo = func; Signed-off-by: Frans Klaver frans.kla...@xsens.com --- drivers/power/reset/ltc2952-poweroff.c | 6 +++--- 1 file changed, 3

[PATCH RESEND 07/13] power: reset: ltc2952: drop empty suspend/resume functions

2015-01-14 Thread Frans Klaver
of boiler plate, while achieving nothing. Drop the functions instead. Signed-off-by: Frans Klaver frans.kla...@xsens.com --- drivers/power/reset/ltc2952-poweroff.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/power/reset/ltc2952-poweroff.c b/drivers/power/reset/ltc2952

[PATCH RESEND 06/13] power: reset: ltc2952: remove global variable poweroff_panic

2015-01-14 Thread Frans Klaver
to the module_platform_driver() macro. Signed-off-by: Frans Klaver frans.kla...@xsens.com --- drivers/power/reset/ltc2952-poweroff.c | 57 +- 1 file changed, 22 insertions(+), 35 deletions(-) diff --git a/drivers/power/reset/ltc2952-poweroff.c b/drivers/power/reset/ltc2952-poweroff.c

[PATCH RESEND 10/13] power: reset: ltc2952: disable timers in _remove

2015-01-14 Thread Frans Klaver
Disable the timers when ltc2952_poweroff is removed. We don't want to risk calling functions on data that no longer exist. Signed-off-by: Frans Klaver frans.kla...@xsens.com --- drivers/power/reset/ltc2952-poweroff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/reset

[PATCH RESEND 11/13] power: reset: ltc2952: check trigger value before starting timer

2015-01-14 Thread Frans Klaver
the timer. If the button is active, we should start the timer, else we should stop it. The situation described can now still occur if the polarity of the input pin is set incorrectly, but that at least is predictable behavior and can be detected during the first tests. Signed-off-by: Frans Klaver

[PATCH RESEND 03/13] power: reset: ltc2952: unroll gpio_desc array

2015-01-14 Thread Frans Klaver
The three gpio's used by this driver are stored in an array of pointers. This doesn't add much besides cleanups in a loop. In fact, it makes most of the usage sites harder to read. Unroll the loop, and live with the fact that cleanups become slightly larger. Signed-off-by: Frans Klaver frans.kla

[PATCH RESEND 02/13] power: reset: ltc2952: prefer devm_request_irq over request_irq

2015-01-14 Thread Frans Klaver
Make use of the fact that we allocated resources can be automatically deallocated. This reduces cleanup code and chance of errors. It also removes the need for the virq member of the ltc2952_poweroff_data struct. Signed-off-by: Frans Klaver frans.kla...@xsens.com --- drivers/power/reset/ltc2952

[PATCH RESEND 12/13] power: reset: ltc2952: make trigger input optional

2015-01-14 Thread Frans Klaver
may power down the platform if the power button is pressed for about 5 seconds, we still need to make sure to start the watchdog toggle to prolong the system power for as long as we need it. This will still allow the system to control power using the kill signal. Signed-off-by: Frans Klaver

Re: [PATCH 00/13] ltc2952 modernization and new functionality

2014-12-22 Thread Frans Klaver
Hi there, On Wed, Oct 22, 2014 at 04:30:57PM +0200, Frans Klaver wrote: > > This series implements devm_* usage, reduction of globals, some cleanup and > finally makes the input trigger optional. Has this fallen through the cracks? Thanks, Frans -- To unsubscribe from this list: send

Re: [PATCH 00/13] ltc2952 modernization and new functionality

2014-12-22 Thread Frans Klaver
Hi there, On Wed, Oct 22, 2014 at 04:30:57PM +0200, Frans Klaver wrote: This series implements devm_* usage, reduction of globals, some cleanup and finally makes the input trigger optional. Has this fallen through the cracks? Thanks, Frans -- To unsubscribe from this list: send the line

[PATCH trivial] kernel: trace: fix typo

2014-11-07 Thread Frans Klaver
s,produciton,production Signed-off-by: Frans Klaver --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 8a52839..f3ef80c 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -2028,7 +2028,7

[PATCH trivial] kernel: trace: fix typo

2014-11-07 Thread Frans Klaver
s,produciton,production Signed-off-by: Frans Klaver frans.kla...@xsens.com --- kernel/trace/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 8a52839..f3ef80c 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c

[PATCH v2] serial: 8250_core: actually limit char reads to max_count

2014-11-06 Thread Frans Klaver
In serial8250_rx_chars(), max_count is set to 256. Due to the post-decrement operator used in the while() condition, the maximum number of iterations actually 257. This is not a problem, but it is mildly surprising if you're debugging. Use pre-decrement instead. Signed-off-by: Frans Klaver

Re: NXP Semiconductors TFA9879 Amplifier Driver

2014-11-06 Thread Frans Klaver
On Thu, Nov 6, 2014 at 1:53 PM, Peter Rosin wrote: > > Sorry for not sending this from my axentia.se account, but I tend to > get high spam-scores from there when I use git send-email. I don't know if you already tried it, but I had the same issue until I switched from sendmail to actually using

[PATCH v2] serial: 8250_core: actually limit char reads to max_count

2014-11-06 Thread Frans Klaver
In serial8250_rx_chars(), max_count is set to 256. Due to the post-decrement operator used in the while() condition, the maximum number of iterations actually 257. This is not a problem, but it is mildly surprising if you're debugging. Use pre-decrement instead. Signed-off-by: Frans Klaver

Re: NXP Semiconductors TFA9879 Amplifier Driver

2014-11-06 Thread Frans Klaver
On Thu, Nov 6, 2014 at 1:53 PM, Peter Rosin p...@lysator.liu.se wrote: Sorry for not sending this from my axentia.se account, but I tend to get high spam-scores from there when I use git send-email. I don't know if you already tried it, but I had the same issue until I switched from sendmail

Re: [PATCH 01/27] mtd: nand: introduce function to fix a common bug in most nand-drivers not showing a device in sysfs

2014-11-05 Thread Frans Klaver
On Wed, Nov 5, 2014 at 10:34 AM, Brian Norris wrote: > On Sun, Nov 02, 2014 at 10:03:53PM +0100, Frans Klaver wrote: >> On Wed, May 28, 2014 at 01:43:44AM -0700, Brian Norris wrote: >> > And in fact, if any drivers are missing mtd->name, perhaps it's best to >> > ju

Re: [PATCH 01/27] mtd: nand: introduce function to fix a common bug in most nand-drivers not showing a device in sysfs

2014-11-05 Thread Frans Klaver
On Wed, Nov 5, 2014 at 10:34 AM, Brian Norris computersforpe...@gmail.com wrote: On Sun, Nov 02, 2014 at 10:03:53PM +0100, Frans Klaver wrote: On Wed, May 28, 2014 at 01:43:44AM -0700, Brian Norris wrote: And in fact, if any drivers are missing mtd-name, perhaps it's best to just modify

[PATCH v2] eeepc-laptop: clean up control flow in eeepc_acpi_notify

2014-11-02 Thread Frans Klaver
eeepc_acpi_notify increases the indentation level to a whopping four. If we revise the conditions a bit, we can reduce that to a more soothing two and satisfy the indentation guidelines in Documentation/CodingStyle. Remove an unwanted space while we're in the neighbourhood. Signed-off-by: Frans

Re: [PATCH 01/27] mtd: nand: introduce function to fix a common bug in most nand-drivers not showing a device in sysfs

2014-11-02 Thread Frans Klaver
On Wed, May 28, 2014 at 01:43:44AM -0700, Brian Norris wrote: > And in fact, if any drivers are missing mtd->name, perhaps it's best to > just modify the MTD registration to give them a default: > > if (!mtd->name) > mtd->name = dev_name(>dev); > ... > How about we rethink

Re: [PATCH 01/27] mtd: nand: introduce function to fix a common bug in most nand-drivers not showing a device in sysfs

2014-11-02 Thread Frans Klaver
On Wed, May 28, 2014 at 01:43:44AM -0700, Brian Norris wrote: And in fact, if any drivers are missing mtd-name, perhaps it's best to just modify the MTD registration to give them a default: if (!mtd-name) mtd-name = dev_name(pdev-dev); ... How about we rethink the

[PATCH v2] eeepc-laptop: clean up control flow in eeepc_acpi_notify

2014-11-02 Thread Frans Klaver
eeepc_acpi_notify increases the indentation level to a whopping four. If we revise the conditions a bit, we can reduce that to a more soothing two and satisfy the indentation guidelines in Documentation/CodingStyle. Remove an unwanted space while we're in the neighbourhood. Signed-off-by: Frans

Re: [bisected] nouveau dual monitor setup broken

2014-10-31 Thread Frans Klaver
On Fri, Oct 31, 2014 at 11:34:45AM +0100, Roy Spliet wrote: > > It does ring a tiny bell: please check out > https://bugs.freedesktop.org/show_bug.cgi?id=85160 and try the fix proposed > in comment #7. Yup, that seems to fix things. As far as I'm concerned, that patch is Test

<    1   2   3   4   5   6   7   8   9   10   >