[PATCH] MAINTAINERS: Add maintainer for LPC32xx

2013-04-02 Thread Roland Stigge
This patch adds Roland Stigge as maintainer for NXP LPC32xx. Signed-off-by: Roland Stigge --- MAINTAINERS |6 ++ 1 file changed, 6 insertions(+) --- linux-2.6.orig/MAINTAINERS +++ linux-2.6/MAINTAINERS @@ -4941,6 +4941,12 @@ W: logfs.org S: Maintained F: fs/logfs

Re: [PATCH] ARM: LPC32xx: changed lpc23xx_restart to lpc32xx_restart

2013-04-02 Thread Roland Stigge
On 02/04/13 17:58, Olof Johansson wrote: > On Wed, Mar 06, 2013 at 09:18:58PM +0100, Martin Knoll wrote: >> This function has an odd name. This is probably a typo. > > You should cc the platform maintainer on these kind of patches (Roland > Stigge). > But it seems that he&

[PATCH] mmc: mmc_spi: Fix return value evaluation of irq_of_parse_and_map()

2013-01-30 Thread Roland Stigge
patch changes to comparison with 0 which is the error return value of irq_of_parse_and_map(). Tested on ARM that mmc_spi is working now. Signed-off-by: Roland Stigge diff --git a/drivers/mmc/host/of_mmc_spi.c b/drivers/mmc/host/of_mmc_spi.c index 1534b58..d720b5e 100644 --- a/drivers/mmc/host

Re: [PATCH 6/6 v14] gpio: Add block gpio to several gpio drivers

