[PATCH v3 04/05] staging: board: Initial board staging support

2014-06-06 Thread Magnus Damm
From: Magnus Damm Add staging board base support to allow continuous upstream in-tree development and integration of platform devices. Helps developers integrate devices as platform devices for device drivers that only provide platform device bindings. This in turn allows for incremental

[PATCH v3 03/05] staging: emxx_udc: Add TODO file

2014-06-06 Thread Magnus Damm
From: Magnus Damm Add a TODO file for emxx_udc to show what is left to do. Signed-off-by: Magnus Damm --- Changes since V2: - None Changes since V1: - New patch drivers/staging/emxx_udc/TODO |4 1 file changed, 4 insertions(+) --- /dev/null +++ work/drivers/staging/emxx_udc

[PATCH v3 05/05] staging: board: kzm9d: Board staging support for emxx_udc

2014-06-06 Thread Magnus Damm
From: Magnus Damm Add staging board support for the KZM9D board and add an emxx_udc platform device to allow in-tree continous development of the driver on the KZM9D board. When DT bindings are ready for the emxx_udc driver then the platform device in the KZM9D staging board code can easily be

[PATCH v3 02/05] staging: emxx_udc: I/O memory and IRQ resource support

2014-06-06 Thread Magnus Damm
From: Magnus Damm Adjust the emxx_udc driver to make use of the standard driver model to pass I/O memory and IRQ as resources instead of hard coding those things in the driver. Needs more work - the VBUS signal is yet not handled. Signed-off-by: Magnus Damm --- Changes since V2: - None

[PATCH 00/02] of: Add two stubs for OF_ADDRESS=n and OF=n cases

2014-06-06 Thread Magnus Damm
- of_find_all_nodes() in of.h With these stubs in place it is possible to remove Kconfig dependencies for OF and OF_ADDRESS in certain cases and just depend on the default behaviour of the stubs. Signed-off-by: Magnus Damm --- Written against renesas git repo at kernel.org using tag renesas-devel-v3.15

[PATCH 02/02] of: Add OF=n stub for of_find_all_nodes()

2014-06-06 Thread Magnus Damm
From: Magnus Damm Add a stub for the CONFIG_OF=n case of of_find_all_nodes(). The return value for the stub is NULL which is in sync with when the full version of the function cannot find any nodes registered. Added to allow removal of Kconfig dependency handling for CONFIG_OF. Signed-off-by

[PATCH 01/02] of: Add OF_ADDRESS=n stub for of_can_translate_address()

2014-06-06 Thread Magnus Damm
From: Magnus Damm Add a stub for the CONFIG_OF_ADDRESS=n case of of_translate_address(). The return value for the stub is false which is in sync with when the full version of the function does not support address translation. Added to allow removal of Kconfig dependency handling for

Re: [PATCH v2 04/05] staging: board: Initial board staging support

2014-06-06 Thread Magnus Damm
On Fri, May 30, 2014 at 8:10 AM, Simon Horman wrote: > On Thu, May 29, 2014 at 10:27:30PM +0900, Magnus Damm wrote: >> Hi Dan, >> >> On Thu, May 29, 2014 at 10:20 PM, Dan Carpenter >> wrote: >> > On Thu, May 29, 2014 at 10:17:32PM +0900, Magnus Damm wrote

Re: [PATCH v3 00/05] staging: Emma Mobile USB driver and KZM9D board code V3

2014-06-08 Thread Magnus Damm
On Sat, Jun 7, 2014 at 12:39 AM, Greg KH wrote: > On Fri, Jun 06, 2014 at 07:44:08PM +0900, Magnus Damm wrote: >> staging: Emma Mobile USB driver and KZM9D board code V3 >> >> [PATCH v3 01/05] staging: emxx_udc: Add Emma Mobile USB Gadget driver >> [PATCH v3 02/05] st

[PATCH 00/03] staging: Emma Mobile USB driver and KZM9D board code

2014-05-22 Thread Magnus Damm
staging to integrate non-DT drivers while they are improved to get DT support. Greg, please let me know your opinions. I'd be happy to rework the code. Signed-off-by: Magnus Damm --- Written against renesas-devel-v3.15-rc5-20140521 drivers/staging/Kconfig |4 drivers/st

[PATCH 02/03] staging: emxx_udc: I/O memory and IRQ resource support

2014-05-22 Thread Magnus Damm
From: Magnus Damm Adjust the emxx_udc driver to make use of the standard driver model to pass I/O memory and IRQ as resources instead of hard coding those things in the driver. Needs more work - the VBUS signal is yet not handled. Signed-off-by: Magnus Damm --- drivers/staging/emxx_udc

[PATCH 03/03] staging: board: kzm9d: Board staging support for emxx_udc

2014-05-22 Thread Magnus Damm
From: Magnus Damm Add staging board support for the KZM9D board and add an emxx_udc platform device to allow in-tree continous development of the driver on the KZM9D board. When DT bindings are ready for the emxx_udc driver then the platform device in the KZM9D staging board code can easily be

Re: [PATCH 03/03] staging: board: kzm9d: Board staging support for emxx_udc

2014-05-22 Thread Magnus Damm
Hi Geert, On Thu, May 22, 2014 at 6:19 PM, Geert Uytterhoeven wrote: > Hi Magnus, > > On Thu, May 22, 2014 at 10:54 AM, Magnus Damm wrote: >> Add staging board support for the KZM9D board and add >> an emxx_udc platform device to allow in-tree continous >> development

