Re: [PATCH] rtc: rtc-at91rm9200: use a variable for storing IMR

2013-03-21 Thread Nicolas Ferre
On 03/20/2013 10:50 PM, Andrew Morton : > On Fri, 15 Mar 2013 18:37:12 +0100 Nicolas Ferre > wrote: > >> On some revisions of AT91 SoCs, the RTC IMR register is not working. >> Instead of elaborating a workaround for that specific SoC or IP version, >> we simply use a

Re: [PATCH] rtc: at91rm9200: add DT support

2013-03-21 Thread Nicolas Ferre
On 03/08/2013 10:14 AM, Nicolas Ferre : > On 02/14/2013 10:59 PM, Joachim Eastwood : >> Signed-off-by: Joachim Eastwood > > Acked-by: Nicolas Ferre > > Alessandro, do you want to queue this one on your side? Ping? Maybe Andrew, you may take this one on your

[PATCH v2 0/7] pcmcia: at91_cf: clean up and add DT support

2013-03-21 Thread Nicolas Ferre
These patches clean up at91_cf a bit and add DT bindings. It is based on a previous series from Joachim Eastwood and other cleanup patches by Fabio and Laurent. I have collected them together as they are lying around for some time. Please tell me if It can go through PCMCIA tree or if Andrew or Gr

[PATCH v2 1/7] pcmcia: at91_cf: fix gpio_get_value in at91_cf_get_status

2013-03-21 Thread Nicolas Ferre
From: Joachim Eastwood Commit 80af9e6d (pcmcia at91_cf: fix raw gpio number usage) forgot to change the parameter in gpio_get_value after adding gpio validation. Signed-off-by: Joachim Eastwood Signed-off-by: Nicolas Ferre --- drivers/pcmcia/at91_cf.c | 4 ++-- 1 file changed, 2 insertions

[PATCH v2 2/7] pcmcia: at91_cf: convert to dev_ print functions

2013-03-21 Thread Nicolas Ferre
From: Joachim Eastwood Convert all pr_* functions to equivalent dev_* functions and drop the driver_name variable. Signed-off-by: Joachim Eastwood Signed-off-by: Nicolas Ferre --- drivers/pcmcia/at91_cf.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff

[PATCH v2 3/7] pcmcia: at91_cf: use devm_ functions for allocations

2013-03-21 Thread Nicolas Ferre
From: Joachim Eastwood Signed-off-by: Joachim Eastwood Signed-off-by: Nicolas Ferre --- drivers/pcmcia/at91_cf.c | 77 +++- 1 file changed, 24 insertions(+), 53 deletions(-) diff --git a/drivers/pcmcia/at91_cf.c b/drivers/pcmcia/at91_cf.c index

[PATCH v2 4/7] pcmcia: at91_cf: clean up header includes

2013-03-21 Thread Nicolas Ferre
From: Joachim Eastwood Use includes from linux/ instead of asm/ and remove a unnecessary mach/ include. Signed-off-by: Joachim Eastwood Signed-off-by: Nicolas Ferre --- drivers/pcmcia/at91_cf.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pcmcia/at91_cf.c

[PATCH v2 5/7] pcmcia: at91_cf: add support for DT

2013-03-21 Thread Nicolas Ferre
From: Joachim Eastwood Signed-off-by: Joachim Eastwood Signed-off-by: Nicolas Ferre --- .../devicetree/bindings/ata/atmel-at91_cf.txt | 19 + drivers/pcmcia/Kconfig | 2 +- drivers/pcmcia/at91_cf.c | 45

[PATCH v2 6/7] pcmcia: at91_cf: use module_platform_driver_probe()

2013-03-21 Thread Nicolas Ferre
From: Fabio Porcedda Use module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Fabio Porcedda Cc: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Nicolas Ferre --- drivers/pcmcia/at91_cf.c | 12 +--- 1 file changed, 1 insertion(+), 11

[PATCH v2 7/7] pcmcia/trivial: at91_cf: fix checkpatch error

2013-03-21 Thread Nicolas Ferre
From: Laurent Navet fix this checkpatch error: - ERROR: switch and case should be at the same indent Signed-off-by: Laurent Navet Signed-off-by: Nicolas Ferre --- drivers/pcmcia/at91_cf.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/pcmcia

Re: [PATCH] DTS at91sam9x5ek: i2c1 and i2c2 conflict with macb and lcd

2013-03-21 Thread Nicolas Ferre
On 03/20/2013 12:22 PM, Richard Genoud : > on at91sam9x5ek, macb0 is enabled, so it conflicts with i2c2 (PB4) > same for i2c1, (conflicts with LCD). > Moreover, only i2c0 is used on this board. > > Signed-off-by: Richard Genoud Acked-by: Nicolas Ferre And pushed to at91

Re: [PATCH] DTS at91sam9x5cm: add 1-wire chip on CM board

2013-03-21 Thread Nicolas Ferre
On 03/20/2013 12:23 PM, Richard Genoud : > This add the 1-wire chip present on the CM board to the DTS. > As the pin is also used by leds, tt's disabled by default. > If the board really wants it, it can be enabled in the board DTS. > > Signed-off-by: Richard Genoud Ack