2013-01-24 Thread Roland Stigge
On 01/24/2013 01:02 PM, Stijn Devriendt wrote: >> +static void lpc32xx_gpio_set_block_p3(struct gpio_chip *chip, >> + unsigned long mask, >> + unsigned long values) >> +{ >> + struct lpc32xx_gpio_chip *group = to_lpc32xx_

Re: [PATCH 6/6 v14] gpio: Add block gpio to several gpio drivers

2013-01-27 Thread Roland Stigge
On 27/01/13 13:18, Stijn Devriendt wrote: >>> In my patch, I go out of the way of this kind of thing for a simple reason: >>> You may generate incorrect timing by doing this. >> >> You are right, certain things like synchronous on+off is not really >> possible. >> >> However, the above at least sup

Re: [PATCH 1/6 v14] gpio: Add a block GPIO API to gpiolib

2013-01-27 Thread Roland Stigge
On 27/01/13 14:19, Stijn Devriendt wrote: >> +Block GPIO >> +-- >> + >> +The above described interface concentrates on handling single GPIOs. >> However, >> +in applications where it is critical to set several GPIOs at once, this >> +interface doesn't work well, e.g. bit-banging protocols

Re: [PATCH 5/6 v14] gpio: Add device tree support to block GPIO API

2013-01-27 Thread Roland Stigge
On 27/01/13 14:07, Stijn Devriendt wrote: >> +Example: >> + >> +blockgpio { >> +compatible = "linux,gpio-block"; >> + >> +block0 { >> +gpios = <&gpio 3 0 0>, >> +<&gpio 3 1 0>; >> +}; >>

Re: [PATCH 5/6 v14] gpio: Add device tree support to block GPIO API

2013-01-28 Thread Roland Stigge
On 01/28/2013 12:39 PM, Stijn Devriendt wrote: >>> In the device-tree this is specified as: >>> >>> powr@0x20 { >>>// other properties >>> >>> gpios = <&gpio 4 0 >>>&gpio 5 0>; >>> }; >>> >>> Is this kind of integration also possible? >> >> You can reference the gpio block via

Re: mxc_nand.c on mach-imx/imx53

2012-08-29 Thread Roland Stigge
Hi Sascha, On 08/29/2012 09:41 AM, Sascha Hauer wrote: > On Thu, Aug 23, 2012 at 11:30:54AM +0200, Roland Stigge wrote: >> Hi, >> >> I'd like to know about the current state of mxc_nand.c on imx53, because >> I got an error on probe() because the clock that mxc_na

Re: mxc_nand.c on mach-imx/imx53

2012-08-31 Thread Roland Stigge
Hi Eric, On 08/29/2012 05:28 PM, Eric Bénard wrote: > Le Wed, 29 Aug 2012 17:20:17 +0200, > Roland Stigge a écrit : >> Using ".ecclayout_4k = &nandv2_hw_eccoob_4k" also doesn't work. So is >> there any hint how I can proceed from here? Any plans or hint rega

Re: mxc_nand.c on mach-imx/imx53

2012-08-31 Thread Roland Stigge
On 08/31/2012 11:05 AM, Roland Stigge wrote: > I tried to port this on top of Sascha's patches for imx53, only for mxc v3 > for now, as below. > > Unfortunately, I still get: > > ... > UnCorrectable RS-ECC Error > UnCorrectable RS-ECC Error > UnCorrectable RS-

Re: [PATCH v6 1/3] spi/pl022: Add chip select handling via GPIO

2012-09-02 Thread Roland Stigge
Hi Shiraz, On 01/09/12 13:14, shiraz hashim wrote: > On Wed, Aug 22, 2012 at 7:19 PM, Roland Stigge wrote: >> @@ -2016,6 +2030,8 @@ pl022_probe(struct amba_device *adev, co >> pl022->master_info = platform_info; >> pl022->adev = adev; >>

[PATCH] spi/pl022: Fix chipselects pointer computation

2012-09-03 Thread Roland Stigge
ludgy pointer arithmetic with managed memory allocation for the chip selects. Signed-off-by: Roland Stigge --- drivers/spi/spi-pl022.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) --- linux-2.6.orig/drivers/spi/spi-pl022.c +++ linux-2.6/drivers/spi/spi-pl022.c @@ -2053,8 +2

Re: mxc_nand.c on mach-imx/imx53

2012-09-03 Thread Roland Stigge
On 09/03/2012 10:55 AM, Sascha Hauer wrote: > On Fri, Aug 31, 2012 at 12:57:37PM +0200, Roland Stigge wrote: >> On 08/31/2012 11:05 AM, Roland Stigge wrote: >>> I tried to port this on top of Sascha's patches for imx53, only for mxc v3 >>> for now, as below. &g

[PATCH RESEND] usb: ohci: Fix Kconfig dependency on USB_ISP1301

2012-09-03 Thread Roland Stigge
With "select USB_ISP1301 ...", it could happen that I2C isn't selected although USB_ISP1301 depends on it. Fixing with "depends on ..." and emulating the condition via "|| !()". Signed-off-by: Roland Stigge Acked-by: Alan Stern --- drivers/usb/host/K

Re: [PATCH RESEND 1/2] i2c: pnx: Fix bit definitions

2012-09-03 Thread Roland Stigge
Hi Wolfram, On 20/08/12 19:55, Wolfram Sang wrote: >> I've never had my hands on a PNX4008 chip at NXP, but I do >> believe they are the same IP. That specific I2C IP was used in a >> number of NXP/Phillips chips besides the PNX4008/LPC32xx. I don't >> think there are any PNX4008's in the wild, an

[PATCH RESEND] video: Remove pnx4008 driver

2012-09-03 Thread Roland Stigge
This patch removes the video driver for pnx4008. The architecture is being removed via the arm-soc tree. Signed-off-by: Roland Stigge Acked-by: Arnd Bergmann --- Applies to v3.6-rc4 drivers/video/Kconfig| 15 drivers/video/Makefile |2 drivers/video/pnx4008

Re: [PATCH] usb: gadget: lpc32xx_udc: Disable setup request error message

2012-09-14 Thread Roland Stigge
On 12/09/12 22:33, Alexandre Pereira da Silva wrote: > This message is an debugging message. It's useful for finding protocol > details but it's not necessarily an error. > > Signed-off-by: Alexandre Pereira da Silva Acked-by: Roland Stigge Yes, the Kevin Wells at NXP co

Re: [PATCH RFC 1/2] gpio: Add a block GPIO API to gpiolib

2012-10-04 Thread Roland Stigge
Hi, On 04/10/12 01:07, Linus Walleij wrote: >> What do others think? JC? Linus? I'm considering this (unsigned int >> data) a valid option. > > I think we mostly use an unsigned long for such stuff as IRQ flags > and ioctl() parameters in the kernel. > > In this case it has the upside that it wi

[PATCH RFC 2/2 v2] gpio-max730x: Add block GPIO API

2012-10-05 Thread Roland Stigge
This patch adds block GPIO API support to the MAX730x driver. Due to hardware constraints in this chip, simultaneous access to GPIO lines can only be done in groups of 8: GPIOs 0-7, 8-15, 16-23, 24-27. However, setting and clearing will be done at once. Signed-off-by: Roland Stigge

[PATCH RFC 1/2 v2] gpio: Add a block GPIO API to gpiolib

2012-10-05 Thread Roland Stigge
word: Once requested, it provides access to a group of GPIOs which can range over multiple GPIO chips. Signed-off-by: Roland Stigge --- NOTE: This is only useful if individual drivers implement the .get_block() and .set_block() functions. I'm providing an example implementation for max730x (see n

[PATCH 1/2] ARM: mach-imx: imx53.dtsi: pinctl update

2012-10-25 Thread Roland Stigge
This patch supplements pinctl support on i.MX53. Signed-off-by: Roland Stigge --- arch/arm/boot/dts/imx53.dtsi | 46 +++ 1 file changed, 46 insertions(+) --- linux-2.6.orig/arch/arm/boot/dts/imx53.dtsi +++ linux-2.6/arch/arm/boot/dts/imx53.dtsi

[PATCH 2/2] ARM: mach-imx: CAN clock fix for i.MX53

2012-10-25 Thread Roland Stigge
This patch fixes CAN clocking on i.MX53. Signed-off-by: Roland Stigge --- arch/arm/mach-imx/clk-imx51-imx53.c |8 1 file changed, 4 insertions(+), 4 deletions(-) --- linux-2.6.orig/arch/arm/mach-imx/clk-imx51-imx53.c +++ linux-2.6/arch/arm/mach-imx/clk-imx51-imx53.c @@ -426,10

[PATCH] watchdog: Support imx watchdog on SOC_IMX53

2012-10-25 Thread Roland Stigge
This patch fixes watchdog support after devicetree switch for imx53 Signed-off-by: Roland Stigge --- arch/arm/mach-imx/Kconfig |1 + 1 file changed, 1 insertion(+) --- linux-2.6.orig/arch/arm/mach-imx/Kconfig +++ linux-2.6/arch/arm/mach-imx/Kconfig @@ -739,6 +739,7 @@ config

Re: [PATCH 2/2] ARM: mach-imx: CAN clock fix for i.MX53

2012-10-26 Thread Roland Stigge
Hi! On 10/26/2012 10:59 AM, Sascha Hauer wrote: > On Thu, Oct 25, 2012 at 01:26:40PM +0200, Roland Stigge wrote: >> This patch fixes CAN clocking on i.MX53. >> >> Signed-off-by: Roland Stigge >> >> --- >> arch/arm/mach-imx/clk-imx51-imx53.c |8

Re: [PATCH 2/2] ARM: mach-imx: CAN clock fix for i.MX53

2012-10-26 Thread Roland Stigge
On 10/26/2012 12:30 PM, Marc Kleine-Budde wrote: + clk[can1_serial_gate] = imx_clk_gate2("can1_serial_gate", "can_sel", MXC_CCM_CCGR4, 6); +clk[can1_ipg_gate] = imx_clk_gate2("can1_ipg_gate", "ipg", MXC_CCM_CCGR4, 8); + clk[can2_serial_gate] = imx_clk_gate2("can2_serial_gat

Re: [PATCH 2/2] ARM: mach-imx: CAN clock fix for i.MX53

2012-10-26 Thread Roland Stigge
On 10/26/2012 01:05 PM, Roland Stigge wrote: > On 10/26/2012 12:30 PM, Marc Kleine-Budde wrote: >>>>> + clk[can1_serial_gate] = imx_clk_gate2("can1_serial_gate", >>>>> "can_sel", MXC_CCM_CCGR4, 6); + clk[can1_ipg_gate] = >>>>>

Re: [PATCH RESEND 1/5 v6] gpio: Add a block GPIO API to gpiolib

2012-10-31 Thread Roland Stigge
Hi Grant, thank you for your feedback! Notes below. On 10/31/2012 04:00 PM, Grant Likely wrote: > Linus and I just sat down and talked about your changes. I think I > understand what you need to do, but I've got concerns about the > approach. I'm already not a big fan of the sysfs gpio interface

Re: [PATCH RESEND 1/5 v6] gpio: Add a block GPIO API to gpiolib

2012-10-31 Thread Roland Stigge
Hi Linus, thanks for your notes, comments below: On 10/31/2012 03:06 PM, Linus Walleij wrote: >> +struct gpio_block *gpio_block_create(unsigned *gpios, size_t size, >> +const char *name) >> +{ >> + struct gpio_block *block; >> + struct gpio_block_ch

Re: [PATCH RESEND 1/5 v6] gpio: Add a block GPIO API to gpiolib

2012-11-02 Thread Roland Stigge
On 10/31/2012 07:59 PM, Grant Likely wrote: >> Pin direction currently needs to be set up separately, analogous to >> requesting gpios. Need to document this better, right. The assumption is >> that I/O needs to be efficient primarily, before bloating the API with >> direction functions. Or should

Re: [PATCH] video: Remove pnx4008 driver

2012-09-24 Thread Roland Stigge
Hi! On 09/23/2012 09:34 PM, Florian Tobias Schandinat wrote: > On 08/26/2012 02:23 PM, Roland Stigge wrote: >> This patch removes the video driver for pnx4008. The architecture is being >> removed via the arm-soc tree. >> >> Signed-off-by: Roland Stigge > > Ap

Re: [PATCH] gpio-lpc32xx: Fix value handling of gpio_direction_output()

2012-09-24 Thread Roland Stigge
On 24/09/12 21:55, Linus Walleij wrote: For GPIOs of gpio-lpc32xx, gpio_direction_output() ignores the value argument (initial value of output). This patch fixes this by setting the level accordingly. Signed-off-by: Roland Stigge Applied with Alexandre's ACK, should go into stable righ

[PATCH RESEND] gpio-lpc32xx: Fix value handling of gpio_direction_output()

2012-09-25 Thread Roland Stigge
For GPIOs of gpio-lpc32xx, gpio_direction_output() ignores the value argument (initial value of output). This patch fixes this by setting the level accordingly. Signed-off-by: Roland Stigge Acked-by: Alexandre Pereira da Silva --- Applies to v3.6-rc7 drivers/gpio/gpio-lpc32xx.c |5

[PATCH 1/2] gpio-lpc32xx: Add GPI_28

2012-09-25 Thread Roland Stigge
lizer" but this doesn't harm. Signed-off-by: Roland Stigge --- arch/arm/mach-lpc32xx/include/mach/gpio-lpc32xx.h |2 +- drivers/gpio/gpio-lpc32xx.c |3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) --- linux-2.6.orig/drivers/gpio/gpio-lpc32xx.c +

[PATCH 2/2] gpio: Document device_node's det_debounce

2012-09-25 Thread Roland Stigge
This patch adds documentation for set_debounce in struct device_node. Signed-off-by: Roland Stigge --- include/asm-generic/gpio.h |2 ++ 1 file changed, 2 insertions(+) --- linux-2.6.orig/include/asm-generic/gpio.h +++ linux-2.6/include/asm-generic/gpio.h @@ -60,6 +60,8 @@ struct

[GIT PULL] ARM: LPC32xx: DTS updates #2

2012-09-25 Thread Roland Stigge
) Roland Stigge (1): ARM: LPC32xx: LED fix in PHY3250 DTS file arch/arm/boot/dts/phy3250.dts | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

[GIT PULL] ARM: LPC32xx: Core updates #2

2012-09-25 Thread Roland Stigge
the git repository at: git://git.antcom.de/linux-2.6.git lpc32xx/core for you to fetch changes up to 8e4b97e3b8fd6a7f86bf8b38e7975549f2c48a78: ARM: LPC32xx: Support GPI 28 (2012-09-25 10:19:23 +0200) Roland Stigge (3

[PATCH] Input: select INPUT_MATRIXKMAP for lpc32xx-keys

2012-10-27 Thread Roland Stigge
ference to `matrix_keypad_build_keymap' Signed-off-by: Roland Stigge --- drivers/input/keyboard/Kconfig |1 + 1 file changed, 1 insertion(+) --- linux-2.6.orig/drivers/input/keyboard/Kconfig +++ linux-2.6/drivers/input/keyboard/Kconfig @@ -335,6 +335,7 @@ config KEYBOARD_LOCOMO config K

[PATCH] leds: leds-gpio: Defer probing in case of deferred gpio probing

2012-10-28 Thread Roland Stigge
This patch makes leds-gpio's probe() return -EPROBE_DEFER if any of the gpios to register are deferred themselves. This makes a change of gpio_leds_create_of()'s return value necessary: Instead of returning NULL on error, we now use ERR_PTR() error coding. Signed-off-by: Rol

irq_set_chained_handler() called too early for hwirq to be initialized

2012-10-28 Thread Roland Stigge
Hi, consider arch/arm/mach-lpc32xx/irq.c: irq_set_chained_handler() is called at a point where it accesses irq_to_desc(IRQ_LPC32XX_SUB2IRQ)->irq_data.hwirq but which is not yet initialized. (This bug just surfaced on lpc32xx when the chained interrupt controller SIC2 wasn't working. SIC1 does, bu

Re: [PATCH 1/2] drivers/net/ethernet/nxp/lpc_eth.c: Call mdiobus_unregister before mdiobus_free

2012-10-28 Thread Roland Stigge
coccinelle.lip6.fr/): > // > @@ > expression E; > @@ > ... when != mdiobus_unregister(E); > > + mdiobus_unregister(E); > mdiobus_free(E); > // > > Signed-off-by: Peter Senna Tschudin Tested-by: Roland Stigge Thanks for the patch! Roland > --- > This problem is

Re: irq_set_chained_handler() called too early for hwirq to be initialized

2012-10-28 Thread Roland Stigge
On 28/10/12 18:34, Thomas Gleixner wrote: > On Sun, 28 Oct 2012, Roland Stigge wrote: >> consider arch/arm/mach-lpc32xx/irq.c: irq_set_chained_handler() is >> called at a point where it accesses >> irq_to_desc(IRQ_LPC32XX_SUB2IRQ)->irq_data.hwirq but which is not yet >

[PATCH 1/3] ARM: LPC32xx: Remove superfluous irq_alloc_descs()

2012-10-28 Thread Roland Stigge
This patch removes the call to irq_alloc_descs() which always returns an error since the descriptors are always preallocated already. Signed-off-by: Roland Stigge --- arch/arm/mach-lpc32xx/irq.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) --- linux-2.6.orig/arch/arm/mach

[PATCH 3/3] ARM: LPC32xx: Cleanup irq.c

2012-10-28 Thread Roland Stigge
: Roland Stigge --- arch/arm/mach-lpc32xx/irq.c |5 - 1 file changed, 5 deletions(-) --- linux-2.6.orig/arch/arm/mach-lpc32xx/irq.c +++ linux-2.6/arch/arm/mach-lpc32xx/irq.c @@ -442,11 +442,6 @@ void __init lpc32xx_init_irq(void) lpc32xx_set_default_mappings(SIC1_APR_DEFAULT

[PATCH 2/3] ARM: LPC32xx: Relocate calls to irq_set_chained_handler()

2012-10-28 Thread Roland Stigge
tartup() -> irq_enable() -> desc->irq_data.chip->irq_unmask() at which point lpc32xx_unmask_irq() effectively read desc->irq_data.hwirq which was only later initialized. Signed-off-by: Roland Stigge --- arch/arm/mach-lpc32xx/irq.c |8 1 file changed, 4 insertions(+), 4 deletions(-

[PATCH RESEND 2/5 v6] gpio: Add sysfs support to block GPIO API

2012-10-28 Thread Roland Stigge
This patch adds sysfs support to the block GPIO API. Signed-off-by: Roland Stigge Signed-off-by: Greg Kroah-Hartman --- Documentation/ABI/testing/sysfs-gpio | 18 ++ drivers/gpio/gpiolib.c | 214 +++ include/asm-generic/gpio.h | 11

[PATCH RESEND 4/5 v6] gpio: Add device tree support to block GPIO API

2012-10-28 Thread Roland Stigge
This patch adds device tree support to the block GPIO API. Signed-off-by: Roland Stigge --- Documentation/devicetree/bindings/gpio/gpio-block.txt | 36 +++ drivers/gpio/Makefile |1 drivers/gpio/gpioblock-of.c | 84

[PATCH RESEND 5/5 v6] gpio: Add block gpio to several gpio drivers

2012-10-28 Thread Roland Stigge
This patch adds block GPIO support to several gpio drivers. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-em.c | 23 drivers/gpio/gpio-generic.c | 56 ++ drivers/gpio/gpio-lpc32xx.c | 82

[PATCH RESEND 0/5 v6] gpio: Add block GPIO

2012-10-28 Thread Roland Stigge
race condition in gpiolib on device creation Signed-off-by: Roland Stigge -- Changes since v5: * Documented sysfs: elaborated on "exported" and "values" attributes * Documented sysfs: gpiochip is a separate class now * Aggregated driver support patches for block gpio i

[PATCH RESEND 1/5 v6] gpio: Add a block GPIO API to gpiolib

2012-10-28 Thread Roland Stigge
word: Once requested, it provides access to a group of GPIOs which can range over multiple GPIO chips. Signed-off-by: Roland Stigge --- Documentation/gpio.txt | 47 + drivers/gpio/gpiolib.c | 217 + include/asm-generic/gpio.h | 15 +++ inc

[PATCH RESEND 3/5 v6] gpiolib: Fix default attributes for class

2012-10-28 Thread Roland Stigge
There is a race condition between creating a gpio or gpiochip device and adding default attributes. This patch fixes this by defining the default attributes as dev_attrs of the class. For this, it was necessary to create a separate gpiochip_class besides gpio_class. Signed-off-by: Roland Stigge

Re: 3.7-rc3 oops on reboot

2012-10-29 Thread Roland Stigge
On 10/29/2012 01:08 PM, Alexandre Pereira da Silva wrote: > I am getting oops on 3.7-rc3 at reboot. > > This is an LPC32XX machine. This problem only happens when I connect > the ethernet cable and get an IP address. > > Here are the kernel messages. > [ 38.57] Unable to handle kernel pagin

Re: 3.7-rc3 oops on reboot

2012-10-29 Thread Roland Stigge
On 10/29/2012 02:51 PM, Alexandre Pereira da Silva wrote: >> I just tried both on a PHY3250 reference machine, and on a custom board >> and couldn't reproduce sth. like this. Booted the kernel and connected >> the ethernet cable later on, as well as with cable connected on boot. > > This is happen

Re: [PATCH 2/2] ARM: mach-imx: CAN clock fix for i.MX53

2012-10-29 Thread Roland Stigge
y" needs to be documented better or changed, though, to prevent more confusion like in the above case. Thanks, Roland > On Thu, Oct 25, 2012 at 01:26:40PM +0200, Roland Stigge wrote: >> This patch fixes CAN clocking on i.MX53. >> >> Signed-off-by: Roland Sti

[PATCH] ARM: LPC32xx: Fix reset function

2013-09-04 Thread Roland Stigge
used anywhere else anymore. Signed-off-by: Roland Stigge -- Will provide a pull request for arm-soc when someone commented on this one. --- arch/arm/mach-lpc32xx/common.c | 29 ++--- 1 file changed, 6 insertions(+), 23 deletions(-) --- linux-2.6.orig/arch/arm/mach-lp

Re: linux-next: manual merge of the arm-soc tree with the usb tree

2012-09-06 Thread Roland Stigge
On 09/06/2012 07:42 AM, Stephen Rothwell wrote: > Today's linux-next merge of the arm-soc tree got a conflict in > drivers/usb/host/Kconfig between commit 952230d774bb ("usb: ohci: > Fix Kconfig dependency on USB_ISP1301") from the usb tree and > commit d684f05f2d55 ("ARM: mach-pnx4008: Remove arc

Re: [PATCH RFC 1/2 v2] gpio: Add a block GPIO API to gpiolib

2012-10-07 Thread Roland Stigge
Hi! On 07/10/12 21:47, Jean-Christophe PLAGNIOL-VILLARD wrote: >> +This creates a new block of GPIOs as a list of GPIO numbers with the >> specified >> +size which are accessible via the returned struct gpio_block and the >> accessor >> +functions described below. Please note that you need to re

Re: Pull request for mainline

2012-10-09 Thread Roland Stigge
Hi David and Artem! On 05/10/12 11:30, Roland Stigge wrote: > just small reminder, just in case: Now would be a good opportunity for a > pull request for mtd to mainline, if not already done. ;-) I found two others asking on the mtd list for the same, but also without a reply. So I hope y

[PATCH 5/6 v8] gpio: Add device tree support to block GPIO API

2012-11-30 Thread Roland Stigge
This patch adds device tree support to the block GPIO API. Signed-off-by: Roland Stigge --- Documentation/devicetree/bindings/gpio/gpio-block.txt | 36 +++ drivers/gpio/Makefile |1 drivers/gpio/gpioblock-of.c | 84

[PATCH 1/6 v8] gpio: Add a block GPIO API to gpiolib

2012-11-30 Thread Roland Stigge
word: Once requested, it provides access to a group of GPIOs which can range over multiple GPIO chips. Signed-off-by: Roland Stigge --- Documentation/gpio.txt | 58 +++ drivers/gpio/gpiolib.c | 227 + include/asm-generic/gpio.h | 17 ++

[PATCH 6/6 v8] gpio: Add block gpio to several gpio drivers

2012-11-30 Thread Roland Stigge
This patch adds block GPIO support to several gpio drivers. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-em.c | 23 drivers/gpio/gpio-generic.c | 56 ++ drivers/gpio/gpio-lpc32xx.c | 82

[PATCH 3/6 v8] gpio: Add userland device interface to block GPIO

2012-11-30 Thread Roland Stigge
This patch adds a character device interface to the block GPIO system. Signed-off-by: Roland Stigge --- Documentation/ABI/testing/dev-gpioblock | 25 ++ drivers/gpio/gpiolib.c | 121 +++- include/linux/gpio.h|4 + 3

[PATCH 0/6 v8] gpio: Add block GPIO

2012-11-30 Thread Roland Stigge
special accessor functions for block wise GPIO access * Fix for race condition in gpiolib on device creation Signed-off-by: Roland Stigge -- Changes since v7: * Fixed error in API documentation (name arg missing in prototype) * Fixed compile error if sysfs is missing: Moved gpio_block_is_output

[PATCH 2/6 v8] gpio: Add sysfs support to block GPIO API

2012-11-30 Thread Roland Stigge
This patch adds sysfs support to the block GPIO API. Signed-off-by: Roland Stigge --- Documentation/ABI/testing/sysfs-gpio | 20 ++ drivers/gpio/gpiolib.c | 247 +++ include/asm-generic/gpio.h | 11 + include/linux/gpio.h

[PATCH 4/6 v8] gpiolib: Fix default attributes for class

2012-11-30 Thread Roland Stigge
There is a race condition between creating a gpio or gpiochip device and adding default attributes. This patch fixes this by defining the default attributes as dev_attrs of the class. For this, it was necessary to create a separate gpiochip_class besides gpio_class. Signed-off-by: Roland Stigge

[PATCH 0/6 v9] gpio: Add block GPIO

2012-12-04 Thread Roland Stigge
special accessor functions for block wise GPIO access * Fix for race condition in gpiolib on device creation Signed-off-by: Roland Stigge -- Changed since v8: * Added poll() function to dev interface for IRQ handling * Fixed gpio_block_register() in case of missing CONFIG_GPIO_SYSFS * Fixed mask

[PATCH 5/6 v9] gpio: Add device tree support to block GPIO API

2012-12-04 Thread Roland Stigge
This patch adds device tree support to the block GPIO API. Signed-off-by: Roland Stigge --- Documentation/devicetree/bindings/gpio/gpio-block.txt | 36 +++ drivers/gpio/Makefile |1 drivers/gpio/gpioblock-of.c | 84

[PATCH 4/6 v9] gpiolib: Fix default attributes for class

2012-12-04 Thread Roland Stigge
There is a race condition between creating a gpio or gpiochip device and adding default attributes. This patch fixes this by defining the default attributes as dev_attrs of the class. For this, it was necessary to create a separate gpiochip_class besides gpio_class. Signed-off-by: Roland Stigge

[PATCH 6/6 v9] gpio: Add block gpio to several gpio drivers

2012-12-04 Thread Roland Stigge
This patch adds block GPIO support to several gpio drivers. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-em.c | 23 drivers/gpio/gpio-generic.c | 56 ++ drivers/gpio/gpio-lpc32xx.c | 82

Re: [PATCH 0/6 v8] gpio: Add block GPIO

2012-12-04 Thread Roland Stigge
Hi Wolfgang, On 03/12/12 10:17, Wolfgang Grandegger wrote: > I re-tried v8 on my AT91-SAM9G45 board and it works fine if > CONFIG_GPIO_SYSFS is enable. Unfortunately, the access via misc device > fails if CONFIG_GPIO_SYSFS is not set. That's due to gpio_block_export() > returning -ENOSYS in gpio_b

[PATCH 1/6 v9] gpio: Add a block GPIO API to gpiolib

2012-12-04 Thread Roland Stigge
word: Once requested, it provides access to a group of GPIOs which can range over multiple GPIO chips. Signed-off-by: Roland Stigge --- Documentation/gpio.txt | 58 +++ drivers/gpio/gpiolib.c | 227 + include/asm-generic/gpio.h | 17 ++

[PATCH 3/6 v9] gpio: Add userland device interface to block GPIO

2012-12-04 Thread Roland Stigge
This patch adds a character device interface to the block GPIO system. Signed-off-by: Roland Stigge --- Documentation/ABI/testing/dev-gpioblock | 34 + drivers/gpio/gpiolib.c | 208 +++- include/linux/gpio.h| 10 + 3

[PATCH 2/6 v9] gpio: Add sysfs support to block GPIO API

2012-12-04 Thread Roland Stigge
This patch adds sysfs support to the block GPIO API. Signed-off-by: Roland Stigge --- Documentation/ABI/testing/sysfs-gpio | 20 ++ drivers/gpio/gpiolib.c | 250 ++- include/asm-generic/gpio.h | 11 + include/linux/gpio.h

Re: [PATCH 0/6 v8] gpio: Add block GPIO

2012-12-05 Thread Roland Stigge
Hi Wolfgang, On 05/12/12 19:44, Wolfgang Grandegger wrote: >> * There is probably an explicit interrupt configuration necessary (via >> struct gpio_block, and devicetree, respectively) since there are >> constellations where gpio_to_irq() isn't working. E.g., in contrast to >> controllers which ar

Re: [PATCH 3/6 v9] gpio: Add userland device interface to block GPIO

2012-12-05 Thread Roland Stigge
Hi Wolfgang, On 05/12/12 20:01, Wolfgang Grandegger wrote: >> +for (i = 0; i < block->ngpio; i++) { >> +status = gpio_request(block->gpio[i], "gpioblock dev"); > > You could use the name of the GPIO block. OK. >> +if (status) >> +goto err1; >> + >

Re: [PATCH RFC 02/11 v4] gpio: Add sysfs support to block GPIO API

2012-10-17 Thread Roland Stigge
On 10/16/2012 06:43 PM, Greg KH wrote: > On Tue, Oct 16, 2012 at 02:53:45PM +0200, Roland Stigge wrote: >> On 10/16/2012 01:57 AM, Greg KH wrote: >>> On Tue, Oct 16, 2012 at 01:31:18AM +0200, Roland Stigge wrote: >>>> +int gpio_block_export(struct gpio_blo

[PATCH RFC 00/15 v5] gpio: Add block GPIO

2012-10-17 Thread Roland Stigge
race condition in gpiolib on device creation Signed-off-by: Roland Stigge -- Changes since v4: * Documented word width * Bugfix: export/unexport on register/unregister * Using default dev_attrs for gpio_block_class * Fix gpiolib: race condition on device creation * Added driver support for

[PATCH RFC 10/15 v5] gpio-pl061: Add block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds block GPIO API support to the gpio-pl061 driver. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-pl061.c | 17 + 1 file changed, 17 insertions(+) --- linux-2.6.orig/drivers/gpio/gpio-pl061.c +++ linux-2.6/drivers/gpio/gpio-pl061.c @@ -123,6 +123,21

[PATCH RFC 13/15 v5] gpio-xilinx: Add block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds block GPIO API support to the gpio-xilinx driver. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-xilinx.c | 44 1 file changed, 44 insertions(+) --- linux-2.6.orig/drivers/gpio/gpio-xilinx.c +++ linux-2.6/drivers/gpio/gpio

[PATCH RFC 14/15 v5] gpio-vt8500: Add block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds block GPIO API support to the gpio-vt8500 driver. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-vt8500.c | 24 1 file changed, 24 insertions(+) --- linux-2.6.orig/drivers/gpio/gpio-vt8500.c +++ linux-2.6/drivers/gpio/gpio-vt8500.c @@ -209,6

[PATCH RFC 04/15 v5] gpio: Add device tree support to block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds device tree support to the block GPIO API. Signed-off-by: Roland Stigge --- Documentation/devicetree/bindings/gpio/gpio-block.txt | 36 +++ drivers/gpio/Makefile |1 drivers/gpio/gpioblock-of.c | 84

[PATCH RFC 15/15 v5] gpio-ucb1400: Add block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds block GPIO API support to the gpio-ucb1400 driver. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-ucb1400.c | 23 +++ 1 file changed, 23 insertions(+) --- linux-2.6.orig/drivers/gpio/gpio-ucb1400.c +++ linux-2.6/drivers/gpio/gpio-ucb1400.c @@ -45,6

[PATCH RFC 12/15 v5] gpio-pcf857x: Add block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds block GPIO API support to the gpio-pcf857x driver. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-pcf857x.c | 24 1 file changed, 24 insertions(+) --- linux-2.6.orig/drivers/gpio/gpio-pcf857x.c +++ linux-2.6/drivers/gpio/gpio-pcf857x.c @@ -158,6

[PATCH RFC 11/15 v5] gpio-max732x: Add block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds block GPIO API support to the gpio-max732x driver. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-max732x.c | 59 1 file changed, 59 insertions(+) --- linux-2.6.orig/drivers/gpio/gpio-max732x.c +++ linux-2.6/drivers/gpio/gpio

[PATCH RFC 02/15 v5] gpio: Add sysfs support to block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds sysfs support to the block GPIO API. Signed-off-by: Roland Stigge --- Documentation/ABI/testing/sysfs-gpio |6 drivers/gpio/gpiolib.c | 214 +++ include/asm-generic/gpio.h | 11 + include/linux/gpio.h

[PATCH RFC 07/15 v5] gpio-generic: Add block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds block GPIO API support to the gpio-generic driver. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-generic.c | 56 1 file changed, 56 insertions(+) --- linux-2.6.orig/drivers/gpio/gpio-generic.c +++ linux-2.6/drivers/gpio/gpio

[PATCH RFC 03/15 v5] gpiolib: Fix default attributes for class

2012-10-17 Thread Roland Stigge
There is a race condition between creating a gpio or gpiochip device and adding default attribues. This patch fixes this by defining the default attributes as dev_attrs of the class. For this, it was necessary to create a separate gpiochip_class besides gpio_class. Signed-off-by: Roland Stigge

[PATCH RFC 09/15 v5] gpio-em: Add block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds block GPIO API support to the gpio-em driver. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-em.c | 23 +++ 1 file changed, 23 insertions(+) --- linux-2.6.orig/drivers/gpio/gpio-em.c +++ linux-2.6/drivers/gpio/gpio-em.c @@ -203,6 +203,27 @@ static

[PATCH RFC 06/15 v5] gpio-lpc32xx: Add block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds block GPIO API support to the LPC32xx driver. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-lpc32xx.c | 82 1 file changed, 82 insertions(+) --- linux-2.6.orig/drivers/gpio/gpio-lpc32xx.c +++ linux-2.6/drivers/gpio/gpio

[PATCH RFC 08/15 v5] gpio-pca953x: Add block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds block GPIO API support to the gpio-pca953x driver. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-pca953x.c | 64 1 file changed, 64 insertions(+) --- linux-2.6.orig/drivers/gpio/gpio-pca953x.c +++ linux-2.6/drivers/gpio/gpio

[PATCH RFC 01/15 v5] gpio: Add a block GPIO API to gpiolib

2012-10-17 Thread Roland Stigge
word: Once requested, it provides access to a group of GPIOs which can range over multiple GPIO chips. Signed-off-by: Roland Stigge --- Documentation/gpio.txt | 47 + drivers/gpio/gpiolib.c | 217 + include/asm-generic/gpio.h | 15 +++ inc

[PATCH RFC 05/15 v5] gpio-max730x: Add block GPIO API

2012-10-17 Thread Roland Stigge
This patch adds block GPIO API support to the MAX730x driver. Due to hardware constraints in this chip, simultaneous access to GPIO lines can only be done in groups of 8: GPIOs 0-7, 8-15, 16-23, 24-27. However, setting and clearing will be done at once. Signed-off-by: Roland Stigge

Re: [PATCH RFC 02/15 v5] gpio: Add sysfs support to block GPIO API

2012-10-18 Thread Roland Stigge
On 10/17/2012 09:05 PM, Greg KH wrote: >> +static int gpio_block_value_unexport(struct gpio_block *block) >> +{ >> +struct device *dev; >> +int i; >> + >> +dev = class_find_device(&gpio_block_class, NULL, block, match_export); >> +if (!dev) >> +return -ENOD

[PATCH 2/2] rtc-imxdi: Add devicetree support

2012-10-18 Thread Roland Stigge
This patch adds device tree support to the rtc-imxdi driver. Signed-off-by: Roland Stigge --- Documentation/devicetree/bindings/rtc/imxdi-rtc.txt | 17 + drivers/rtc/rtc-imxdi.c | 11 +++ 2 files changed, 28 insertions(+) --- /dev/null

[PATCH 1/2] rtc-imxdi: Support for i.MX53

2012-10-18 Thread Roland Stigge
This patch enables support for i.MX53 in addition to i.MX25 by enabling the driver on ARCH_MXC generally. Signed-off-by: Roland Stigge --- drivers/rtc/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.orig/drivers/rtc/Kconfig +++ linux-2.6/drivers/rtc/Kconfig

[PATCH] ARM: mach-imx: Support for DryIce RTC in i.MX53

2012-10-18 Thread Roland Stigge
This patch enables support for i.MX53 in addition to i.MX25 by providing a dummy clock on i.MX53 since this one doesn't have a separate clock for internal RTC but the driver requests one. Signed-off-by: Roland Stigge --- arch/arm/mach-imx/clk-imx51-imx53.c |1 + 1 file changed, 1 inse

Re: [PATCH RFC 02/15 v5] gpio: Add sysfs support to block GPIO API

2012-10-19 Thread Roland Stigge
On 10/19/2012 12:35 PM, Linus Walleij wrote: > On Thu, Oct 18, 2012 at 12:07 PM, Roland Stigge wrote: >> On 10/17/2012 09:05 PM, Greg KH wrote: >>>> >>>> +if (value != exported) { >>>> +if (value) >>>> +

[PATCH 3/5 v6] gpiolib: Fix default attributes for class

2012-10-20 Thread Roland Stigge
There is a race condition between creating a gpio or gpiochip device and adding default attributes. This patch fixes this by defining the default attributes as dev_attrs of the class. For this, it was necessary to create a separate gpiochip_class besides gpio_class. Signed-off-by: Roland Stigge

[PATCH 4/5 v6] gpio: Add device tree support to block GPIO API

2012-10-20 Thread Roland Stigge
This patch adds device tree support to the block GPIO API. Signed-off-by: Roland Stigge --- Documentation/devicetree/bindings/gpio/gpio-block.txt | 36 +++ drivers/gpio/Makefile |1 drivers/gpio/gpioblock-of.c | 84

[PATCH 5/5 v6] gpio: Add block gpio to several gpio drivers

2012-10-20 Thread Roland Stigge
This patch adds block GPIO support to several gpio drivers. Signed-off-by: Roland Stigge --- drivers/gpio/gpio-em.c | 23 drivers/gpio/gpio-generic.c | 56 ++ drivers/gpio/gpio-lpc32xx.c | 82

  1   2   3   4   >