Re: [PATCH 00/03] staging: Emma Mobile USB driver and KZM9D board code

2014-05-22 Thread Magnus Damm
Hi Dan, On Thu, May 22, 2014 at 6:17 PM, Dan Carpenter wrote: > Generally we take things as is into staging so there is no need for a > re-work if you don't want to. But we do need a TODO file. Read the > TODO files for other staging drivers. Thanks for pointing that out, my apologies for bein

Re: [PATCH 00/03] staging: Emma Mobile USB driver and KZM9D board code

2014-05-22 Thread Magnus Damm
Hi Geert, On Thu, May 22, 2014 at 6:21 PM, Geert Uytterhoeven wrote: > Hi Magnus, > > Thanks for your series! This looks like a good solution for interim board > support. Thanks! > On Thu, May 22, 2014 at 10:53 AM, Magnus Damm wrote: >> Olof, patch 3/3 contains some b

Re: [PATCH v3] clk: shmobile: mstp: Fix the is_enabled() operation

2014-05-26 Thread Magnus Damm
On Fri, May 23, 2014 at 3:02 AM, Geert Uytterhoeven wrote: > From: Laurent Pinchart > > The MSTP[SC]R registers have clock stop bits, not clock enable bits. The > bit value should thus be inverted in the is_enabled() operation. > > Signed-off-by: Laurent Pinchart > Signed-off-by: Geert Uytterhoe

[PATCH v2 00/05] staging: Emma Mobile USB driver and KZM9D board code V2

2014-05-29 Thread Magnus Damm
registering platform device if DT node exists - Modified KZM9D board code build condition to use SoC Kconfig entry Many thanks to Dan Carpenter, Geert Uytterhoeven and Greg KH for feedback! Signed-off-by: Magnus Damm --- Written against renesas-devel-v3.15-rc7-20140528 drivers/staging/Kconfig

[PATCH v2 02/05] staging: emxx_udc: I/O memory and IRQ resource support

2014-05-29 Thread Magnus Damm
From: Magnus Damm Adjust the emxx_udc driver to make use of the standard driver model to pass I/O memory and IRQ as resources instead of hard coding those things in the driver. Needs more work - the VBUS signal is yet not handled. Signed-off-by: Magnus Damm --- Changes since V1: - None

[PATCH v2 03/05] staging: emxx_udc: Add TODO file

2014-05-29 Thread Magnus Damm
From: Magnus Damm Add a TODO file for emxx_udc to show what is left to do. Signed-off-by: Magnus Damm --- Changes since V1: - New patch drivers/staging/emxx_udc/TODO |4 1 file changed, 4 insertions(+) --- /dev/null +++ work/drivers/staging/emxx_udc/TODO 2014-05-29 18:08

[PATCH v2 04/05] staging: board: Initial board staging support

2014-05-29 Thread Magnus Damm
From: Magnus Damm Add staging board base support to allow continuous upstream in-tree development and integration of platform devices. Helps developers integrate devices as platform devices for device drivers that only provide platform device bindings. This in turn allows for incremental

[PATCH v2 05/05] staging: board: kzm9d: Board staging support for emxx_udc

2014-05-29 Thread Magnus Damm
From: Magnus Damm Add staging board support for the KZM9D board and add an emxx_udc platform device to allow in-tree continous development of the driver on the KZM9D board. When DT bindings are ready for the emxx_udc driver then the platform device in the KZM9D staging board code can easily be

Re: [PATCH v2 04/05] staging: board: Initial board staging support

2014-05-29 Thread Magnus Damm
Hi Dan, On Thu, May 29, 2014 at 10:20 PM, Dan Carpenter wrote: > On Thu, May 29, 2014 at 10:17:32PM +0900, Magnus Damm wrote: >> --- /dev/null >> +++ work/drivers/staging/board/Kconfig2014-05-29 21:40:41.0 >> +0900 >> @@ -0,0 +1,7 @@ >> +conf

Re: [PATCH v2 04/05] staging: board: Initial board staging support

2014-05-29 Thread Magnus Damm
On Thu, May 29, 2014 at 10:27 PM, Magnus Damm wrote: > Hi Dan, > > On Thu, May 29, 2014 at 10:20 PM, Dan Carpenter > wrote: >> On Thu, May 29, 2014 at 10:17:32PM +0900, Magnus Damm wrote: >>> --- /dev/null >>> +++ work/drivers/staging/board/Kconfig2014

Re: [PATCH v2 04/05] staging: board: Initial board staging support

2014-05-29 Thread Magnus Damm
On Thu, May 29, 2014 at 11:03 PM, Paul Bolle wrote: > On Thu, 2014-05-29 at 22:53 +0900, Magnus Damm wrote: >> --- 0011/drivers/staging/board/Kconfig >> +++ work/drivers/staging/board/Kconfig2014-05-29 22:32:39.0 +0900 >> @@ -1,5 +1,6 @@ >> config ST

[PATCH 00/04] PCI: rcar: Driver model and physical address space update

2014-02-04 Thread Magnus Damm
to the user. If a DMA zone is used then the PCI window will be setup to cover that. Same thing with CMA. Tested with USB storage using LPAE and various VMSPLIT settings together with renesas git tag renesas-devel-v3.14-rc1-20140204 from kernel.org Signed-off-by: Magnus Damm --- Written against

[PATCH 03/04] PCI: rcar: Add DMABOUNCE support

