Re: [PATCHv2 1/2] gpio: mvebu: fix blink counter register selection

2017-06-12 Thread Ralph Sennhauser
Hi Linus, On Sun, 11 Jun 2017 23:48:34 +0200 Linus Walleij wrote: > On Fri, Jun 9, 2017 at 10:03 AM, Ralph Sennhauser > wrote: > > On Fri, 9 Jun 2017 09:37:55 +0200 > > Linus Walleij wrote: > > > >> On Thu, Jun 1, 2017 at 2:18 PM, Richard Genoud > >&g

Re: [PATCH] gpio: mvebu: change compatible string for PWM support

2017-06-09 Thread Ralph Sennhauser
On Fri, 9 Jun 2017 09:42:26 +0200 Linus Walleij wrote: > On Thu, Jun 1, 2017 at 10:08 PM, Ralph Sennhauser > wrote: > > > As it turns out more than just Armada 370 and XP support using GPIO > > lines as PWM lines. For example the Armada 38x family has the same > >

Re: [PATCH v2] gpio: mvebu: fix regmap_update_bits usage

2017-06-09 Thread Ralph Sennhauser
the value must be BIT(N) and not 1. > > CC: Chris Packham > CC: Ralph Sennhauser > Signed-off-by: Gregory CLEMENT > --- Hi Gregory, Tested-by: Ralph Sennhauser Thanks for the prompt fix Ralph

[PATCH] dt-bindings: Add vendor prefix for Linksys

2017-06-09 Thread Ralph Sennhauser
: Ralph Sennhauser --- Hi, Two weeks ago I asked for a vendor comment via Imre Kaloz but haven't heard back, so sending this one out for inclusion as-is. Ralph --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devic

Re: [PATCHv2 1/2] gpio: mvebu: fix blink counter register selection

2017-06-09 Thread Ralph Sennhauser
usly there to be used as the register > > value, selecting the B counter when id==1 and A counter when id==0. > > > > Tested on clearfog-pro (Marvell 88F6828) > > > > Fixes: 757642f9a584 ("gpio: mvebu: Add limited PWM support") > > Reviewed-by: Gr

Linux 4.11 - broken enlightenment window manager (fixed in 4.12)

2017-06-09 Thread Ralph Sennhauser
Hi Greg, With 4.11 the enlightenment window mangers fails to start setuid children due to commit 64b875f7ac8a ("ptrace: Capture the ptracer's creds not PT_PTRACE_CAP"). Commit c70d9d809fde ("ptrace: Properly initialize ptracer_cred on fork") in Linus tree fixes the issue. Tested with v4.11.4. Ple

[REGRESSION next] gpio-keys broken with commit 2233bf7a92e7 ("gpio: mvebu: switch to regmap for register access")

2017-06-08 Thread Ralph Sennhauser
Hi Thomas, Commit 2233bf7a92e7 ("gpio: mvebu: switch to regmap for register access") in next-20170607 breaks gpio-keys on an armada-385 (Linksys WRT3200ACM), noticed due to missing /dev/input/event0 and the below dmesg output. # dmesg -l 0,1,2,3 [2.421130] genirq: Setting trigger mode 3 f

[PATCH] ARM: dts: mvebu: Add PWM properties to .dtsi files

2017-06-01 Thread Ralph Sennhauser
From: Andrew Lunn Add properties to the GPIO nodes for Armada 370/XP to allow them to be also used as PWM lines. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427294/ [Ralph Sennhauser: Add new compatible string marvell,armada-370-gpio] Signed-off-by: Ralph Sennhauser

[PATCH] ARM: dts: mvebu: Add PWM properties for armada-38x

2017-06-01 Thread Ralph Sennhauser
Add the required properties to the GPIO nodes for them to be used as PWM lines. Signed-off-by: Ralph Sennhauser --- Hi everyone, this patch uses "marvell,armada-370-gpio" for the compatible property and as such depends on the rename of the property to still make it in in time for 4

Re: [PATCH v3] clk: mvebu: armada-38x: add support for 1866MHz variants

2017-06-01 Thread Ralph Sennhauser
On Thu, 1 Jun 2017 00:25:11 -0700 Stephen Boyd wrote: > On 05/24, Ralph Sennhauser wrote: > > The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the > > list of supported CPU frequencies. Also update multiplier and > > divisor for the l2clk and ddrclk. &g

[PATCH] gpio: mvebu: change compatible string for PWM support

2017-06-01 Thread Ralph Sennhauser
70-gpio" before the driver makes it out of the -rc stage. This also follows the practice of using only the first device family supported as part of the name. Also update the documentation and comments in the code accordingly. Fixes: 757642f9a584 ("gpio: mvebu: Add limited PWM suppo

Re: [PATCH v6 1/4] gpio: mvebu: Add limited PWM support