[GIT PULL] at91: dt for 3.10 #1

2013-03-21 Thread Nicolas Ferre
RM92000 DT ARM: at91: add MPA 1600 DT board Nicolas Ferre (1): ARM: at91/dt: gpio-keys: remove address-cells and size-cells properties Richard Genoud (4): ARM: at91: dt: at91sam9x5: add i2c pinctrl ARM: at91: dt: at91sam9x5: add i2c-gpio pinctrl ARM: at91/at91sam9x5ek

[GIT PULL] at91: fixes for 3.9-rc1

2013-02-05 Thread Nicolas Ferre
T nodes (2013-02-05 10:55:11 +0100) Correction of 9x5 and 9n12 USART nodes -------- Nicolas Ferre (1): ARM: at91/DT: remove atmel,use-dma-* from 9x5 and 9n12 USART nodes arch/arm/boot/dts/at91sam9n12.dtsi | 8 arch/arm/boot

Re: [v4 PATCH 11/12] ARM: dts: add spi nodes for atmel SoC

2013-02-06 Thread Nicolas Ferre
pi@f0004000 { >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + compatible = "atmel,at91sam9x5-spi"; >>> + reg = <0xf0004000 0x100>; >>> +

[GIT PULL] at91: Device Tree related material for 3.9

2013-02-07 Thread Nicolas Ferre
meo_ip.dts| 4 + arch/arm/boot/dts/at91rm9200.dtsi | 158 +++ arch/arm/boot/dts/at91rm9200ek.dts | 5 ++ arch/arm/mach-at91/at91rm9200.c| 2 + 4 files changed, 169 insertions(+) Thanks best regards, -- Nicolas Ferre -- To unsubscribe from this list

[PATCH] ARM: at91: remove NEOCORE 926 board

2013-02-07 Thread Nicolas Ferre
The board is not available anymore and it seems its use is very limited. Signed-off-by: Nicolas Ferre Cc: Alexandre Belloni --- arch/arm/mach-at91/Kconfig| 6 - arch/arm/mach-at91/Makefile | 1 - arch/arm/mach-at91/board-neocore926.c | 387

[GIT PULL] at91: little cleanup for 3.9

2013-02-08 Thread Nicolas Ferre
. Nicolas Ferre (1): ARM: at91: remove NEOCORE 926 board arch/arm/mach-at91/Kconfig| 6 - arch/arm/mach-at91/Makefile | 1 - arch/arm/mach-at91/board-neocore926.c | 387 --- 3 files

[GIT PULL v2] at91: little cleanup for 3.9

2013-02-08 Thread Nicolas Ferre
board (2013-02-08 16:25:20 +0100) Little AT91 cleanup: only remove one deprecated board. Nicolas Ferre (1): ARM: at91: remove NEOCORE 926 board arch/arm/configs

[PATCH 1/5] atmel_lcdfb: fix 16-bpp modes on older SOCs

2013-02-08 Thread Nicolas Ferre
t. Tested on at91sam9263 and at91sam9g45. Cc: Acked-by: Peter Korsgaard Signed-off-by: Johan Hovold Signed-off-by: Nicolas Ferre --- drivers/video/atmel_lcdfb.c | 22 +++--- include/video/atmel_lcdc.h | 1 + 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/dri

[PATCH 2/5] ARM: at91/neocore926: fix LCD-wiring mode

2013-02-08 Thread Nicolas Ferre
ned-off-by: Nicolas Ferre --- arch/arm/mach-at91/board-neocore926.c | 2 +- include/video/atmel_lcdc.h| 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-at91/board-neocore926.c b/arch/arm/mach-at91/board-neocore926.c index bc7a1c4..4726297 100644 --- a/arc

[PATCH 3/5] ARM: at91/avr32/atmel_lcdfb: add bus-clock entry

2013-02-08 Thread Nicolas Ferre
the conditional enabling of the clocks in the driver which relied on the cpu_is macros. Tested on at91sam9263 and at91sam9g45, compile-tested for other AT91-SOCs, and untested for AVR32. Signed-off-by: Johan Hovold Signed-off-by: Nicolas Ferre --- arch/arm/mach-at91/at91sam9261.c| 1

[PATCH 4/5] atmel_lcdfb: move lcdcon2 register access to compute_hozval

2013-02-08 Thread Nicolas Ferre
From: Johan Hovold Pass atmel_lcd_info structure to compute_hozval and only do the register access on SOCs that actually use it. This will also simplify the removal of the cpu_is macros. Signed-off-by: Johan Hovold Signed-off-by: Nicolas Ferre --- drivers/video/atmel_lcdfb.c | 8 +--- 1

[PATCH 0/5] at91: atmel_lcdfb: regression fixes and cpu_is removal

2013-02-08 Thread Nicolas Ferre
These patches fix a regression in 16-bpp support for older SOCs which use IBGR:555 rather than BGR:565 pixel layout. Use SOC-type to determine if the controller uses the intensity-bit and restore the old layout in that case. The last patch is a removal of uses of cpu_is_() macros in atmel_lcdf

[PATCH 5/5] ARM: at91/avr32/atmel_lcdfb: add platform device-id table

2013-02-08 Thread Nicolas Ferre
cpu_is macros from the driver. Tested on at91sam9263 and at91sam9g45, compile-tested for other AT91-SOCs, and untested for AVR32. Signed-off-by: Johan Hovold Signed-off-by: Nicolas Ferre --- arch/arm/mach-at91/at91sam9261.c | 3 +- arch/arm/mach-at91/at91sam9261_devices.c | 6

Re: [GIT PULL] at91: fixes for 3.9-rc1

2013-02-12 Thread Nicolas Ferre
On 02/05/2013 11:20 AM, Nicolas Ferre : > Arnd, Olof, > > As I realized reading Linus' email that it was not possible to queue more > fixes for 3.8, I took my time to send this tiny pull request. But now that > the merge window is approaching, I prefer not to wait for more mat

[PATCH] net/macb: fix race with RX interrupt while doing NAPI

2013-02-12 Thread Nicolas Ferre
When interrupts are disabled, an RX condition can occur but it is not reported when enabling interrupts again. We need to check RSR and use napi_reschedule() if condition is met. Signed-off-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c | 5 + 1 file changed, 5 insertions

[RFC PATCH] rtc: rtc-at91rm9200: manage IMR depending on revision

2013-04-02 Thread Nicolas Ferre
Signed-off-by: Nicolas Ferre --- Hi all, The funny thing is that I was writing exactly the same code as Johan's when he posted his series. So, here is my single patch, with the comment about the readback stolen from Johan's, but without the way to determine with IP is buggy and which

Re: [RFC PATCH] rtc: rtc-at91rm9200: manage IMR depending on revision

2013-04-02 Thread Nicolas Ferre
On 04/02/2013 05:32 PM, Douglas Gilbert : > On 13-04-02 09:06 AM, Nicolas Ferre wrote: >> Signed-off-by: Nicolas Ferre >> --- >> Hi all, >> >> The funny thing is that I was writing exactly the same code as Johan's >> when he posted his series. >>

[RFC PATCH v2] rtc: rtc-at91rm9200: manage IMR depending on revision

2013-04-02 Thread Nicolas Ferre
Signed-off-by: Nicolas Ferre --- Hi again, Here is my latest revision of this fix. It depends on the patch that is already in Andrew's patch stack: "drivers-rtc-rtc-at91rm9200c-add-dt-support.patch". I now use a different compatibility string to figure out what is the IP revisi

Re: [GIT PULL] at91: soc for 3.10 #2

2013-04-03 Thread Nicolas Ferre
On 04/03/2013 02:26 AM, Olof Johansson : > On Wed, Mar 27, 2013 at 12:01 PM, Arnd Bergmann wrote: >> On Wednesday 27 March 2013, Nicolas Ferre wrote: >> >>> >>> Introduction of new Atmel Cortex-A5:

Re: [PATCH] ARM: at91/tc: fix clock source id for tc block > 1

2013-04-03 Thread Nicolas Ferre
gt;dev, clk_id); >> if (IS_ERR(tc->clk[1])) >> tc->clk[1] = clk; >> -tc->clk[2] = clk_get(&pdev->dev, "t2_clk"); >> +snprintf(clk_id, sizeof(clk_id), "t%d_clk", clk_offset++); >> +tc->clk[2] = clk_