2014-02-04 Thread Magnus Damm
From: Magnus Damm Add DMABOUNCE support together with a local memory area for all PCI devices hanging off this bridge. 4MiB of memory is set aside for coherent allocations which is shared between the on-chip OHCI and EHCI devices that are hanging off the PCI bridge. With this patch the driver

[PATCH 02/04] PCI: rcar: Break out window size handling

2014-02-04 Thread Magnus Damm
From: Magnus Damm Break out the hard coded window size code to allow dynamic setup. The window size is still left at 1GiB but with this patch changing window size is easy for testing. Signed-off-by: Magnus Damm --- drivers/pci/host/pci-rcar-gen2.c | 31 --- 1

[PATCH 04/04] PCI: rcar: Enable BOUNCE in case of HIGHMEM

2014-02-04 Thread Magnus Damm
From: Magnus Damm Select BOUNCE in case of HIGHMEM to enable bounce buffers in the block layer. Without this patch the DMABOUNCE code will error out due to lack of HIGHMEM support, and without DMABOUNCE there will be silent errors. Signed-off-by: Magnus Damm --- drivers/pci/host/Kconfig

[PATCH 01/04] PCI: rcar: Register each instance independently

2014-02-04 Thread Magnus Damm
From: Magnus Damm Convert the code to allow per-device probe() like other device drivers. This also delays driver registration due to change from subsys_initcall() to regular module_platform_driver(). Signed-off-by: Magnus Damm --- drivers/pci/host/pci-rcar-gen2.c | 74

Re: [PATCH 01/04] PCI: rcar: Register each instance independently