2017-05-31 Thread Ralph Sennhauser
On Tue, 30 May 2017 17:35:33 +0200 Richard Genoud wrote: > Hi Ralph, > > I have the functional spec (no NDA needed, but it's not the full > one) : A38x-Functional-Spec-PU0A.pdf > https://marvellcorp.wufoo.com/forms/marvell-armada-38x-functional-specifications/ > (just an email needed, no blood

Re: [PATCH 1/2] gpio: mvebu: fix blink counter register selection

2017-05-30 Thread Ralph Sennhauser
unter when id==1 and A counter when id==0. > > Tested on clearfog-pro (Marvell 88F6828) As stated in the other thread, testing on clearfog-pro is likely bogus, still the fix is correct. Reviewed-by: Ralph Sennhauser Thanks Ralph > > Signed-off-by: Richard Genoud > --- > dr

Re: [PATCH 2/2] gpio: mvebu: fix gpio bank registration when pwm is used

2017-05-30 Thread Ralph Sennhauser
Hi Richard On Tue, 30 May 2017 16:45:24 +0200 Richard Genoud wrote: > 2017-05-30 15:16 GMT+02:00 Gregory CLEMENT > : > > Hi Richard, > Hi Greg ! > > > > > On mar., mai 30 2017, Richard Genoud > > wrote: > >> If more than one gpio bank has the "pwm" property, only one will be > >> registere

Re: [PATCH v6 1/4] gpio: mvebu: Add limited PWM support

2017-05-30 Thread Ralph Sennhauser
> wrote: > > > On Fri, Apr 14, 2017 at 5:40 PM, Ralph Sennhauser > > wrote: > > > >> From: Andrew Lunn > >> > >> Armada 370/XP devices can 'blink' GPIO lines with a configurable on > >> and off period. This can be modelled

Re: [PATCH REGRESSION 4.12-rc1] ovl: add missing CONFIG_EXPORTFS dependency

2017-05-29 Thread Ralph Sennhauser
On Tue, 16 May 2017 12:11:39 +0200 Ralph Sennhauser wrote: > The source files namei.c and copy_up.c in overlayfs new use > exportfs_decode_fh which depends on CONFIG_EXPORTFS being set. Select > it in Kconfig. This issue is still present in 4.12-rc3 Ralph

Re: [PATCH v2] clk: mvebu: add support for 1866MHz variants

2017-05-24 Thread Ralph Sennhauser
On Wed, 24 May 2017 15:48:50 +0200 Gregory CLEMENT wrote: > Hi Ralph, > > On mar., mai 23 2017, Ralph Sennhauser > wrote: > > Adding a word about the fact this patch is for the armada 38x SoC in > the title would be nice. Agreed. > > > The Linksys WRT320

[PATCH v3] clk: mvebu: armada-38x: add support for 1866MHz variants

2017-05-24 Thread Ralph Sennhauser
The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the list of supported CPU frequencies. Also update multiplier and divisor for the l2clk and ddrclk. Noticed by the following warning: [0.00] Selected CPU frequency (16) unsupported Signed-off-by: Ralph Sennhauser Reviewed

[PATCH v3] ARM: dts: mvebu: add support for Linksys WRT3200ACM (Rango)

2017-05-23 Thread Ralph Sennhauser
lling. Other changes can be categorized as just cleanup / reorganization due to using the armada-385-linksys.dtsi. URL: https://github.com/openwrt/openwrt/blob/0abc3fa5a996daf7dafdc7794ccfe3fa7e955c5a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts Signed-off-by: Ralph Sennh

Re: [PATCH v2] ARM: dts: mvebu: add support for Linksys WRT3200ACM (Rango)

2017-05-23 Thread Ralph Sennhauser
On Wed, 24 May 2017 03:37:53 +0200 Andrew Lunn wrote: > Hi Ralph > > > Changes since v1: > > > > - Use non-removable with the sdhci node > > .. > > > + > > +&sdhci { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&sdhci_pins>; > > + no-1-8-v; > > + broken-cd; > > + wp-inver

[PATCH v2] ARM: dts: mvebu: add support for Linksys WRT3200ACM (Rango)

2017-05-23 Thread Ralph Sennhauser
lling. Other changes can be categorized as just cleanup / reorganization due to using the armada-385-linksys.dtsi. URL: https://github.com/openwrt/openwrt/blob/0abc3fa5a996daf7dafdc7794ccfe3fa7e955c5a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts Signed-off-by: Ralph Sennh

[PATCH v2] clk: mvebu: add support for 1866MHz variants

2017-05-23 Thread Ralph Sennhauser
The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the list of supported CPU frequencies. Also update multiplier and divisor for the l2clk and ddrclk. Noticed by the following warning: [0.00] Selected CPU frequency (16) unsupported Signed-off-by: Ralph Sennhauser --- Hi

Re: [PATCH 13/13] ARM: dts: mvebu: add support for Linksys WRT3200ACM (Rango)

2017-05-23 Thread Ralph Sennhauser
On Tue, 23 May 2017 14:25:21 +0200 Andrew Lunn wrote: > > The non-removable property might be more appropriate than > > broken-cd though. > > I think non-removable is also better. > > Otherwise, this looks good. > > Andrew Hi Andrew Will send out a V2 using non-removable and wit

Re: [PATCH 12/13] clk: mvebu: add support for 1866MHz variants

2017-05-23 Thread Ralph Sennhauser
On Tue, 23 May 2017 14:15:14 +0200 Andrew Lunn wrote: > On Sun, May 21, 2017 at 02:49:01PM +0200, Ralph Sennhauser wrote: > > The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to > > the list of supported CPU frequencies. > > > > Noticed by the following

Re: [PATCH 00/13] Linksys WRT3200ACM (Rango) support

2017-05-23 Thread Ralph Sennhauser
On Tue, 23 May 2017 17:22:05 +0200 Gregory CLEMENT wrote: > Hi Ralph, > > On dim., mai 21 2017, Ralph Sennhauser > wrote: > > > Hi everyone > > > > This series adds support for the latest model in Linksys WRT AC > > series of routers. The WRT3200ACM w

Re: [PATCH 08/13] ARM: dts: armada-385-linksys: use binary unit prefixes

2017-05-23 Thread Ralph Sennhauser
On Mon, 22 May 2017 20:24:16 +0200 Ralph Sennhauser wrote: > On Mon, 22 May 2017 17:00:01 +0200 > Andrew Lunn wrote: > > > On Sun, May 21, 2017 at 02:48:57PM +0200, Ralph Sennhauser wrote: > > > Use IEEE 1541-2002 unit prefixes for sizes. > > > > D

Re: [PATCH 08/13] ARM: dts: armada-385-linksys: use binary unit prefixes

2017-05-22 Thread Ralph Sennhauser
On Mon, 22 May 2017 17:00:01 +0200 Andrew Lunn wrote: > On Sun, May 21, 2017 at 02:48:57PM +0200, Ralph Sennhauser wrote: > > Use IEEE 1541-2002 unit prefixes for sizes. > > Does ePAPR recommend this? Not directly, but the paper (v1.1) itself is using MiB as well which cou

Re: [PATCH 06/13] ARM: dts: armada-385-linksys: usb3 label cleanup

2017-05-22 Thread Ralph Sennhauser
On Mon, 22 May 2017 16:55:15 +0200 Andrew Lunn wrote: > On Sun, May 21, 2017 at 02:48:55PM +0200, Ralph Sennhauser wrote: > > Now that we use the reference for the USB3.0 port update the node > > name and labels for the phy and vbus to match the label used by > > armada-38x.

[PATCH 09/13] ARM: dts: armada-385-linksys: partition layout is board specific

2017-05-21 Thread Ralph Sennhauser
Move the partition layout to individual boards. The Linksys WRT 3200 ACM (Rango) comes with a 256MiB nand flash chip and different layout. Signed-off-by: Ralph Sennhauser --- Dismissed alternatives: a) Partition layouts as fragments for use with overlay. While the only alternative which

[PATCH 10/13] ARM: dts: armada-385-linksys: group pins in pinctrl

2017-05-21 Thread Ralph Sennhauser
A pin group per node is sufficient, further specialisation only serves as documentation which can be a comment just as well. This simplifies configuring pins for nodes in dependants. Also use labels which end up right by the node they are intended for. Signed-off-by: Ralph Sennhauser --- arch

[PATCH 08/13] ARM: dts: armada-385-linksys: use binary unit prefixes

2017-05-21 Thread Ralph Sennhauser
Use IEEE 1541-2002 unit prefixes for sizes. Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-385-linksys.dtsi | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot/dts/armada-385-linksys.dtsi b/arch/arm/boot/dts/armada-385

[PATCH 12/13] clk: mvebu: add support for 1866MHz variants

2017-05-21 Thread Ralph Sennhauser
The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the list of supported CPU frequencies. Noticed by the following warning: [0.00] Selected CPU frequency (16) unsupported Signed-off-by: Ralph Sennhauser --- drivers/clk/mvebu/armada-38x.c | 3 ++- 1 file changed, 2

[PATCH 07/13] ARM: dts: armada-385-linksys: drop leagcy DSA bindings

2017-05-21 Thread Ralph Sennhauser
The new ones work so there is little reason to keep the legacy bindings. Use the rework as the oportunity to drop the legacy node. Signed-off-by: Ralph Sennhauser --- Notes: There is little harm in keeping them but probably no value either, so use the cleanup series to get rid of them

[PATCH 06/13] ARM: dts: armada-385-linksys: usb3 label cleanup

2017-05-21 Thread Ralph Sennhauser
Now that we use the reference for the USB3.0 port update the node name and labels for the phy and vbus to match the label used by armada-38x.dtsi. Signed-off-by: Ralph Sennhauser --- Notes: Going by documentation regulator-name is only of informative nature so changing it should be a non

[PATCH 01/13] ARM: dts: armada-385-linksys: flatten dtsi

2017-05-21 Thread Ralph Sennhauser
resulting dtb to be binary identical. Signed-off-by: Ralph Sennhauser --- Notes: Care has been taken to change nothing but flatten and sorting references by name. Sorting by internal reg no longer makes sense, would be a pain to maintain order at least. Comments have at least one level

[PATCH 04/13] ARM: dts: armada-385-linksys: drop redundant properties in dependants

2017-05-21 Thread Ralph Sennhauser
Drop redundant declaration of #address-cells and #size-cells. Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-385-linksys-caiman.dts | 3 --- arch/arm/boot/dts/armada-385-linksys-cobra.dts | 3 --- arch/arm/boot/dts/armada-385-linksys-shelby.dts | 3 --- 3 files changed, 9

[PATCH 05/13] ARM: dts: armada-385-linksys: bm pools by label order

2017-05-21 Thread Ralph Sennhauser
Which pools we assing doesn't matter. Use the order which doesen't leave a chance for questions for first time readers. Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-385-linksys.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/ar

[PATCH 03/13] ARM: dts: armada-385-linksys: flatten dependants

2017-05-21 Thread Ralph Sennhauser
Flatten dts of individual boards to match the new style used in armada-385-linksys.dtsi and for the Rango addition. * Caiman - Linksys WRT1200AC v1 & v2 * Cobra - Linksys WRT1900AC v2 * Shelby - Linksys WRT1900ACS v1 & v2 Signed-off-by: Ralph Sennhauser --- Notes: power and

[PATCH 02/13] ARM: dts: armada-385-linksys: label nodes

2017-05-21 Thread Ralph Sennhauser
Add labels to nodes used by dependants. Also rename node gpio_keys to gpio-keys to mach the style of the rest of the file as well as the documented example. Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-385-linksys.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[PATCH 13/13] ARM: dts: mvebu: add support for Linksys WRT3200ACM (Rango)

2017-05-21 Thread Ralph Sennhauser
ed as just cleanup / reorganization due to using the armada-385-linksys.dtsi. URL: https://github.com/openwrt/openwrt/blob/0abc3fa5a996daf7dafdc7794ccfe3fa7e955c5a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts Signed-off-by: Ralph Sennhauser --- Notes: The sdhci no

[PATCH 11/13] ARM: dts: armada-385-linksys: fixup button node names

2017-05-21 Thread Ralph Sennhauser
Buttons don't have a reg property; drop pseudo address and fixup names of individual button nodes. Also drop #address-cells and #size-cells properties. Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-385-linksys.dtsi | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-)

[PATCH 00/13] Linksys WRT3200ACM (Rango) support

2017-05-21 Thread Ralph Sennhauser
he earlier Armada-385 based devices in the series is a bigger flash chip, next generation wireless modules in the mini pcie slots as well as a Marvell SD8887. Finally the CPU is clocked at 1866 GHz by default. The series depends on Linux 4.12-rc1 and is targeted for 4.13. Ralph Ralph Senn

[PATCH REGRESSION 4.12-rc1] ovl: add missing CONFIG_EXPORTFS dependency

2017-05-16 Thread Ralph Sennhauser
node on copy up") Signed-off-by: Ralph Sennhauser --- fs/overlayfs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/overlayfs/Kconfig b/fs/overlayfs/Kconfig index 0daac51..c0c9683 100644 --- a/fs/overlayfs/Kconfig +++ b/fs/overlayfs/Kconfig @@ -1,5 +1,6 @@ config OVERLAY_FS

Re: [PATCH v6 2/4] ARM: dts: mvebu: Add PWM properties to .dtsi files

2017-05-05 Thread Ralph Sennhauser
On Fri, 05 May 2017 10:09:09 +0200 Gregory CLEMENT wrote: > Hi Ralph, > > On ven., mai 05 2017, Ralph Sennhauser > wrote: > > > On Mon, 24 Apr 2017 11:19:32 +0200 > > Linus Walleij wrote: > > > >> On Fri, Apr 14, 2017 at 5:40 PM, Ralph Sennhause

Re: [PATCH v6 2/4] ARM: dts: mvebu: Add PWM properties to .dtsi files

2017-05-05 Thread Ralph Sennhauser
On Mon, 24 Apr 2017 11:19:32 +0200 Linus Walleij wrote: > On Fri, Apr 14, 2017 at 5:40 PM, Ralph Sennhauser > wrote: > > > From: Andrew Lunn > > > > Add properties to the GPIO nodes to allow them to be also used as > > PWM lines. > > > &g

Re: [REGRESSION next-20170426] Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices") causes oops in mvneta

2017-04-28 Thread Ralph Sennhauser
On Fri, 28 Apr 2017 17:26:41 +0530 Sricharan R wrote: > Hi Ralph, > > > > > > > Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe > > time for platform/amba/pci bus devices") causes a kernel panic > > as in the log below on an armada-385. Reverting the commit > >

Re: [REGRESSION next-20170426] Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices") causes oops in mvneta

2017-04-27 Thread Ralph Sennhauser
On Fri, 28 Apr 2017 11:13:33 +0530 Sricharan R wrote: > Hi Ralph, > > On 4/27/2017 8:10 PM, Ralph Sennhauser wrote: > > On Thu, 27 Apr 2017 19:05:09 +0530 > > Sricharan R wrote: > > > >> Hi, > >> > >> On 4/26/2017 9:45 PM, Ralph Sennha

Re: [REGRESSION next-20170426] Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices") causes oops in mvneta

2017-04-27 Thread Ralph Sennhauser
On Thu, 27 Apr 2017 19:05:09 +0530 Sricharan R wrote: > Hi, > > On 4/26/2017 9:45 PM, Ralph Sennhauser wrote: > > Hi Sricharan R, > > > > Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe > > time for platform/amba/pci bus devices") ca

[REGRESSION next-20170426] Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices") causes oops in mvneta

2017-04-26 Thread Ralph Sennhauser
Hi Sricharan R, Commit 09515ef5ddad ("of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices") causes a kernel panic as in the log below on an armada-385. Reverting the commit fixes the issue. Regards Ralph --- [ 18.288244] [c06d8480] *pgd=0061941e(bad) [ 18.29227

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-17 Thread Ralph Sennhauser
On Tue, 11 Apr 2017 18:04:50 +0300 Amir Goldstein wrote: > On Tue, Apr 11, 2017 at 1:50 PM, Richard Weinberger > wrote: > > Hi! > > > > Am 11.04.2017 um 12:20 schrieb Amir Goldstein: > >> On Thu, Apr 6, 2017 at 3:26 PM, Richard Weinberger > >> wrote: > >>> Am 06.04.2017 um 14:09 schrieb Ric

[PATCH v6 2/4] ARM: dts: mvebu: Add PWM properties to .dtsi files

2017-04-14 Thread Ralph Sennhauser
From: Andrew Lunn Add properties to the GPIO nodes to allow them to be also used as PWM lines. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427294/ [Ralph Sennhauser: Add new compatible string marvell,armada-370-xp-gpio] Signed-off-by: Ralph Sennhauser Tested-by: Andrew

[PATCH v6 3/4] ARM: mvebu: Enable SENSORS_PWM_FAN in defconfig

2017-04-14 Thread Ralph Sennhauser
From: Andrew Lunn Now that the GPIO driver also supports PWM operation, enable the PWM framework and fan driver in mvebu_v7_defconfig. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427297/ [Ralph Sennhauser: add fan driver to defconfig] Signed-off-by: Ralph Sennhauser

[PATCH v6 1/4] gpio: mvebu: Add limited PWM support

2017-04-14 Thread Ralph Sennhauser
27287/ URL: https://patchwork.ozlabs.org/patch/427295/ [Ralph Sennhauser: * Port forward * Merge PWM portion into gpio-mvebu.c * Switch to atomic PWM API * Add new compatible string marvell,armada-370-xp-gpio * Update and merge documentation patch * Update MAINTAINERS] Signed-off-by: Ralph

[PATCH v6 4/4] ARM: dts: armada-xp: Use pwm-fan rather than gpio-fan

2017-04-14 Thread Ralph Sennhauser
From: Andrew Lunn The mvebu GPIO driver can also perform PWM on some pins. Use the pwm-fan driver to control the fan of the WRT1900AC, giving us finer grained control over its speed and hence noise. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427291/ [Ralph Sennhauser

[PATCH v5 0/4] gpio: mvebu: Add PWM fan support

2017-04-14 Thread Ralph Sennhauser
Hi everyone, With the bike shedding fixes as Thierry called them out of the way and the ACK by Rob for the bindings this version could be merged. The only thing still sort of open is whether to use npwm=1 and giving up the sysfs use case. Though an ACK was given for this implementation already I

Re: [PATCH v5 0/4] gpio: mvebu: Add PWM fan support

2017-04-13 Thread Ralph Sennhauser
On Wed, 12 Apr 2017 19:16:56 +0200 Thierry Reding wrote: > On Sun, Apr 09, 2017 at 08:09:26PM +0200, Ralph Sennhauser wrote: > > Hi Therry, > > > > Resending this as v5 with some minor changes since v4. What is > > missing is an ACK from you so Linus can merge the dri

Re: [PATCH v5 1/4] gpio: mvebu: Add limited PWM support

2017-04-13 Thread Ralph Sennhauser
On Wed, 12 Apr 2017 19:11:21 +0200 Thierry Reding wrote: > On Sun, Apr 09, 2017 at 08:09:27PM +0200, Ralph Sennhauser wrote: > > From: Andrew Lunn > > > > Armada 370/XP devices can 'blink' GPIO lines with a configurable on > > and off period. This can b

Re: [REGRESSION next-20170410] Commit a6ff6cbf1fab ("usb: xhci: Add helper function xhci_set_power_on().") breaks armada-385

2017-04-13 Thread Ralph Sennhauser
On Thu, 13 Apr 2017 09:29:23 +0300 Mathias Nyman wrote: > On 12.04.2017 10:47, Ralph Sennhauser wrote: > > Hi Guoqing Zhang, > > > > Commit a6ff6cbf1fabe7500d8ac25e133e3346db0a0fca ("usb: xhci: Add > > helper function xhci_set_power_on().") causes a null poi

[REGRESSION next-20170410] Commit a6ff6cbf1fab ("usb: xhci: Add helper function xhci_set_power_on().") breaks armada-385

2017-04-12 Thread Ralph Sennhauser
Hi Guoqing Zhang, Commit a6ff6cbf1fabe7500d8ac25e133e3346db0a0fca ("usb: xhci: Add helper function xhci_set_power_on().") causes a null pointer dereference on an armada-385. Below the kernel as well as the bisect log. Regards Ralph [2.481636] Unable to handle kernel NULL pointer dere

Re: [PATCH 1/1] ARM: dts: armada-xp-linksys-mamba: use wan instead of internet for DSA port

2017-04-10 Thread Ralph Sennhauser
On Wed, 5 Apr 2017 18:08:08 +0200 Ralph Sennhauser wrote: > Hi Andrew, > > On Wed, 5 Apr 2017 17:50:32 +0200 > Andrew Lunn wrote: > > > > I would say, this is now too late. Changing an interface name > > > > will break configu

[PATCH v5 2/4] ARM: dts: mvebu: Add PWM properties to .dtsi files

2017-04-09 Thread Ralph Sennhauser
From: Andrew Lunn Add properties to the GPIO nodes to allow them to be also used as PWM lines. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427294/ [Ralph Sennhauser: Add new compatible string marvell,armada-370-xp-gpio] Signed-off-by: Ralph Sennhauser Tested-by: Andrew

[PATCH v5 4/4] ARM: dts: armada-xp: Use pwm-fan rather than gpio-fan

2017-04-09 Thread Ralph Sennhauser
From: Andrew Lunn The mvebu GPIO driver can also perform PWM on some pins. Use the pwm-fan driver to control the fan of the WRT1900AC, giving us finer grained control over its speed and hence noise. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427291/ [Ralph Sennhauser

[PATCH v5 3/4] ARM: mvebu: Enable SENSORS_PWM_FAN in defconfig

2017-04-09 Thread Ralph Sennhauser
From: Andrew Lunn Now that the GPIO driver also supports PWM operation, enable the PWM framework and fan driver in mvebu_v7_defconfig. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427297/ [Ralph Sennhauser: add fan driver to defconfig] Signed-off-by: Ralph Sennhauser

[PATCH v5 1/4] gpio: mvebu: Add limited PWM support

2017-04-09 Thread Ralph Sennhauser
27287/ URL: https://patchwork.ozlabs.org/patch/427295/ [Ralph Sennhauser: * Port forward * Merge PWM portion into gpio-mvebu.c * Switch to atomic PWM API * Add new compatible string marvell,armada-370-xp-gpio * Update and merge documentation patch * Update MAINTAINERS] Signed-off-by: Ralph

[PATCH v5 0/4] gpio: mvebu: Add PWM fan support

2017-04-09 Thread Ralph Sennhauser
Hi Therry, Resending this as v5 with some minor changes since v4. What is missing is an ACK from you so Linus can merge the driver and Gregory the dts changes. For this driver to make it into 4.12 it would be nice to have it in next soon. I hope you can make some room in your schedule to have anot

[PATCH v2] ARM: dts: armada-38x: label USB and SATA nodes

2017-04-08 Thread Ralph Sennhauser
ontroller nodes. To avoid potential confusion by labeling an USB3.0 controller "usb2" use usb3_X as labels. This also coincides with the node names themselves (usb@x vs usb3@x). Signed-off-by: Ralph Sennhauser --- Hi everybody, Using satacX for controllers with satacXpY for port

Re: [PATCH 1/1] ARM: dts: armada-xp-linksys-mamba: use wan instead of internet for DSA port

2017-04-05 Thread Ralph Sennhauser
Hi Andrew, On Wed, 5 Apr 2017 17:50:32 +0200 Andrew Lunn wrote: > > In fact "internet" label on the case is uppercase, would this matter > > for you for new bindings, or would you still use the lowercase > > version? > > I would use lower case, just to fix with the general convention that > i

Re: [PATCH 1/1] ARM: dts: armada-xp-linksys-mamba: use wan instead of internet for DSA port

2017-04-05 Thread Ralph Sennhauser
On Wed, 5 Apr 2017 16:28:24 +0200 Andrew Lunn wrote: > On Wed, Apr 05, 2017 at 07:28:46AM +0200, Ralph Sennhauser wrote: > > The LEDs for the "wan" port are already labeled "mamba:amber:wan" > > resp. "mamba:white:wan". So besides being an outlier wi

[PATCH 1/1] ARM: dts: armada-xp-linksys-mamba: use wan instead of internet for DSA port

2017-04-04 Thread Ralph Sennhauser
| lan3 | lan3| | 4 | lan4 | lan4| |-----| Signed-off-by: Ralph Sennhauser --- Hi everybody, I underestimated the urge of people to make all the same before.

Re: [PATCH] ARM: dts: armada-38x: label USB and SATA nodes

2017-04-01 Thread Ralph Sennhauser
On Fri, 31 Mar 2017 20:21:11 +0200 Andrew Lunn wrote: > On Fri, Mar 31, 2017 at 07:39:20PM +0200, Ralph Sennhauser wrote: > > On Fri, 31 Mar 2017 18:50:15 +0200 > > Andrew Lunn wrote: > > > > > > - sata@a8000 { > > > &g

Re: [PATCH] ARM: dts: armada-38x: label USB and SATA nodes

2017-03-31 Thread Ralph Sennhauser
On Fri, 31 Mar 2017 18:50:15 +0200 Andrew Lunn wrote: > > - sata@a8000 { > > + satac0: sata@a8000 { > > Hi Ralph > > Why the c in satac0? For controller and to not conflict with a use case of sata0 for a port, similarly to pciec and pcie1. See armada-385-s

[PATCH] ARM: dts: armada-38x: label USB and SATA nodes

2017-03-31 Thread Ralph Sennhauser
Recently most nodes got labels to make them referenceable. The USB 3.0 nodes as well as the nodes for the SATA controllers were left out, rectify the omission. Signed-off-by: Ralph Sennhauser --- Hi everybody In preparation to add support for the Linksys WRT3200ACM (Rango) some rework of the

[PATCH] ARM: dts: armada-385-linksys: disk-activity trigger for all

2017-03-30 Thread Ralph Sennhauser
Commit a4ee7e18d808 ("ARM: dts: armada: Add default trigger for sata led") adds the default trigger to individual boards, move it to armada-385-linksys.dtsi which effectively enables the definition for the WRT1900ACS (Shelby) as well as for future boards. Signed-off-by: Ralph

Re: [PATCH v4 2/4] mvebu: xp: Add PWM properties to .dtsi files

2017-03-30 Thread Ralph Sennhauser
On Thu, 30 Mar 2017 17:45:08 +0200 Gregory CLEMENT wrote: > Hi Ralph, > > On lun., mars 27 2017, Ralph Sennhauser > wrote: > > The title should start by ARM: dts: mvebu: > > If there is no need to have a v5 then I wil take care of modifying the > titl

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Ralph Sennhauser
ist, upon re-linking the inode has to be removed > > from the orphan list again. > > > > Looks good. Nothing to add. Thanks to both of you. Ralph > > > Cc: > > Cc: Ralph Sennhauser > > Cc: Amir Goldstein > typo: missing closing > > > >

Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs

2017-03-30 Thread Ralph Sennhauser
s needed to get things back to a working state. Do you want me to test anything else than linux-next? Thanks Ralph > > Von meinem Samsung Gerät gesendet. > > Ursprüngliche Nachricht ---- > Von: Ralph Sennhauser > Datum: 30.03.17 07:53 (GMT+01:00) > An: Richa

Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs

2017-03-29 Thread Ralph Sennhauser
Hi Richard, On Thu, 30 Mar 2017 00:15:31 +0200 Richard Weinberger wrote: > Ralph, > > Am 29.03.2017 um 23:26 schrieb Ralph Sennhauser: > >> # create and link a tmpfile - then remove it > >> sudo rm -rf foo; sudo xfs_io -T -c "flink foo" . ; ls -l foo; sudo

Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs

2017-03-29 Thread Ralph Sennhauser
On Wed, 29 Mar 2017 22:16:10 +0300 Amir Goldstein wrote: > On Tue, Mar 28, 2017 at 3:16 PM, Ralph Sennhauser > wrote: > > On Tue, 28 Mar 2017 08:08:51 -0400 > > Amir Goldstein wrote: > > > >> On Tue, Mar 28, 2017 at 7:28 AM, Ralph Sennhauser > >>

Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs

2017-03-28 Thread Ralph Sennhauser
On Tue, 28 Mar 2017 08:08:51 -0400 Amir Goldstein wrote: > On Tue, Mar 28, 2017 at 7:28 AM, Ralph Sennhauser > wrote: > > Hi Amir, > > > > On Tue, 28 Mar 2017 07:03:11 -0400 > > Amir Goldstein wrote: > > > >> Overlayfs now uses O_TMPFILE for cop

Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs

2017-03-28 Thread Ralph Sennhauser
Hi Amir, On Tue, 28 Mar 2017 07:03:11 -0400 Amir Goldstein wrote: > Overlayfs now uses O_TMPFILE for copy up and it works fine with all > the file systems I tested (tmpfs, xfs, ext4). > If I am right and O_TMPFILE is broken in ubifs, you are most likely > the first person to test it (indirectly

Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs

2017-03-28 Thread Ralph Sennhauser
On Tue, 28 Mar 2017 05:27:03 -0400 Amir Goldstein wrote: > On Tue, Mar 28, 2017 at 4:01 AM, Ralph Sennhauser > wrote: > > Hi Amir > > > > Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") > > breaks squashfs with an ubifs overlay (bo

[REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs

2017-03-28 Thread Ralph Sennhauser
Hi Amir Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks squashfs with an ubifs overlay (both ubi volumes of the same container). Renaming a file results in an error "UBIFS error (ubi0:1 pid 1394): ubifs_add_orphan: orphaned twice". This corrupts the the filesystem and the

[PATCH v4 2/4] mvebu: xp: Add PWM properties to .dtsi files

2017-03-27 Thread Ralph Sennhauser
From: Andrew Lunn Add properties to the GPIO nodes to allow them to be also used as PWM lines. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427294/ [Ralph Sennhauser: * Use new compatible string marvell,armada-370-xp-gpio * Add missing reg-names / #pwm-cell properties

[PATCH v4 3/4] ARM: mvebu: Enable SENSORS_PWM_FAN in defconfig

2017-03-27 Thread Ralph Sennhauser
From: Andrew Lunn Now that the GPIO driver also supports PWM operation, enable the PWM framework and fan driver in mvebu_v7_defconfig. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427297/ [Ralph Sennhauser: add fan driver to defconfig] Signed-off-by: Ralph Sennhauser

[PATCH v4 1/4] gpio: mvebu: Add limited PWM support

2017-03-27 Thread Ralph Sennhauser
27287/ URL: https://patchwork.ozlabs.org/patch/427295/ [Ralph Sennhauser: * Port forward * Merge PWM portion into gpio-mvebu.c * Switch to atomic PWM API * Add new compatible string marvell,armada-370-xp-gpio * Update and merge documentation patch * Update MAINTAINERS] Signed-off-by: Ralph

[PATCH v4 0/4] gpio: mvebu: Add PWM fan support

2017-03-27 Thread Ralph Sennhauser
Hi everyone This patch series was originally submitted by Andrew Lunn but got stalled. I picked up the series and addressed what was discussed for the earlier submission with some helpful input from Andrew. Hopefully this time support for the PWM fan as found on Linksys WRT1900AC (Mamba) will mak

[PATCH v4 4/4] mvebu: wrt1900ac: Use pwm-fan rather than gpio-fan

2017-03-27 Thread Ralph Sennhauser
From: Andrew Lunn The mvebu GPIO driver can also perform PWM on some pins. Use the pwm-fan driver to control the fan of the WRT1900AC, giving us finer grained control over its speed and hence noise. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427291/ [Ralph Sennhauser

Re: [PATCH v3 4/4] mvebu: wrt1900ac: Use pwm-fan rather than gpio-fan

2017-03-26 Thread Ralph Sennhauser
On Fri, 24 Mar 2017 15:35:05 +0100 Andrew Lunn wrote: > > + pwm_fan { > > /* SUNON HA4010V4--C99 */ > > - compatible = "gpio-fan"; > > - gpios = <&gpio0 24 0>; > > > > - gpio-fan,speed-map = <00 > > - 4500 1>; >

Re: [PATCH v3 4/4] mvebu: wrt1900ac: Use pwm-fan rather than gpio-fan

2017-03-24 Thread Ralph Sennhauser
On Fri, 24 Mar 2017 15:35:05 +0100 Andrew Lunn wrote: > > + pwm_fan { > > /* SUNON HA4010V4--C99 */ > > - compatible = "gpio-fan"; > > - gpios = <&gpio0 24 0>; > > > > - gpio-fan,speed-map = <00 > > - 4500 1>; >

Re: [PATCH v2 1/4] gpio: mvebu: Add limited PWM support

2017-03-24 Thread Ralph Sennhauser
On Fri, 24 Mar 2017 10:18:29 -0500 Rob Herring wrote: > On Sat, Mar 18, 2017 at 04:43:01PM +0100, Ralph Sennhauser wrote: > > From: Andrew Lunn > > > > Armada 370/XP devices can 'blink' gpio lines with a configurable on > > and off period. This can be model

[PATCH v3 0/4] gpio: mvebu: Add PWM fan support

2017-03-24 Thread Ralph Sennhauser
Hi everyone This patch series was originally submitted by Andrew Lunn but got stalled. I picked up the series and addressed what was discussed for the earlier submission with some helpful input from Andrew. Hopefully this time support for the PWM fan as found on Linksys WRT1900AC (Mamba) will make

[PATCH v3 3/4] ARM: mvebu: Enable SENSORS_PWM_FAN in defconfig

2017-03-24 Thread Ralph Sennhauser
From: Andrew Lunn Now that the GPIO driver also supports PWM operation, enable the PWM framework and fan driver in mvebu_v7_defconfig. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427297/ [Ralph Sennhauser: add fan driver to defconfig] Signed-off-by: Ralph Sennhauser

[PATCH v3 2/4] mvebu: xp: Add PWM properties to .dtsi files

2017-03-24 Thread Ralph Sennhauser
From: Andrew Lunn Add properties to the GPIO nodes to allow them to be also used as PWM lines. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427294/ [Ralph Sennhauser: * Use #pwm-cells = <1> * Add missing reg-names / #pwm-cell properties to armada-xp-mv7826

[PATCH v3 4/4] mvebu: wrt1900ac: Use pwm-fan rather than gpio-fan

2017-03-24 Thread Ralph Sennhauser
From: Andrew Lunn The mvebu GPIO driver can also perform PWM on some pins. Use the pwm-fan driver to control the fan of the WRT1900AC, giving us finer grained control over its speed and hence noise. Signed-off-by: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427291/ Signed-off-by: Ralph

[PATCH v3 1/4] gpio: mvebu: Add limited PWM support

2017-03-24 Thread Ralph Sennhauser
27287/ URL: https://patchwork.ozlabs.org/patch/427295/ [Ralph Sennhauser: * Port forward * Merge PWM portion into gpio-mvebu.c * Switch to atomic PWM API * Merge documentation patch * Update MAINTAINERS] Signed-off-by: Ralph Sennhauser --- .../devicetree/bindings/gpio/gpio-mvebu.txt

Re: [PATCH 1/4] gpio: mvebu: Add limited PWM support

2017-03-23 Thread Ralph Sennhauser
On Thu, 23 Mar 2017 11:11:09 +0100 Linus Walleij wrote: > On Mon, Mar 20, 2017 at 2:51 PM, Thierry Reding > wrote: > > On Fri, Mar 17, 2017 at 10:17:47AM +0100, Ralph Sennhauser wrote: > >> On Thu, 16 Mar 2017 17:03:05 +0100 > >> Linus Walleij wrote: >

Re: [PATCH v2 0/4] gpio: mvebu: Add PWM fan support

2017-03-23 Thread Ralph Sennhauser
On Thu, 23 Mar 2017 10:23:47 +0100 Linus Walleij wrote: > On Sat, Mar 18, 2017 at 4:43 PM, Ralph Sennhauser > wrote: > > > This patch series was originally submitted by Andrew Lunn but got > > stalled. I picked up the series and addressed what was discussed > > for

Re: [REGRESSION next-20170321] acbdad8dd1ab ("serial: 8250_dw: simplify optional reset handling") causes silent kernel.

2017-03-22 Thread Ralph Sennhauser
Hi Philipp On Wed, 22 Mar 2017 15:33:47 +0100 Philipp Zabel wrote: > Hi Ralph, > > On Wed, 2017-03-22 at 15:24 +0100, Ralph Sennhauser wrote: > > Hi Philipp, > > > > Commit acbdad8dd1ab ("serial: 8250_dw: simplify optional reset > > handling") cause

[REGRESSION next-20170321] acbdad8dd1ab ("serial: 8250_dw: simplify optional reset handling") causes silent kernel.

2017-03-22 Thread Ralph Sennhauser
Hi Philipp, Commit acbdad8dd1ab ("serial: 8250_dw: simplify optional reset handling") causes the kernel to no longer print anything to the serial console on a Linksys WRT3200ACM (Armada-385, a similar board would be ./arch/arm/boot/dts/armada-385-linksys-cobra.dts). The last message from uboot is

Re: [PATCH 1/4] gpio: mvebu: Add limited PWM support

2017-03-20 Thread Ralph Sennhauser
On Mon, 20 Mar 2017 14:42:52 +0100 Thierry Reding wrote: > > diff --git a/Documentation/devicetree/bindings/gpio/gpio-mvebu.txt > > b/Documentation/devicetree/bindings/gpio/gpio-mvebu.txt index > > a6f3bec..86932e3 100644 --- > > a/Documentation/devicetree/bindings/gpio/gpio-mvebu.txt +++ > > b/D

  1   2   >