Re: [GIT PULL] at91: DT changes for 3.10 #2

2013-04-03 Thread Nicolas Ferre
On 04/02/2013 08:49 PM, Olof Johansson : > On Fri, Mar 29, 2013 at 03:59:39PM +0100, Nicolas Ferre wrote: >> Arnd, Olof, >> >> Here is a pull-request for AT91 that is dedicated to Device Tree >> modifications. It is stacked on the material that you already have >>

Re: [PATCH] ARM: at91/tc: fix clock source id for tc block > 1

2013-04-03 Thread Nicolas Ferre
On 04/03/2013 09:59 AM, Boris BREZILLON : > On 03/04/2013 09:26, Nicolas Ferre wrote: >> On 04/03/2013 06:45 AM, Jean-Christophe PLAGNIOL-VILLARD : >>> On 18:46 Tue 02 Apr , Boris BREZILLON wrote: >>>> This patch fixes wrong clock request for TC block 2. >>

[PATCH] ARM: at91: remove unused dbgu_readl() macro

2013-04-03 Thread Nicolas Ferre
Signed-off-by: Nicolas Ferre --- arch/arm/mach-at91/include/mach/at91_dbgu.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-at91/include/mach/at91_dbgu.h b/arch/arm/mach-at91/include/mach/at91_dbgu.h index 2aa0c5e..3b59485 100644 --- a/arch/arm/mach-at91/include/mach

Re: [PATCH] Revert "drivers/rtc/rtc-at91rm9200.c: use a variable for storing IMR"