2014-02-05 Thread Magnus Damm
On Wed, Feb 5, 2014 at 5:02 PM, Geert Uytterhoeven wrote: > On Wed, Feb 5, 2014 at 7:52 AM, Magnus Damm wrote: >> +static int rcar_pci_probe(struct platform_device *pdev) >> { >> struct resource *cfg_res, *mem_res; >> struct rcar_pci_priv *priv; &

Re: [PATCH 01/04] PCI: rcar: Register each instance independently

2014-02-05 Thread Magnus Damm
On Wed, Feb 5, 2014 at 5:29 PM, Ben Dooks wrote: > On 05/02/14 06:52, Magnus Damm wrote: >> >> From: Magnus Damm >> >> Convert the code to allow per-device probe() like other device >> drivers. This also delays driver registration due to change fro

Re: [PATCH 00/04] PCI: rcar: Driver model and physical address space update

2014-02-05 Thread Magnus Damm
Hi Ben, On Wed, Feb 5, 2014 at 5:33 PM, Ben Dooks wrote: > On 05/02/14 06:52, Magnus Damm wrote: >> >> PCI: rcar: Driver model and physical address space update >> >> [PATCH 01/04] PCI: rcar: Register each instance independently >> [PATCH 02/04] PCI: rca

Re: [PATCH 00/04] PCI: rcar: Driver model and physical address space update

2014-02-05 Thread Magnus Damm
On Wed, Feb 5, 2014 at 6:25 PM, Ben Dooks wrote: > On 05/02/14 09:00, Magnus Damm wrote: >> >> Hi Ben, > > > [snip] > >> I think we should try to pick out the stuff that is ready to be merged >> first. I think these patches may require a bit of time before p

[PATCH v4 00/03] clocksource: Consolidate SH and ARM mach-shmobile Kconfig bits

2013-12-11 Thread Magnus Damm
2/3 to fit latest renesas-devel tag, see below - Included acks from John Stultz for patch 2/3 and 3/3 Signed-off-by: Magnus Damm --- Written against renesas.git tag renesas-devel-v3.13-rc2-20131211 arch/arm/mach-shmobile/Kconfig | 35 +++ arch/sh/Kconfig

[PATCH v4 01/03] clocksource: Add Kconfig entries for CMT, MTU2, TMU and STI

2013-12-11 Thread Magnus Damm
From: Magnus Damm Add Kconfig entries for CMT, MTU2, TMU and STI to drivers/clocksource/Kconfig. This will allow us to get rid of duplicated entires in architecture code such as arch/sh and arch/arm/mach-shmobile. Signed-off-by: Magnus Damm --- drivers/clocksource/Kconfig | 44

[PATCH v4 02/03] ARM: shmobile: Remove CMT, TMU and STI Kconfig entries

2013-12-11 Thread Magnus Damm
From: Magnus Damm Now when drivers/clocksource/Kconfig has been updated with entires for CMT, TMU and STI it is safe to remove these from mach-shmobile. Also select timers per SoC via SYS_SUPPORTS_xxx. Signed-off-by: Magnus Damm Acked-by: John Stultz --- arch/arm/mach-shmobile/Kconfig

[PATCH v2 03/03] sh: Remove Kconfig entries for TMU, CMT and MTU2

2013-12-11 Thread Magnus Damm
From: Magnus Damm Now when drivers/clocksource/Kconfig has been updated with entires for CMT, TMU and MTU2 it is safe to remove these from SH. Signed-off-by: Magnus Damm Acked-by: John Stultz --- arch/sh/Kconfig | 21 - 1 file changed, 21 deletions(-) --- 0001/arch/sh

Re: [PATCH 04/05 v2] pinctrl: sh-pfc: r7s72100 SCIF support

2013-12-17 Thread Magnus Damm
Hi Laurent, On Wed, Dec 18, 2013 at 1:08 AM, Laurent Pinchart wrote: > Hi Magnus, > > Thank you for the patch. > > On Tuesday 17 December 2013 11:38:23 Magnus Damm wrote: >> From: Magnus Damm >> >> Add support for SCIF functions SCK, TXD, RXD, CTS and RTS to th

Re: [PATCH 02/05 v2] pinctrl: sh-pfc: r7s72100 base support

2013-12-17 Thread Magnus Damm
Hi Wolfram, On Wed, Dec 18, 2013 at 6:04 AM, Wolfram Sang wrote: > Hi, > >> +#define _P_DATA(bank, pin, name, sfx) >> \ >> + PINMUX_DATA(name##_DATA, name##_PMC_0, name##_PIPC_0, \ >> + name##_PIBC_1, name##_PBDC_1) >> + >> +#d

Re: [PATCH 03/05 v2] pinctrl: sh-pfc: r7s72100 single pin macros

2013-12-17 Thread Magnus Damm
Hi Laurent, Thanks for your feedback. On Wed, Dec 18, 2013 at 1:01 AM, Laurent Pinchart wrote: > Hi Magnus, > > Thank you for the patches. > > On Tuesday 17 December 2013 11:38:14 Magnus Damm wrote: >> From: Magnus Damm >> >> Introduce macros that allo

Re: [PATCH] pinctrl: sh-pfc: Initial r7s72100 support

2013-12-17 Thread Magnus Damm
Hi Laurent, Here are some replies to your comments, my apologies for the delay. On Wed, Nov 27, 2013 at 7:54 PM, Laurent Pinchart wrote: > Hi Magnus, > > Thank you for the patch. > > On Wednesday 27 November 2013 16:41:22 Magnus Damm wrote: >> From: Magnus Damm >&

Re: [PATCH 02/05 v2] pinctrl: sh-pfc: r7s72100 base support

2013-12-18 Thread Magnus Damm
On Wed, Dec 18, 2013 at 7:05 PM, Wolfram Sang wrote: > >> >> +#define _P_DATA(bank, pin, name, sfx) >> >> \ >> >> + PINMUX_DATA(name##_DATA, name##_PMC_0, name##_PIPC_0, \ >> >> + name##_PIBC_1, name##_PBDC_1) >> >> + >> >> +#de

Re: [PATCH v5 00/03] clocksource: Consolidate SH and ARM mach-shmobile Kconfig bits

2013-12-18 Thread Magnus Damm
Hi Daniel, On Thu, Dec 19, 2013 at 12:38 AM, Daniel Lezcano wrote: > On 12/17/2013 11:12 AM, Magnus Damm wrote: >> >> clocksource: Consolidate SH and ARM mach-shmobile Kconfig bits (v5) >> >> [PATCH v5 01/03] clocksource: Add Kconfig entries for CMT, MTU2, TMU and >

Re: [PATCH] irq-renesas-irqc: simplify irq_set_type() method

2013-12-19 Thread Magnus Damm
ei Shtylyov > > Magnus, could you review this? The patch is IMO only cosmetic so I can't say I care that much. But since you ask. =) Acked-by: Magnus Damm Cheers, / magnus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

[PATCH 00/03] gpio: R-Car and EM GPIO update

2013-11-13 Thread Magnus Damm
on suspend. This fixes the Suspend-to-RAM behavior to make sure wakeup sources are left enabled while suspending. Also include a small fix for gpio-em that fixes the DT use case. Signed-off-by: Magnus Damm --- Written against renesas.git tag renesas-devel-v3.12-20131112 drivers/gpio/gpio-e

[PATCH 01/03] gpio: rcar: Use lazy disable and mask on suspend

2013-11-13 Thread Magnus Damm
From: Magnus Damm Set the ->irq_enable() and ->irq_disable() methods to NULL to enable lazy disable of interrupts. Also extend the code to set IRQCHIP_MASK_ON_SUSPEND which tells the core that only IRQs marked as wakeups need to stay enabled during Suspend-to-RAM. Tested on the Lager boar

[PATCH 02/03] gpio: em: Setup gpiochip->dev

2013-11-13 Thread Magnus Damm
From: Magnus Damm Make sure gpio_chip->dev is setup so of_gpiochip_add() will work as expected. Signed-off-by: Magnus Damm --- drivers/gpio/gpio-em.c |1 + 1 file changed, 1 insertion(+) --- 0001/drivers/gpio/gpio-em.c +++ work/drivers/gpio/gpio-em.c 2013-11-13 20:47:40.0 +0

[PATCH 03/03] gpio: em: Use lazy disable and mask on suspend

2013-11-13 Thread Magnus Damm
From: Magnus Damm Set the ->irq_enable() and ->irq_disable() methods to NULL to enable lazy disable of interrupts. Also extend the code to set IRQCHIP_MASK_ON_SUSPEND which tells the core that only IRQs marked as wakeups need to stay enabled during Suspend-to-RAM. Tested on the KZM9D boar

[PATCH v2] gpio: Renesas RZ GPIO driver V2

2013-11-13 Thread Magnus Damm
From: Magnus Damm This patch adds a GPIO driver for the RZ series of SoCs from Renesas. The V2 of the driver requires DT to be used. The hardware allows control of GPIOs in blocks of up to 16 pins. Interrupts are not included in this hardware block, if interrupts are needed then the PFC needs

Re: [PATCH] gpio: Renesas RZ GPIO driver

2013-11-13 Thread Magnus Damm
Hi Laurent, On Wed, Nov 13, 2013 at 9:03 PM, Laurent Pinchart wrote: > Hi Magnus, > > Thank you for the patch. > > Please read below for a couple of comments in addition to Linus' review. > > On Thursday 07 November 2013 08:47:37 Magnus Damm wrote: >> From: Magn

Re: [PATCH 01/03] gpio: rcar: Use lazy disable and mask on suspend

2013-11-13 Thread Magnus Damm
Hi Laurent, Thanks for checking the patches. On Thu, Nov 14, 2013 at 9:07 AM, Laurent Pinchart wrote: > Hi Magnus, > > Thank you for the patch. > > On Thursday 14 November 2013 07:59:36 Magnus Damm wrote: >> From: Magnus Damm >> >> Set the ->irq_enable()

Re: [PATCH 01/03] gpio: rcar: Use lazy disable and mask on suspend

2013-11-14 Thread Magnus Damm
Hi Laurent, On Thu, Nov 14, 2013 at 11:17 AM, Laurent Pinchart wrote: > Hi Magnus, > > On Thursday 14 November 2013 11:03:06 Magnus Damm wrote: >> On Thu, Nov 14, 2013 at 9:07 AM, Laurent Pinchart wrote: >> > On Thursday 14 November 2013 07:59:36 Magnus Damm wrote:

Re: [PATCH] gpio: Renesas RZ GPIO driver

2013-11-14 Thread Magnus Damm
Hi Laurent, On Thu, Nov 14, 2013 at 8:55 AM, Laurent Pinchart wrote: > Hi Magnus, > > On Thursday 14 November 2013 08:49:16 Magnus Damm wrote: >> On Wed, Nov 13, 2013 at 9:03 PM, Laurent Pinchart wrote: >> > Hi Magnus, >> > >> > Thank you for the patch

Re: [PATCH 00/11] ARM: shmobile: RSPI RZ and QSPI SoC and board integration

2014-02-06 Thread Magnus Damm
d QSPI SoC and board" > > There is no Bob but I do ask people these kind of questions :) Simon, Geert, Bob, I've now gone through these patches and I think they look great. My apologies for slow handling. Acked-by: Magnus Damm Thanks for your help. Cheers, / magnus -- To unsubscribe

[PATCH v3 02/03] ARM: shmobile: Remove CMT, TMU and STI Kconfig entries

2013-12-04 Thread Magnus Damm
From: Magnus Damm Now when drivers/clocksource/Kconfig has been updated with entires for CMT, TMU and STI it is safe to remove these from mach-shmobile. Also select timers per SoC via SYS_SUPPORTS_xxx. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/Kconfig | 35

[PATCH v3 01/03] clocksource: Add Kconfig entries for CMT, MTU2, TMU and STI

2013-12-04 Thread Magnus Damm
From: Magnus Damm Add Kconfig entries for CMT, MTU2, TMU and STI to drivers/clocksource/Kconfig. This will allow us to get rid of duplicated entires in architecture code such as arch/sh and arch/arm/mach-shmobile. Signed-off-by: Magnus Damm --- drivers/clocksource/Kconfig | 36

[PATCH v3 00/03] clocksource: Consolidate SH and ARM mach-shmobile Kconfig bits

2013-12-04 Thread Magnus Damm
deselect in case of COMPILE_TEST (not only select) - Follow same style as SH and select per-SoC SYS_SUPPORTS_xxx Signed-off-by: Magnus Damm --- Written against renesas.git tag renesas-devel-v3.13-rc2-20131202 arch/arm/mach-shmobile/Kconfig | 35 +-- arch/sh

[PATCH v2 03/03] sh: Remove Kconfig entries for TMU, CMT and MTU2

2013-12-04 Thread Magnus Damm
From: Magnus Damm Now when drivers/clocksource/Kconfig has been updated with entires for CMT, TMU and MTU2 it is safe to remove these from SH. Signed-off-by: Magnus Damm --- arch/sh/Kconfig | 21 - 1 file changed, 21 deletions(-) --- 0001/arch/sh/Kconfig +++ work/arch

Re: [PATCH 0/2] Legacy SH_INTC cleanup

2014-08-20 Thread Magnus Damm
om irqs.h to intc.h Thanks, looking great! Acked-by: Magnus Damm Cheers, / magnus -- 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/

Re: [PATCH 00/04] pinctrl: sh-pfc: r8a7794: DU support

2015-11-19 Thread Magnus Damm
Hi Laurent, On Fri, Nov 20, 2015 at 11:46 AM, Laurent Pinchart wrote: > Hi Magnus, > > Thank you for the patch. > > On Tuesday 17 November 2015 12:18:32 Magnus Damm wrote: >> pinctrl: sh-pfc: r8a7794: DU support >> >> [PATCH 01/04] pinctrl: sh-pfc: r8a7794:

[PATCH 01/06] iommu/ipmmu-vmsa: Remove platform data handling

2015-12-15 Thread Magnus Damm
From: Magnus Damm The IPMMU driver is using DT these days, and platform data is no longer used by the driver. Remove unused code. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c |5 - 1 file changed, 5 deletions(-) --- 0001/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu

[PATCH 00/06] iommu/ipmmu-vmsa: IPMMU multi-arch update

2015-12-15 Thread Magnus Damm
issues on 32-bit ARM, 64-bit ARM and x86_64. With the series applied the r8a7790 IPMMU still gets invoked when the modetest utility is used to display a test pattern on the VGA port driven by the DU device. Signed-off-by: Magnus Damm --- Developed on top of renesas-drivers-2015-12-08-v4.4-rc4

[PATCH 02/06] iommu/ipmmu-vmsa: Convert to dev_data

2015-12-15 Thread Magnus Damm
From: Magnus Damm Rename ipmmu_vmsa_archdata to ipmmu_vmsa_dev_data to avoid confusion when using the driver on multiple architectures. The data now stored in ipmmu_vmsa_dev_data is used to point various on-chip devices to the actual IPMMU instances. Signed-off-by: Magnus Damm --- drivers

[PATCH 03/06] iommu/ipmmu-vmsa: Break out utlb control function

2015-12-15 Thread Magnus Damm
From: Magnus Damm Introduce the function ipmmu_utlb_ctrl() that shares code to enable or disable utlbs. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) --- 0004/drivers/iommu/ipmmu-vmsa.c

