[PATCH v2 1/1] gpio: Fix ngpio in gpio-xilinx driver

2014-09-23 Thread Gernot Vormayr
If one adds gpio-controller; to the chip in the devicetree, then initialization fails with 'gpiochip_find_base: cannot find free range', because ngpio is 0. This patch fixes the bug. This version includes the suggestions from Linus Walleij. Tested on ml507 board. Signed-off-by: Gern

Re: [PATCH 1/1] gpio: Fix ngpio in gpio-xilinx driver

2014-09-23 Thread Gernot Vormayr
second part of a dual gpio, which has different device tree property names, the only way of consolidating that I can think of right now would be to create a function that takes the property names. If you think that's ok, I can try to come up with something. Cheers, Gernot Vormayr -- To unsu

[PATCH 1/1] gpio: Fix ngpio in gpio-xilinx driver

2014-09-18 Thread Gernot Vormayr
If one adds 'gpio-controller;' to the chip in the devicetree, then initialization fails with 'gpiochip_find_base: cannot find free range', because ngpio is 0. This patch fixes the bug. Tested on ml507 board. Signed-off-by: Gernot Vormayr --- drivers/gpio/gpio-xilinx.c | 11

[RESEND] [PATCH 1/1] block: Fix id of xsysace with missing port-number

2013-05-02 Thread Gernot Vormayr
If the port number is missing from the device-tree the device gets named xs` instead of xsa. This fixes the check for missing ids. Tested on ml507 board. Signed-off-by: Gernot Vormayr --- drivers/block/xsysace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH 1/1] powerpc: dts: virtex440: add ethernet phy to virtex440-ml507

2012-11-14 Thread Gernot Vormayr
This adds the marvel phy which is present on the ml507 board. Without this ethtool causes kernel-oopses. Tested on ml507 board. Signed-off-by: Gernot Vormayr --- arch/powerpc/boot/dts/virtex440-ml507.dts |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/boot/dts

[PATCH 1/1] block: Fix id of xsysace with missing port-number

2012-11-14 Thread Gernot Vormayr
Since id is u32 the comparsion < 0 will fail. The right way would be to check the return value of of_property_read_u32 Tested on ml507 board. Signed-off-by: Gernot Vormayr --- drivers/block/xsysace.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bl