2013-04-03 Thread Nicolas Ferre
w, please can you take this "revert" patch for 3.9-rc ? And sorry for the noise. Acked-by: Nicolas Ferre (Andrew, I figured out that you are not in copy of the original email: do I need to send it back to you or can you pick it up in patchwork? https://patchwork.kernel.org/patch/2385921/ )

Re: [RFC PATCH v2] rtc: rtc-at91rm9200: manage IMR depending on revision

2013-04-03 Thread Nicolas Ferre
On 04/03/2013 11:51 AM, Johan Hovold : > On Tue, Apr 02, 2013 at 06:36:06PM +0200, Nicolas Ferre wrote: >> Signed-off-by: Nicolas Ferre >> --- >> Hi again, >> >> Here is my latest revision of this fix. It depends on the patch that is >> already >&

Re: [GIT PULL] at91: DT changes for 3.10 #2

2013-04-04 Thread Nicolas Ferre
On 04/03/2013 09:45 AM, Nicolas Ferre : > On 04/02/2013 08:49 PM, Olof Johansson : >> On Fri, Mar 29, 2013 at 03:59:39PM +0100, Nicolas Ferre wrote: >>> Arnd, Olof, >>> >>> Here is a pull-request for AT91 that is dedicated to Device Tree >>> modifica

Re: [PATCH v2] ARM: at91: add Acme Systems Aria G25 board

2013-04-04 Thread Nicolas Ferre
On 04/03/2013 09:10 PM, Douglas Gilbert : > On 13-04-02 02:48 PM, Olof Johansson wrote: >> Hi, >> >> I just saw this since it came in through a pull request >> >> On Tue, Mar 26, 2013 at 4:39 AM, Nicolas Ferre >> wrote: >>> From: Douglas Gilbert &g

[PATCH v3] ARM: at91: add Acme Systems Aria G25 board

2013-04-04 Thread Nicolas Ferre
From: Douglas Gilbert Signed-off-by: Douglas Gilbert Signed-off-by: Nicolas Ferre --- Hi all, Here is the third revision of this patch. I plan to include it in a pull-request real-soon-now! v3: - move to "at91-" prefix for .dts[i] files - remove the rtc activation code beca

[PATCH v2] ARM: at91/at91sam9260.dtsi: fix u(s)art pinctrl encoding

2013-04-04 Thread Nicolas Ferre
From: Douglas Gilbert Signed-off-by: Douglas Gilbert [nicolas.fe...@atmel.com: fix rts/cts for usart3] Signed-off-by: Nicolas Ferre Cc: stable #3.8+ --- Hi, v2: - add commit message - correct rts/cts for usart3 - add stable tag arch/arm/boot/dts/at91sam9260.dtsi | 16

[GIT PULL] at91: DT changes for 3.10 #3

2013-04-04 Thread Nicolas Ferre
nctrl encoding Ludovic Desroches (1): ARM: at91: dts: add adc resolution stuff Nicolas Ferre (5): ARM: at91/at91sam9x5: add RTC node ARM: at91/trivial: typos in compatible property ARM: at91/trivial: fix model name for SAM9G15-EK ARM: at91: remove partial paramet

Re: [PATCH] Revert "drivers/rtc/rtc-at91rm9200.c: use a variable for storing IMR"

2013-04-05 Thread Nicolas Ferre
On 04/03/2013 12:18 PM, Nicolas Ferre : > On 04/03/2013 11:54 AM, Johan Hovold : >> This reverts commit 0ef1594c017521ea89278e80fe3f80dafb17abde. >> >> This patch introduced a few races which cannot be easily fixed with a >> small follow-up patch. Furthermore, the S

[PATCH] Revert "drivers/rtc/rtc-at91rm9200.c: use a variable for storing IMR"

2013-04-05 Thread Nicolas Ferre
driver currently does not support. Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Nicolas Ferre --- Linus, As suggested by Greg, I send you directly this "revert" patch. I hope it will join your tree before 3.9-final. Here is the discussion that led to this "revert" pat

[GIT PULL] at91: fixes for 3.8-rc6

2013-01-30 Thread Nicolas Ferre
(-) Thanks, bye, -- Nicolas Ferre -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH] ARM: at91/DT: remove atmel,use-dma-* from 9x5 and 9n12 USART nodes

2013-01-30 Thread Nicolas Ferre
(private DMA) on older SoCs. This is why the driver alone cannot determine the validity of this property. Reported-by: Douglas Gilbert Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/at91sam9n12.dtsi | 8 arch/arm/boot/dts/at91sam9x5.dtsi | 6 -- 2 files changed, 14 deletions

Re: [PATCH 7/9] ARM: at91/at91_dt_defconfig: remove memory specification to cmdline

2013-01-24 Thread Nicolas Ferre
On 01/23/2013 11:20 AM, Jean-Christophe PLAGNIOL-VILLARD : > On 10:48 Wed 23 Jan , Nicolas Ferre wrote: >> No need for this cmdline option as we are using DT. >> Moreover this defconfig is targeted to multiple SoC/boards: this option >> was nonsense. > just keep t

[GIT PULL] at91: fixes for 3.8-rc5

2013-01-24 Thread Nicolas Ferre
version Joachim Eastwood (1): ARM: at91: fix gpios on i2c-gpio for RM9200 DT Nicolas Ferre (2): ARM: at91/at91_dt_defconfig: remove memory specification to cmdline ARM: at91/at91_dt_defconfig: add at91sam9n12 SoC to DT defconfig Richard Genoud (3): ARM: at91/at91-pinctrl