[PATCH 05/06] iommu/ipmmu-vmsa: Break out 32-bit ARM mapping code

2015-12-15 Thread Magnus Damm
From: Magnus Damm Make the driver compile on more than just 32-bit ARM by breaking out and wrapping ARM specific functions in #ifdefs. Needed to be able to use the driver on other architectures. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 94

[PATCH 04/06] iommu/ipmmu-vmsa: Rework interrupt code and use bitmap for context

2015-12-15 Thread Magnus Damm
From: Magnus Damm Introduce a bitmap for context handing and convert the interrupt routine to go handle all registered contexts. At this point the number of contexts are still limited. The purpose of this patch is to remove the use of the ARM specific mapping variable from ipmmu_irq

[PATCH 06/06] iommu/ipmmu-vmsa: Drop LPAE Kconfig dependency

2015-12-15 Thread Magnus Damm
From: Magnus Damm Neither the ARM page table code enabled by IOMMU_IO_PGTABLE_LPAE nor the IPMMU_VMSA driver actually depends on ARM_LPAE, so get rid of the dependency. Tested with ipmmu-vmsa on r8a7794 ALT and a kernel config using: # CONFIG_ARM_LPAE is not set Signed-off-by: Magnus Damm

[PATCH/RFC 00/10] iommu/ipmmu-vmsa: Experimental r8a7795 support

2015-12-15 Thread Magnus Damm
fic dma-mapping code is hooked up rather directly. During init 64-bit ARM IPMMU support is relying on IOMMU_OF_DECLARE(). The code is known to build on 32-bit and 64-bit ARM and x86_64. Tested on 32-bit ARM and 64-bit ARM with addtional DT integration changes. Signed-off-by: Magnus Damm ---

[PATCH/RFC 06/10] iommu/ipmmu-vmsa: Also use IOMMU_OF_DECLARE()

2015-12-15 Thread Magnus Damm
From: Magnus Damm Hook up IOMMU_OF_DECLARE() support. The default case has the use_of_iommu feature disabled so the init order remains unchanged for the default case. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 35 ++- 1 file changed, 34

[PATCH/RFC 02/10] iommu/ipmmu-vmsa: Add optional root device feature

2015-12-15 Thread Magnus Damm
From: Magnus Damm Add root device handling to the IPMMU driver by allowing certain DT compat strings to enable had_cache_leaf_nodes that in turn will support both root devices with interrupts and leaf devices that face the actual IPMMU consumer devices. Signed-off-by: Magnus Damm --- drivers

[PATCH/RFC 03/10] iommu/ipmmu-vmsa: Write IMCTR twice

2015-12-15 Thread Magnus Damm
From: Magnus Damm Write IMCTR both in the root device and the leaf node. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) --- 0014/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu/ipmmu-vmsa.c 2015-12

[PATCH/RFC 05/10] iommu/ipmmu-vmsa: Allow two bit SL0

2015-12-15 Thread Magnus Damm
From: Magnus Damm Introduce support for two bit SL0 bitfield in IMTTBCR by using a separate feature flag. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) --- 0014/drivers/iommu/ipmmu-vmsa.c +++ work/drivers

[PATCH/RFC 04/10] iommu/ipmmu-vmsa: Make IMBUSCTR setup optional

2015-12-15 Thread Magnus Damm
From: Magnus Damm Allow certain DT compat strings to opt-out of setting up IMBUSCR. The default case is unchanged. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) --- 0016/drivers/iommu/ipmmu-vmsa.c +++ work

[PATCH/RFC 01/10] iommu/ipmmu-vmsa: Introduce features, break out alias

2015-12-15 Thread Magnus Damm
From: Magnus Damm Introduce struct ipmmu_features to track various hardware and software implementation changes inside the driver for various kinds of IPMMU hardware. Add use_ns_alias_offset as a first example of a feature to control if the secure register bank offset should be used or not

[PATCH/RFC 07/10] iommu/ipmmu-vmsa: Break out utlb parsing code

2015-12-15 Thread Magnus Damm
From: Magnus Damm Break out the utlb parsing code and dev_data allocation into a separate function. This is preparation for future code sharing. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 126 1 file changed, 70 insertions(+), 56

[PATCH/RFC 08/10] iommu/ipmmu-vmsa: Break out domain allocation code

2015-12-15 Thread Magnus Damm
From: Magnus Damm Break out the domain allocation code into a separate function. This is preparation for future code sharing. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) --- 0014/drivers/iommu/ipmmu-vmsa.c

[PATCH/RFC 09/10] iommu/ipmmu-vmsa: Add new IOMMU_DOMAIN_DMA ops