Re: [PATCH 10/19] watchdog: at91sam9: at91_wdt_dt_ids cannot be __init

2013-01-28 Thread Nicolas Ferre
nn > Cc: Wim Van Sebroeck > Cc: linux-watch...@vger.kernel.org > Cc: Nicolas Ferre Acked-by: Nicolas Ferre Thanks, > Cc: Fabio Porcedda > --- > drivers/watchdog/at91sam9_wdt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers

Re: [PATCH 14/19] spi/atmel: remove incorrect __exit_p()

2013-01-28 Thread Nicolas Ferre
i/spi-atmel.c:1006:12: warning: 'atmel_spi_remove' defined but not > used [-Wunused-function] > > Signed-off-by: Arnd Bergmann > Cc: Nicolas Ferre Acked-by: Nicolas Ferre > Cc: Grant Likely > Cc: spi-devel-gene...@lists.sourceforge.net > --- > drivers/spi/

[GIT PULL] at91: fixes for 3.9-rc #1

2013-03-13 Thread Nicolas Ferre
| 61 ++- 5 files changed, 110 insertions(+), 17 deletions(-) -- Nicolas Ferre -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Plea

Re: [PATCH 0/5] at91: atmel_lcdfb: regression fixes and cpu_is removal

2013-03-13 Thread Nicolas Ferre
On 03/08/2013 10:37 AM, Nicolas Ferre : > On 02/10/2013 07:45 PM, Johan Hovold : >> On Sun, Feb 10, 2013 at 1:47 AM, Olof Johansson wrote: >>> On Fri, Feb 08, 2013 at 05:35:13PM +0100, Nicolas Ferre wrote: >>>> These patches fix a regression in 16-bpp support for

Re: [GIT PULL] at91: fixes for 3.9-rc #1

2013-03-14 Thread Nicolas Ferre
| 10 -- drivers/pinctrl/pinctrl-at91.c | 61 ++- 5 files changed, 110 insertions(+), 17 deletions(-) -- Nicolas Ferre -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kerne

[GIT PULL] at91: framebuffer enhancements for 3.10

2013-03-15 Thread Nicolas Ferre
| 120 +++ include/video/atmel_lcdc.h | 4 +- 11 files changed, 117 insertions(+), 35 deletions(-) -- Nicolas Ferre -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: [PATCH 0/5] at91: atmel_lcdfb: regression fixes and cpu_is removal

2013-03-15 Thread Nicolas Ferre
On 03/15/2013 12:03 AM, Arnd Bergmann : > On Wednesday 13 March 2013, Nicolas Ferre wrote: >> In case we end-up with an agreement on the path those fixes should >> follow, here is the location of my updated material rebased on top of >> 3.9-rc2: >> >> T

[GIT PULL] at91: cleanup + soc for 3.10 #1

2013-03-15 Thread Nicolas Ferre
), 402 deletions(-) create mode 100644 arch/arm/mach-at91/Kconfig.non_dt rename arch/arm/mach-at91/{board-rm9200-dt.c => board-dt-rm9200.c} (100%) rename arch/arm/mach-at91/{board-dt.c => board-dt-sam9.c} (100%) -- Nicolas Ferre -- To unsubscribe from this list: send the line "unsubsc

Re: [PATCH 1/1] tty: atmel_serial_probe(): index of atmel_ports[] fix

2013-03-15 Thread Nicolas Ferre
On 02/20/2013 05:26 PM, Pawel Wieczorkiewicz : > From: Pawel Wieczorkiewicz > > Index of atmel_ports[ATMEL_MAX_UART] should be smaller > than ATMEL_MAX_UART. > > Signed-off-by: Pawel Wieczorkiewicz Acked-by: Nicolas Ferre It can be good to include this one in 3.9-rc. I

Re: [PATCH] MAINTAINERS: add maintainer entry for atmel i2c driver

2013-03-15 Thread Nicolas Ferre
On 03/15/2013 04:32 PM, ludovic.desroc...@atmel.com : > From: Ludovic Desroches > > Create an entry for atmel i2c driver: i2c-at91.c > > Signed-off-by: Ludovic Desroches Acked-by: Nicolas Ferre > --- > Hello, > > If there are no objections, I'll take the ma

[PATCH] rtc: rtc-at91rm9200: use a variable for storing IMR

2013-03-15 Thread Nicolas Ferre
negligible anyway. Reported-by: Douglas Gilbert Signed-off-by: Nicolas Ferre --- drivers/rtc/rtc-at91rm9200.c | 50 +++- drivers/rtc/rtc-at91rm9200.h | 1 - 2 files changed, 31 insertions(+), 20 deletions(-) diff --git a/drivers/rtc/rtc-at91rm9200.c b

[PATCH] USB: ohci-at91: fix PIO handling in relation with number of ports

2012-08-29 Thread Nicolas Ferre
0ee6d1e (USB: ohci-at91: change maximum number of ports) that did not modified the associatd board files. Reported-by: Klaus Falkner Signed-off-by: Nicolas Ferre Cc: Alan Stern Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: Stable [3.4+] --- drivers/usb/host/ohci-at91.c | 10