2015-12-15 Thread Magnus Damm
From: Magnus Damm Introduce a new set of iommu_ops suitable for 64-bit ARM and IOMMU_OF_DECLARE() used on r8a7795. The ->of_xlate() callback is wrapped in #ifdefs to also compile of x86_64. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c |

[PATCH/RFC 10/10] iommu/ipmmu-vmsa: Hook up r8a7795 DT matching code

2015-12-15 Thread Magnus Damm
From: Magnus Damm Tie in r8a7795 features and update the IOMMU_OF_DECLARE compat string to hook up the updated compat string. TODO: - Describe IPMMU topology via DT - Document DT binding and topology - Figure out how to avoid multiple IOMMU_OF_DECLARE() Signed-off-by: Magnus Damm

[PATCH] clocksource: sh_mtu2: Fix multiple shutdown call issue

2015-10-27 Thread Magnus Damm
From: Magnus Damm On the r7s72100 Genmai board the MTU2 driver currently triggers a common clock framework WARN_ON(enable_count) when disabling the clock due to the MTU2 driver after recent callback rework may call ->set_state_shutdown() multiple times. A similar issue was spotted for the

[PATCH 00/03] irqchip: renesas-irqc: Minor update

2015-07-20 Thread Magnus Damm
cleanups as preparation series for future generic chip rework. With these patches applied the driver is becoming less special and closer to the generic chip implementation. Signed-off-by: Magnus Damm --- Written against renesas-devel-20150720-v4.2-rc3 drivers/irqchip/irq-renesas-irqc.c | 16

[PATCH 02/03] irqchip: renesas-irqc: Use linear IRQ domain

2015-07-20 Thread Magnus Damm
From: Magnus Damm Use linear IRQ domain instead of irq_domain_add_simple() that also handles non-DT cases. This reduces the delta between the IRQC code and the generic chip implementation. Signed-off-by: Magnus Damm --- drivers/irqchip/irq-renesas-irqc.c |4 ++-- 1 file changed, 2

[PATCH 01/03] irqchip: renesas-irqc: Get rid of IRQF_VALID

2015-07-20 Thread Magnus Damm
From: Magnus Damm IRQF_VALID is not needed on ARM anymore, so get rid of it. Signed-off-by: Magnus Damm --- drivers/irqchip/irq-renesas-irqc.c |1 - 1 file changed, 1 deletion(-) --- 0001/drivers/irqchip/irq-renesas-irqc.c +++ work/drivers/irqchip/irq-renesas-irqc.c 2015-07-20 17:40

[PATCH 03/03] irqchip: renesas-irqc: Make use of irq_find_mapping()

2015-07-20 Thread Magnus Damm
From: Magnus Damm Instead of locally caching the virq as domain_irq simply rely on the IRQ domain code and irq_find_mapping(). This reduces the delta between the IRQC driver and the generic chip implementation. Signed-off-by: Magnus Damm --- drivers/irqchip/irq-renesas-irqc.c | 11

Re: [PATCH] MAINTAINERS: Update mailing list for Renesas ARM64 SoC Development

2016-01-20 Thread Magnus Damm
work on the SH > architecture. > > Cc: Magnus Damm > Signed-off-by: Simon Horman > --- > MAINTAINERS | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Thanks, looking good! Acked-by: Magnus Damm Cheers, / magnus

Re: [PATCH v3 02/06] devicetree: bindings: R-Car Gen2 CMT0 and CMT1 bindings

2016-02-16 Thread Magnus Damm
Hi Geert, On Tue, Feb 16, 2016 at 10:11 PM, Geert Uytterhoeven wrote: > On Tue, Feb 16, 2016 at 8:17 AM, Magnus Damm wrote: >> From: Magnus Damm >> >> Add documentation for new separate CMT0 and CMT1 DT compatible strings >> for R-Car Gen2. These compat strings allow

Re: [PATCH v3 02/06] devicetree: bindings: R-Car Gen2 CMT0 and CMT1 bindings

2016-02-16 Thread Magnus Damm
Hi Simon, On Wed, Feb 17, 2016 at 3:28 PM, Simon Horman wrote: > On Wed, Feb 17, 2016 at 11:33:27AM +0900, Magnus Damm wrote: >> Hi Geert, >> >> On Tue, Feb 16, 2016 at 10:11 PM, Geert Uytterhoeven >> wrote: >> > On Tue, Feb 16, 2016 at 8:17 AM, Magnus

[PATCH v2] pinctrl: sh-pfc: Rework PFC GPIO support

2016-02-17 Thread Magnus Damm
From: Magnus Damm The sh-pfc pinctrl driver is currently handling SoC-specific PFC hardware blocks on ARM64, ARM and SH architectures. For older SoCs using SH cores and some 32-bit ARM SoCs the PFC hardware also provides GPIO functionality. On the majority of 32-bit ARM SoCs from Renesas and so

[PATCH] pinctrl: sh-pfc: Rework PFC GPIO support

2016-02-15 Thread Magnus Damm
From: Magnus Damm The sh-pfc Pinctrl driver is currently handling SoC-specific PFC hardware blocks on Arm64, Arm and SH architectures. For older SoCs using SH cores and some 32-bit Arm SoCs the PFC hardware also provides GPIO functionality. On the majority of 32-bit Arm SoCs from Renesas and so

[PATCH] pinctrl: sh-pfc: r8a7795: Add support for INTC-EX IRQ pins