Re: [PATCH] USB: ohci-at91: fix PIO handling in relation with number of ports

2012-09-04 Thread Nicolas Ferre
On 08/29/2012 11:49 AM, Nicolas Ferre : > If the number of ports present on the SoC/board is not the maximum > and that the platform data is not filled with all data, there is > an easy way to mess the PIO setup for this interface. > This quick fix addresses mis-configuration in USB h

[PATCH 01/10] net/macb: Add support for Gigabit Ethernet mode

2012-09-05 Thread Nicolas Ferre
From: Patrice Vilchez Add Gigabit Ethernet mode to GEM cadence IP and enable RGMII connection. Signed-off-by: Patrice Vilchez Signed-off-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c | 15 --- drivers/net/ethernet/cadence/macb.h |4 2 files changed, 16

[PATCH 03/10] net/macb: change debugging messages

2012-09-05 Thread Nicolas Ferre
status] Signed-off-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 26ca01e..2228dfc 100644 --- a/drivers/net

[PATCH 04/10] net/macb: Fix a race in macb_start_xmit()

2012-09-05 Thread Nicolas Ferre
wrong. Restart the controller after error handling. Signed-off-by: Havard Skinnemoen [nicolas.fe...@atmel.com: split patch in topics] Signed-off-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a

[PATCH 00/10] net/macb: driver enhancement concerning GEM support, ring logic and cleanup

2012-09-05 Thread Nicolas Ferre
buffer logic net/macb: Offset first RX buffer by two bytes Nicolas Ferre (4): net/macb: better manage tx errors net/macb: tx status is more than 8 bits now net/macb: macb_get_drvinfo: add GEM/MACB suffix to differentiate revision net/macb: ethtool interface: add register dump feature

[PATCH 02/10] net/macb: memory barriers cleanup

2012-09-05 Thread Nicolas Ferre
From: Havard Skinnemoen Remove a couple of unneeded barriers and document the remaining ones. Signed-off-by: Havard Skinnemoen [nicolas.fe...@atmel.com: split patch in topics] Signed-off-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c | 18 ++ 1 file changed, 14

[PATCH 05/10] net/macb: clean up ring buffer logic

2012-09-05 Thread Nicolas Ferre
smaller, and hopefully faster as well. Also, doing the ring buffer management this way will simplify things a lot when making the ring sizes configurable in the future. Signed-off-by: Havard Skinnemoen [nicolas.fe...@atmel.com: split patch in topics, adapt to newer kernel] Signed-off-by: Nicolas

[PATCH 07/10] net/macb: tx status is more than 8 bits now

2012-09-05 Thread Nicolas Ferre
On some revision of GEM, TSR status register is has more information. Signed-off-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index

[PATCH 06/10] net/macb: better manage tx errors

2012-09-05 Thread Nicolas Ferre
Handle all TX errors, not only underruns. Reinitialize the TX ring after skipping all remaining frames, and restart the controller when everything has been cleaned up properly. Original idea from a patch by Havard Skinnemoen. Signed-off-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c

[PATCH 09/10] net/macb: ethtool interface: add register dump feature

2012-09-05 Thread Nicolas Ferre
Add macb_get_regs() ethtool function and its helper function: macb_get_regs_len(). Signed-off-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c | 40 +++ drivers/net/ethernet/cadence/macb.h |3 +++ 2 files changed, 43 insertions(+) diff --git a

[PATCH 08/10] net/macb: macb_get_drvinfo: add GEM/MACB suffix to differentiate revision

2012-09-05 Thread Nicolas Ferre
Add an indication about which revision of the hardware we are running in info->driver string. Signed-off-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cade

[PATCH 10/10] net/macb: Offset first RX buffer by two bytes

2012-09-05 Thread Nicolas Ferre
NET_IP_ALIGN. Signed-off-by: Havard Skinnemoen [nicolas.fe...@atmel.com: adapt to newer kernel] Signed-off-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b

Re: [PATCH 01/16] ARM: at91: move platform_data definitions

2012-09-11 Thread Nicolas Ferre
;> This moves such data out of the at91 include directories >> >> Signed-off-by: Arnd Bergmann >> Cc: Nicolas Ferre >> Cc: Jean-Christophe Plagniol-Villard >> Cc: Vinod Koul >> Cc: Dan Williams >> --- >> arch/arm/mach-at91/at91s

[PATCH 1/2] dmaengine: at_hdmac: fix comment in atc_prep_slave_sg()

2012-09-11 Thread Nicolas Ferre
s/dma_memcpy/slave_sg/ and it is sg length that we are talking about. Signed-off-by: Nicolas Ferre Cc: Stable [2.6.31+] --- drivers/dma/at_hdmac.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index 3934fcc..6c09e18

[PATCH 2/2] dmaengine: at_hdmac: check that each sg data length is non-null

2012-09-11 Thread Nicolas Ferre
Avoid the construction of a malformed DMA request sent to the DMA controller. Log message is for debug only because this condition is unlikely to append and may only trigger at driver development time. Signed-off-by: Nicolas Ferre Cc: Stable [2.6.31+] --- drivers/dma/at_hdmac.c | 11