2016-02-15 Thread Magnus Damm
From: Magnus Damm Most pins on the r8a7795 SoC can be configured in GPIO mode for interrupt and GPIO functionality, while a couple of them can also be routed to the INTC-EX hardware block (formerly known as IRQC). On r8a7795 the INTC-EX hardware handles pins IRQ0 -> IRQ5 and this patch a

[PATCH] mmc: mmc_spi: Add Card Detect comments and fix CD GPIO case

2016-02-15 Thread Magnus Damm
From: Magnus Damm This patch adds comments to describe the various ways card detection may be implemented and when polling is needed. Also a fix is included to prevent the MMC SPI driver from polling when a CD GPIO that supports interrupts is specified using the gpios DT property (case 1

[PATCH v3 00/06] clocksource: sh_cmt: DT binding rework V3

2016-02-15 Thread Magnus Damm
anged. Many thanks to Geert, Laurent and Rob for their feedback! Signed-off-by: Magnus Damm Acked-by: Geert Uytterhoeven Acked-by: Laurent Pinchart (For patch 1-3) Acked-by: Rob Herring --- Written against renesas-drivers-2016-02-09-v4.5-rc3 Documentation/devicetree/bindings/timer/renesas,cmt.txt | 85 ++- 1 file changed, 38 insertions(+), 47 deletions(-)

[PATCH v3 01/06] devicetree: bindings: Remove sh7372 CMT binding

2016-02-15 Thread Magnus Damm
From: Magnus Damm Remove the sh7372 CMT compat string to reduce maintenance burden. It should be fine to break DT compatibility because: 1) The sh7372 SoC support has been removed from upstream 2) The sh7372 CMT DT binding was never part of upstream DTS 3) The CMT driver never matches on the

[PATCH v3 03/06] devicetree: bindings: r8a73a4 and R-Car Gen2 CMT bindings

2016-02-15 Thread Magnus Damm
From: Magnus Damm Update SoC-specific bindings for r8a73a4 and R-Car Gen2 CMT0 and CMT1. Signed-off-by: Magnus Damm Acked-by: Geert Uytterhoeven Acked-by: Laurent Pinchart Acked-by: Rob Herring --- Changes since V2: - Added Acked-by from Rob - Removed Tested-by tag from DT binding patch

[PATCH v3 05/06] devicetree: bindings: Remove unused 32-bit CMT bindings

2016-02-15 Thread Magnus Damm
From: Magnus Damm Remove the 32-bit CMT compat strings to reduce maintenance burden. It should be fine to break DT compatibility because the 32-bit 32-bit CMT DT binding was never part of any upstream DTS file. Signed-off-by: Magnus Damm Acked-by: Rob Herring Acked-by: Geert Uytterhoeven

[PATCH v3 04/06] devicetree: bindings: Deprecate property, update example

2016-02-15 Thread Magnus Damm
From: Magnus Damm Deprecate "renesas,channels-mask" and update the r8a7790 CMT example. Signed-off-by: Magnus Damm Acked-by: Geert Uytterhoeven Acked-by: Laurent Pinchart Acked-by: Rob Herring --- Changes since V2: - Added Acked-by from Rob - Removed Tested-by tag from DT bin

[PATCH v3 02/06] devicetree: bindings: R-Car Gen2 CMT0 and CMT1 bindings

2016-02-15 Thread Magnus Damm
From: Magnus Damm Add documentation for new separate CMT0 and CMT1 DT compatible strings for R-Car Gen2. These compat strings allow us to enable CMT1-specific features in the driver. The old compat strings will be deprecated in the not so distant future. Signed-off-by: Magnus Damm Acked-by

[PATCH v3 06/06] devicetree: bindings: Remove deprecated properties

2016-02-15 Thread Magnus Damm
From: Magnus Damm The deprecated DT properties are part of the GIT history, no need to keep them around any longer. Signed-off-by: Magnus Damm Acked-by: Rob Herring Acked-by: Geert Uytterhoeven --- Changes since V2: - Added Acked-by from Rob - Fixed properties typo - Thanks Geert

Re: [PATCH v3 02/06] devicetree: bindings: R-Car Gen2 CMT0 and CMT1 bindings

2016-02-23 Thread Magnus Damm
Hi Simon, On Wed, Feb 17, 2016 at 9:08 PM, Simon Horman wrote: > On Wed, Feb 17, 2016 at 03:45:19PM +0900, Magnus Damm wrote: >> $ grep "renesas," Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt >> - compatible: "renesas,dmac-", "renesas,rcar-

Re: [PATCH] mmc: mmc_spi: Add Card Detect comments and fix CD GPIO case

2016-02-26 Thread Magnus Damm
On Tue, Feb 16, 2016 at 1:06 PM, Magnus Damm wrote: > From: Magnus Damm > > This patch adds comments to describe the various ways card detection > may be implemented and when polling is needed. Also a fix is included > to prevent the MMC SPI driver from polling when a CD GPI

[PATCH 02/02] ARM: shmobile: marzen-reference: Remove IRLM workaround

2014-12-03 Thread Magnus Damm
From: Magnus Damm Adjust the r8a7779 SoC DTS and the Marzen Reference C board code to use DTS only for INTC-IRQPIN IRLM setup. Signed-off-by: Magnus Damm --- Written on top of renesas-devel-20141202-v3.18-rc7 and [PATCH] ARM: shmobile: r8a7779 CCF DTS update Has a runtime dependency on

<    1   2   3   4   5   6   7   >