Re: [PATCH v11 0/4] AT91: replace old i2c-at91.c TWI driver

2012-09-12 Thread Nicolas Ferre
ubject, it is actually the real v12 patch series from Nikolaus. BTW, I suspect that you were not in copy... In addition to the "Tested-By" tag by Ludovic, you can add my: Reviewed-by: Nicolas Ferre > Nikolaus Voss (4): > drivers/i2c/busses/i2c-at91.c: remove old polling driver

[PATCH] at91_mci: use generic GPIO calls

2008-02-04 Thread Nicolas Ferre
ned by the mmc core; and in one (rare) case would try freeing an IRQ that it didn't allocate. Signed-off-by: David Brownell <[EMAIL PROTECTED]> Signed-off-by: Nicolas Ferre <[EMAIL PROTECTED]> --- Little update from previous patch to match the modification introduced by : http://lkml

Re: [PATCH 14/24] USB: ohci: merge ohci_finish_controller_resume with ohci_resume

2012-10-05 Thread Nicolas Ferre
lves the bit HCD_FLAG_HW_ACCESSIBLE, which is now handled by > ohci_resume(). > > Signed-off-by: Florian Fainelli > --- > drivers/usb/host/ohci-at91.c |2 +- Seems ok for AT91, so Acked-by: Nicolas Ferre Thanks Florian, bye, > drivers/usb/host/ohci-ep93xx.c |

[PATCH 0/8] at91: 3.7 fixes patch series

2012-10-24 Thread Nicolas Ferre
(1): ARM: at91/tc: fix typo in the DT document Marek Belisko (1): ARM: at91/dts: at91sam9g20ek_common: Fix typos in buttons labels. Nicolas Ferre (2): ARM: at91: fix external interrupts in non-DT case ARM: at91: fix external interrupt specification in board code Documentation/devicetree

[PATCH 1/8] ARM: at91/tc: fix typo in the DT document

2012-10-24 Thread Nicolas Ferre
From: Josh Wu Signed-off-by: Josh Wu Signed-off-by: Nicolas Ferre Cc: stable [v3.4] --- Documentation/devicetree/bindings/arm/atmel-at91.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.txt b/Documentation/devicetree

[PATCH 3/8] ARM: at91: fix external interrupts in non-DT case

2012-10-24 Thread Nicolas Ferre
Management of external interrupts has changed but the non-DT code has not integrated these changes. Add a mask to pass external irq specification from SoC specific code to the at91_aic_init() function. Signed-off-by: Nicolas Ferre Cc: stable [v3.6] --- arch/arm/mach-at91/generic.h | 3

[PATCH 4/8] ARM: at91: fix external interrupt specification in board code

2012-10-24 Thread Nicolas Ferre
Since the switch to sparse irq, we have to add the NR_IRQS_LEGACY offset to static irq numbers. It has been forgotten on these SPI irq definitions in board code. Signed-off-by: Nicolas Ferre Cc: stable [v3.6] --- arch/arm/mach-at91/board-neocore926.c | 2 +- arch/arm/mach-at91/board

[PATCH 5/8] ARM: at91/dts: at91sam9g20ek_common: Fix typos in buttons labels.

2012-10-24 Thread Nicolas Ferre
From: Marek Belisko Signed-off-by: Marek Belisko Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91sam9g20ek_common.dtsi b/arch/arm/boot/dts/at91sam9g20ek_common.dtsi

[PATCH 6/8] ARM: at91/i2c: change id to let i2c-gpio work

2012-10-24 Thread Nicolas Ferre
not know the value of busnum In order to solve this issue, set the platform device ID as a fix number Here using 0 to match the busnum used in i2c_regsiter_board_info() Signed-off-by: Bo Shen Acked-by: Jean Delvare Signed-off-by: Nicolas Ferre Cc: stable [very long time] --- arch/arm/mach

[PATCH 8/8] ARM: at91: drop duplicated config SOC_AT91SAM9 entry

2012-10-24 Thread Nicolas Ferre
From: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Acked-by: Nicolas Ferre --- arch/arm/mach-at91/Kconfig | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index b142071

[PATCH 7/8] ARM: at91/i2c: change id to let i2c-at91 work

2012-10-24 Thread Nicolas Ferre
not know the value of busnum In order to solve this issue, set the platform device ID as a fix number Here using 0 to match the busnum used in i2c_regsiter_board_info() Signed-off-by: Bo Shen Signed-off-by: Nicolas Ferre --- arch/arm/mach-at91/at91rm9200.c | 2 +- arch/arm/mach-at91

[PATCH 2/8] ARM: at91: at91sam9g10: fix SOC type detection

2012-10-24 Thread Nicolas Ferre
extended id is disregarded. Signed-off-by: Ivan Shugov [nicolas.fe...@atmel.com: change commit message] Signed-off-by: Nicolas Ferre Cc: stable [v3.1] # since commit 8c3583b6 --- arch/arm/mach-at91/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/se

[GIT PULL] at91: fixes for 3.7-rc3

2012-10-25 Thread Nicolas Ferre
M: at91/tc: fix typo in the DT document Marek Belisko (1): ARM: at91/dts: at91sam9g20ek_common: Fix typos in buttons labels. Nicolas Ferre (2): ARM: at91: fix external interrupts in non-DT case ARM: at91: fix external interrupt specification in board code Documentation/

[PATCH v4 00/10] net/macb: driver enhancement concerning GEM support, ring logic and cleanup

2012-10-31 Thread Nicolas Ferre
accurate: removed Havard Skinnemoen (4): net/macb: memory barriers cleanup net/macb: change debugging messages net/macb: clean up ring buffer logic net/macb: Offset first RX buffer by two bytes Jean-Christophe PLAGNIOL-VILLARD (1): net/macb: add pinctrl consumer support Nicolas Ferre (4

[PATCH v4 02/10] net/macb: memory barriers cleanup

2012-10-31 Thread Nicolas Ferre
From: Havard Skinnemoen Remove a couple of unneeded barriers and document the remaining ones. Signed-off-by: Havard Skinnemoen [nicolas.fe...@atmel.com: split patch in topics] Signed-off-by: Nicolas Ferre Tested-by: Joachim Eastwood --- drivers/net/ethernet/cadence/macb.c | 18

[PATCH v4 03/10] net/macb: change debugging messages

2012-10-31 Thread Nicolas Ferre
status] Signed-off-by: Nicolas Ferre Tested-by: Joachim Eastwood --- drivers/net/ethernet/cadence/macb.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index e7f554d..b161d73

[PATCH v4 04/10] net/macb: remove macb_get_drvinfo()

2012-10-31 Thread Nicolas Ferre
This function has little meaning so remove it altogether and let ethtool core fill in the fields automatically. Signed-off-by: Nicolas Ferre Reviewed-by: Ben Hutchings Tested-by: Joachim Eastwood --- drivers/net/ethernet/cadence/macb.c | 11 --- 1 file changed, 11 deletions(-) diff

[PATCH v4 07/10] net/macb: ethtool interface: add register dump feature

2012-10-31 Thread Nicolas Ferre
Add macb_get_regs() ethtool function and its helper function: macb_get_regs_len(). The version field is deduced from the IP revision which gives the "MACB or GEM" information. An additional version field is reserved. Signed-off-by: Nicolas Ferre Reviewed-by: Ben Hutchings Tested-b

[PATCH v4 10/10] net/macb: add pinctrl consumer support

2012-10-31 Thread Nicolas Ferre
From: Jean-Christophe PLAGNIOL-VILLARD If no pinctrl available just report a warning as some architecture may not need to do anything. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD [nicolas.fe...@atmel.com: adapt the error path, remove unneeded headers] Signed-off-by: Nicolas Ferre Tested

[PATCH v4 01/10] net/macb: Add support for Gigabit Ethernet mode

2012-10-31 Thread Nicolas Ferre
From: Patrice Vilchez Add Gigabit Ethernet mode to GEM cadence IP and enable RGMII connection. Signed-off-by: Patrice Vilchez Signed-off-by: Nicolas Ferre Tested-by: Joachim Eastwood --- drivers/net/ethernet/cadence/macb.c | 15 --- drivers/net/ethernet/cadence/macb.h | 4

[PATCH v4 09/10] net/macb: Offset first RX buffer by two bytes

2012-10-31 Thread Nicolas Ferre
NET_IP_ALIGN. Signed-off-by: Havard Skinnemoen [nicolas.fe...@atmel.com: adapt to newer kernel] Signed-off-by: Nicolas Ferre Tested-by: Joachim Eastwood --- drivers/net/ethernet/cadence/macb.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/drivers/net

[PATCH v4 08/10] net/macb: better manage tx errors

2012-10-31 Thread Nicolas Ferre
napi for RX for now. With this sequence, we do not need a special check during the xmit method as the packets will be caught by TX disable during workqueue execution. Signed-off-by: Nicolas Ferre Tested-by: Joachim Eastwood --- drivers/net/ethernet/cadence/macb.c | 166

[PATCH v4 06/10] net/macb: clean up ring buffer logic

2012-10-31 Thread Nicolas Ferre
: split patch in topics, adapt to newer kernel] Signed-off-by: Nicolas Ferre Tested-by: Joachim Eastwood --- drivers/net/ethernet/cadence/at91_ether.c | 6 +- drivers/net/ethernet/cadence/macb.c | 172 +++--- drivers/net/ethernet/cadence/macb.h | 22 ++-- 3

[PATCH v4 05/10] net/macb: tx status is more than 8 bits now

2012-10-31 Thread Nicolas Ferre
On some revision of GEM, TSR status register has more information. Signed-off-by: Nicolas Ferre Tested-by: Joachim Eastwood --- drivers/net/ethernet/cadence/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet

Re: [PATCH] net/at91_ether: fix the use of macb structure

2012-11-04 Thread Nicolas Ferre
On 11/03/2012 08:04 PM, David Miller : > From: Nicolas Ferre > Date: Tue, 30 Oct 2012 12:30:28 +0100 > >> Due to the use of common structure in at91_ether and macb drivers, >> change the name of DMA descriptor structures in at91_ether as well: >> dma_desc => mac

  1   2   3   4   5   6   7   8   9   10   >