Re: [PATCH] ARM64: kernel: compiling issue: need define readq and writeq for driver module using.

2013-04-19 Thread Arnd Bergmann
to provide additional patch for beautifying code. Signed-off-by: Chen Gang gang.c...@asianux.com Acked-by: Arnd Bergmann a...@arndb.de -- 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

Re: [PATCH] ARM64: kernel: compiling issue, duplicate definition of early_console

2013-04-19 Thread Arnd Bergmann
On Friday 19 April 2013, Chen Gang wrote: when compiling with allmodconfig. early_console is already defined as an extern global pointer. need let it point to the object which we intend to (like ARM32 done). Signed-off-by: Chen Gang gang.c...@asianux.com Acked-by: Arnd Bergmann

Re: [PATCH 4/9 v2] crypto: ux500/cryp - Prepare clock before enabling it

2013-04-19 Thread Arnd Bergmann
On Friday 19 April 2013, Lee Jones wrote: Slight change of plan for v2. Now we're doing a seperate clk_prepare(), as the clk_enable() in the previous patch turned out to be called inside a spin_lock(). Arnd, can you confirm your Ack please? Acked-by: Arnd Bergmann a...@arndb.de

Re: [PATCH 2/2] dma:of: Use a mutex to protect the of_dma_list

2013-04-19 Thread Arnd Bergmann
On Friday 19 April 2013, Lars-Peter Clausen wrote: Well, It's not only about the of_dma struct, e.g. the of_dma's of_dma_data field usually points to some driver allocated data. If we do not block in of_dma_controller_free() this data might be freed while the controller is still in use.

Re: [PATCH 1/9 v2] crypto: ux500/hash - Prepare clock before enabling it

2013-04-19 Thread Arnd Bergmann
On Friday 19 April 2013, Lee Jones wrote: Slight change of plan for v2. Now we're doing a seperate clk_prepare(), as the clk_enable() in the previous patch turned out to be called inside a spin_lock(). Arnd, can you confirm your Ack please? Acked-by: Arnd Bergmann a...@arndb.de

Re: [PATCH v3] irqchip: Add support for ARMv7-M's NVIC

2013-04-19 Thread Arnd Bergmann
On Friday 19 April 2013, Uwe Kleine-König wrote: On Thu, Apr 18, 2013 at 11:38:13AM +0200, Arnd Bergmann wrote: On Thursday 18 April 2013, Uwe Kleine-König wrote: That is, there are (INTLINESNUM + 1) * 32 irqs for INTLINESNUM 15. For INTLINESNUM == 15 there are only 496 and not 16 * 32

Re: [PATCH 2/2] dma:of: Use a mutex to protect the of_dma_list

2013-04-19 Thread Arnd Bergmann
On Saturday 20 April 2013, Jon Hunter wrote: Change also means that of_dma_request_slave_channel() cannot be called from a context where it is not possible to sleep too, right? May be worth mentioning this in the changelog as well. You already cannot do that, because it requires

Re: [Suggestion] ARM64: kernel: compiling issue, need implement cmpxchg64 with assembler language.

2013-04-20 Thread Arnd Bergmann
On Saturday 20 April 2013 10:28:55 Chen Gang wrote: ---patch begin-- diff --git a/arch/arm64/include/asm/cmpxchg.h b/arch/arm64/include/asm/cmpxchg.h index 968b5cb..b572d2b 100644 --- a/arch/arm64/include/asm/cmpxchg.h

Re: [PATCH v2] serial: pl011: Add Device Tree support to request DMA channels

2013-04-20 Thread Arnd Bergmann
:( I've put it into a late branch now. Could you have a look please? If there are any problems with this, I'll probably just drop the branch and queue it for 3.11 instead with the required fixes. Arnd commit 787b0c1f8e1975157fe73104e67cac18f955281b Author: Arnd Bergmann a...@arndb.de Date

Re: [PATCH 2/2] dma:of: Use a mutex to protect the of_dma_list

2013-04-20 Thread Arnd Bergmann
On Saturday 20 April 2013, Lars-Peter Clausen wrote: On 04/20/2013 12:45 AM, Jon Hunter wrote: I think that there is a problem here. For controllers using the of_dma_simple_xlate(), this will call dma_request_channel() which also uses a mutex. That would only be a problem if it'd use the

Re: [PATCH 2/5] driver core: move to_platform_driver to platform_device.h

2013-04-22 Thread Arnd Bergmann
On Monday 22 April 2013, Rob Herring wrote: From: Rob Herring rob.herr...@calxeda.com In converting the last remaining of_platform_driver (ibmebus) to a regular platform driver, to_platform_driver is needed to replace to_of_platform_driver. Signed-off-by: Rob Herring

Re: [PATCH 0/5] of_platform_driver and OF_DEVICE removal

2013-04-22 Thread Arnd Bergmann
tested on powerpc and sparc. Acked-by: Arnd Bergmann a...@arndb.de -- 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

Re: [PATCH 0/9] ARM: CPUFreq: Move drivers arch/arm/ - drivers/cpufreq

2013-04-04 Thread Arnd Bergmann
-drivers Whole series Acked-by: Arnd Bergmann a...@arndb.de but please post them another time with linux-arm-kernel on Cc. Arnd -- 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

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-04 Thread Arnd Bergmann
On Thursday 04 April 2013, Daniel Tang wrote: We're sending out for comments an early patch adding TI-Nspire support to Linux. Some words on the Nspire platform: it's a series of graphing calculators, made of four models: Clickpad (2007-2010), Touchpad (2010-2012?), CX (2011-), CM-C

Re: [PATCH 18/18] cpufreq: powerpc/platforms/cell: move cpufreq driver to drivers/cpufreq

2013-04-04 Thread Arnd Bergmann
On Thursday 04 April 2013, Viresh Kumar wrote: This patch moves cpufreq driver of powerpc platforms/cell to drivers/cpufreq. Cc: Arnd Bergmann a...@arndb.de Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Viresh Kumar viresh.ku

posix_cpu_timer: initialize now variable

2013-04-04 Thread Arnd Bergmann
or not. Signed-off-by: Arnd Bergmann a...@arndb.de --- diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c index e5286b5..1828b9f 100644 --- a/kernel/posix-cpu-timers.c +++ b/kernel/posix-cpu-timers.c @@ -1119,6 +1119,7 @@ void posix_cpu_timer_schedule(struct k_itimer *timer

Re: [PATCH 18/18] cpufreq: powerpc/platforms/cell: move cpufreq driver to drivers/cpufreq

2013-04-04 Thread Arnd Bergmann
On Thursday 04 April 2013, Viresh Kumar wrote: On 4 April 2013 18:32, Arnd Bergmann a...@arndb.de wrote: Moving the files is good, but I don't see a reason to make the cbe_cpufreq.h header globally visible in include/linux/. Isn't it just used by as the interface between

Re: [PATCH v2, part1 03/29] mm/ARM: use common help functions to free reserved pages

2013-04-04 Thread Arnd Bergmann
On Sunday 10 March 2013, Jiang Liu wrote: Use common help functions to free reserved pages. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Russell King li...@arm.linux.org.uk Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Cc:

Re: [PATCH 1/5 v3] USB: regroup all depends on USB within an if USB block

2013-04-04 Thread Arnd Bergmann
On Thursday 04 April 2013, Felipe Balbi wrote: On Thu, Apr 04, 2013 at 01:42:18PM -0400, Alan Stern wrote: diff --git a/drivers/usb/misc/sisusbvga/Kconfig b/drivers/usb/misc/sisusbvga/Kconfig index 30ea7ca..0d03a52 100644 --- a/drivers/usb/misc/sisusbvga/Kconfig +++

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

2013-04-05 Thread Arnd Bergmann
On Friday 05 April 2013, Michal Simek wrote: Hi, 2013/4/5 Stephen Rothwell s...@canb.auug.org.au Hi all, Today's linux-next merge of the arm-soc tree got a conflict in arch/arm/mach-spear/spear13xx.c between commit c79e33b3e828 (ARM: smp_twd: convert to use CLKSRC_OF init) from the

Re: [char-misc-next] mei: add debugfs hooks

2013-04-05 Thread Arnd Bergmann
On Friday 05 April 2013, Tomas Winkler wrote: debugfs exposes device state and list of me clients and their properties Signed-off-by: Tomas Winkler tomas.wink...@intel.com Just one small comment: +#define DEBUGFS_ADD_FILE(_mei, name, parent, mode) \ + debugfs_create_file(#name,

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

2013-04-05 Thread Arnd Bergmann
On Friday 05 April 2013, Michal Simek wrote: Interesting. I rebased my arm-next branch based on 3.9-rc5 with some Rob's + one Arnd patch from arm-soc - clksrc/cleanup branch. I will fix my arm-next branch. The for-next branch in arm-soc is not stable, you should never base

Re: [char-misc-next] mei: add debugfs hooks

2013-04-05 Thread Arnd Bergmann
On Friday 05 April 2013, Tomas Winkler wrote: debugfs exposes device state and list of me clients and their properties Signed-off-by: Tomas Winkler tomas.wink...@intel.com --- V2: 1. don't use DEBUGFS_ADD_FILE macro 2. compile debugfs.c only if CONFIG_DEBUG_FS is set Acked-by: Arnd

Re: [PATCH v2 1/9] arm: mvebu: Limit the DMA zone when LPAE is selected

2013-04-05 Thread Arnd Bergmann
On Friday 05 April 2013, Gregory CLEMENT wrote: When LPAE is activated on Armada XP, all registers and IOs are still 32bit, the 40bit extension is on the CPU to DRAM path (windows) only. That means that all the DMA transfer are restricted to the low 32 bits address space. This is limitation is

Re: [PATCH v2 7/9] arm: dts: mvebu: introduce internal-regs node

2013-04-05 Thread Arnd Bergmann
On Friday 05 April 2013, Gregory CLEMENT wrote: Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com The patch looks good but the description is a bit short. Arnd -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH v2 8/9] arm: dts: mvebu: fix cpus section indentation

2013-04-05 Thread Arnd Bergmann
On Friday 05 April 2013, Gregory CLEMENT wrote: From: Thomas Petazzoni thomas.petazz...@free-electrons.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com This should have a description, even though it's completely trivial. I would also recommend moving this patch first,

Re: [PATCH v2 0/9] rm: mvebu: Enable LPAE support for Armada XP SoCs

2013-04-05 Thread Arnd Bergmann
On Friday 05 April 2013, Gregory CLEMENT wrote: The Armada XP SoCs have LPAE support. This is the second version patch set whixh allow to run kernel on this SoCs with LPAE support. The biggest changes are the conversion of the device tree file to 64 bits in order to be able to use more than

Re: [PATCH v2 2/9] arm: mvebu: Align the internal registers virtual base to support LPAE

2013-04-05 Thread Arnd Bergmann
On Friday 05 April 2013, Gregory CLEMENT wrote: From: Lior Amsalem al...@marvell.com In order to be able to support he LPAE, the internal registers virtual base must be aligned to 2MB. Signed-off-by: Lior Amsalem al...@marvell.com Signed-off-by: Gregory CLEMENT

Re: [PATCH v2 2/9] arm: mvebu: Align the internal registers virtual base to support LPAE

2013-04-06 Thread Arnd Bergmann
On Friday 05 April 2013, Gregory CLEMENT wrote: On 04/05/2013 10:50 PM, Arnd Bergmann wrote: On Friday 05 April 2013, Gregory CLEMENT wrote: From: Lior Amsalem al...@marvell.com This is a surprising limitation. Can you extend the above text to go into more detail where

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-06 Thread Arnd Bergmann
On Saturday 06 April 2013, Daniel Tang wrote: Hi, First of all, thank you for your comments! On 04/04/2013, at 10:12 PM, Arnd Bergmann a...@arndb.de wrote: For new platforms, we want to have only the absolute minimum amount of code in arch/arm and move everything else into drivers

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-06 Thread Arnd Bergmann
On Saturday 06 April 2013, Daniel Tang wrote: Hi, On 06/04/2013, at 10:51 PM, Arnd Bergmann a...@arndb.de wrote: Ok, whichever way you prefer. If you have questions while working on this, feel free to join #armlinux on irc.freenode.net, there are usually other people working

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-07 Thread Arnd Bergmann
On Sunday 07 April 2013, Daniel Tang wrote: On 07/04/2013, at 12:24 AM, Arnd Bergmann a...@arndb.de wrote: @@ -313,7 +314,7 @@ define archhelp echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' echo '* xipImage - XIP kernel image, if configured

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-07 Thread Arnd Bergmann
On Sunday 07 April 2013, Daniel Tang wrote: Here's an updated patch that enables support for the LCD. I looked into drivers/video/of_display_timing.c but it doesn't have the fields to describe the PL11x specific options needed in struct clcd_panel. At the moment, it is implemented by

Re: [PATCH 2/5] dmaengine: ste_dma40: Assign memcpy channels in the driver

2013-04-08 Thread Arnd Bergmann
: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d...@fb.com Cc: Per Forlin per.for...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Acked-by: Arnd Bergmann a...@arndb.de -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH 3/5] dmaengine: ste_dma40: Move default memcpy configs into the driver

2013-04-08 Thread Arnd Bergmann
: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d...@fb.com Cc: Per Forlin per.for...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Acked-by: Arnd Bergmann a...@arndb.de -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH 1/5] ARM: ux500: Move DMA40 platform data includes file out to include/

2013-04-08 Thread Arnd Bergmann
On Monday 08 April 2013, Lee Jones wrote: The pin names for DB8500 based platforms need to be moved out of ux500 platform data and into the new proper location in include/ linux/platform_data/. This way we an reference them from other external locations, such as the main DMA50 driver(s).

Re: [PATCH 4/5] dmaengine: ste_dma40: Only configure a channel during a configure request

2013-04-08 Thread Arnd Bergmann
On Monday 08 April 2013, Lee Jones wrote: According to the DMA documentation allocating a channel and configuring it are two separate actions. By moving the configuration code into the correct code path we lighten the burden on the information required to successfully allocate a channel.

Re: [GIT PULL] arm: vt8500: Add support for pinctrl/gpio module

2013-04-08 Thread Arnd Bergmann
On Thursday 04 April 2013, Tony Prisk wrote: The following changes since commit 8bb9660418e05bb1845ac1a2428444d78e322cc7: Linux 3.9-rc4 (2013-03-23 16:52:44 -0700) are available in the git repository at: git://server.prisktech.co.nz/git/linuxwmt.git tags/vt8500/pinctrl Pulled

Re: [PATCH V5 0/6] USB: EHCI multiplatform for 3.10

2013-04-08 Thread Arnd Bergmann
On Monday 08 April 2013, Greg KH wrote: On Tue, Apr 02, 2013 at 06:23:58PM +0200, Arnd Bergmann wrote: Hi Greg, Here are the EHCI patches that I think are good for inclusion in 3.10, I hope you are willing to include them after the debacle over these patches in 3.9. The patches

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-08 Thread Arnd Bergmann
On Monday 08 April 2013, Fabian Vogt wrote: The latest kernel it seems to get stuck at console_lock() in register_framebuffer (drivers/video/fbmem.c:1655) if the LCD-controller is enabled. (Early printk and serial console works fine) CONFIG_NO_HZ is not activated, it works completely.

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-08 Thread Arnd Bergmann
On Monday 08 April 2013, Fabian Vogt wrote: Yes, I've heard that before, but than it would work/not work independently of NO_HZ. Can printk's be executet within console_lock() .. console_unlock() blocks? I think it's legal to call printk in that case, but the message will not be printed

Re: linux-next: build warning after merge of the final tree (probably arm-soc tree related)

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Stephen Rothwell wrote: After merging the final tree, today's linux-next build (arm defconfig) produced these warnings: arch/arm/mach-cns3xxx/Kconfig:2:warning: choice value used outside its choice group arch/arm/mach-bcm2835/Kconfig:2:warning: choice value used

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

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Stephen Rothwell wrote: - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91x_MODULE) -static void __init sdp2430_display_init(void) -{ - int r; - - static struct gpio gpios[] __initdata = { - { SDP2430_LCD_PANEL_ENABLE_GPIO,

Re: [PATCH 1/5] ARM: ux500: Move DMA40 platform data includes file out to include/

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Lee Jones wrote: On Mon, 08 Apr 2013, Arnd Bergmann wrote: On Monday 08 April 2013, Lee Jones wrote: The pin names for DB8500 based platforms need to be moved out of ux500 platform data and into the new proper location in include/ linux/platform_data

Re: [PATCH 4/5] dmaengine: ste_dma40: Do not configure channels during an channel allocation

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Lee Jones wrote: According to the DMA documentation allocating a channel and configuring it are two separate actions. By removing the configuration code from the channel allocation path we lighten the burden on the information required to successfully allocate a

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

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Nicolas Ferre wrote: Ping? I saw that you made an update to arm-soc yesterday, and maybe you have forgotten this pull-request? I got about halfway through, but it's still in the queue, planning to merge it today. My default sort order in the email client is thread

Re: [PATCH] usb: ehci-s5p: fix: Fix null pointer dereferencing

2013-04-09 Thread Arnd Bergmann
s5p_ehci. This fixes issues with null pointer dereferencing in s5p_ehci_shutdown(), s5p_ehci_suspend(), s5p_ehci_resume(). Right, sorry for not spotting this during review. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com CC: Manjunath Goudar manjunath.gou...@linaro.org CC: Arnd Bergmann

Re: [PATCH 4/5] dmaengine: ste_dma40: Do not configure channels during an channel allocation

2013-04-09 Thread Arnd Bergmann
a channel. Cc: Vinod Koul vinod.k...@intel.com Cc: Dan Williams d...@fb.com Cc: Per Forlin per.for...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Acked-by: Arnd Bergmann a...@arndb.de -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

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

2013-04-09 Thread Arnd Bergmann
On Thursday 04 April 2013, Nicolas Ferre wrote: Here is the refreshed pull-request for AT91 that is dedicated to Device Tree modifications. It is stacked on the material that you already have for 3.10 in your arm-soc/at91/dt branch. Following our discussion with Arnd, I added the non-urgent

Re: [PATCH 1/2] dma: of: Add generic xlate function for matching by channel id

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Lars-Peter Clausen wrote: On 04/09/2013 01:28 PM, Vinod Koul wrote: On Sat, Mar 30, 2013 at 09:38:54AM +0100, Lars-Peter Clausen wrote: On 03/29/2013 10:49 PM, Vinod Koul wrote: On Mon, Mar 25, 2013 at 02:16:51PM +0100, Lars-Peter Clausen wrote: This patch adds a

Re: [GIT PULL] at91: little cleanup for 3.10 #3

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Nicolas Ferre wrote: Arnd, Olof, Again more trivial cleanup for AT91. It is based on material already sent and present in arm-soc/at91/cleanup2. Pulled into next/cleanup, thanks! Arnd -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [PATCHv2] ARM: Push selects for TWD/SCU into machine entries

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Stephen Boyd wrote: Sneaking it in through the fixes branch would make life easier for us, but it doesn't feel right. Arnd, can you pick this up into the arm-soc tree now? It would be good to get this into next so that conflicts are avoided later on. Arnd?

Re: [PATCH 8/8] ARM: ux500: Amalgamate DMA source and destination channel numbers

2013-04-09 Thread Arnd Bergmann
. Signed-off-by: Lee Jones lee.jo...@linaro.org Very nice cleanup! Acked-by: Arnd Bergmann a...@arndb.de -- 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

Re: [PATCH 7/8] dmaengine: ste_dma40: Use the BIT macro to replace ugly '(1 x)'s

2013-04-09 Thread Arnd Bergmann
-by: Arnd Bergmann a...@arndb.de -- 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 6/8] dmaengine: ste_dma40: Move LCPA allocation and real-time config

2013-04-09 Thread Arnd Bergmann
...@intel.com Cc: Dan Williams d...@fb.com Cc: Per Forlin per.for...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Acked-by: Arnd Bergmann a...@arndb.de -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH 5/8] dmaengine: ste_dma40: Ensure src and dst registers are configured correctly

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Lee Jones wrote: Confusingly d40_log_cfg() is used to set up the logical channel configuration registers, but d40_phy_cfg() is used to configure physical and logical registers, so it should be called in both cases. It is the function call's final attribute which

Re: [PATCH 3/8] dmaengine: ste_dma40: Actually write the runtime configuration to registers

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Lee Jones wrote: Someone has spent a fair amount of effort writing a runtime configuration changing algorithm for DMA clients. However, the config appears to never actually make it to hardware. In order for the configuration to take hold we need to issue a

Re: [PATCH 7/8] dmaengine: ste_dma40: Use the BIT macro to replace ugly '(1 x)'s

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Harvey Harrison wrote: On Tue, Apr 9, 2013 at 11:39 AM, Lee Jones lee.jo...@linaro.org wrote: The aim is to make the code that little more readable. Signed-off-by: Lee Jones lee.jo...@linaro.org --- #define MAX(a, b) (((a) (b)) ? (b) : (a)) Not

Re: [PATCHv2] ARM: Push selects for TWD/SCU into machine entries

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Arnd Bergmann wrote: I've applied it to the next/soc branch now. I just made up my mind again after I got a few merge conflicts. I have added it to the next/multiplatform branch now instead of next/soc, since a few of the Kconfig entries changed in this patch

Re: [PATCH 3/8] dmaengine: ste_dma40: Actually write the runtime configuration to registers

2013-04-09 Thread Arnd Bergmann
a d40_config_write(), as this is the routine which writes it into the hardware's registers. Signed-off-by: Lee Jones lee.jo...@linaro.org Acked-by: Arnd Bergmann a...@arndb.de -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH 5/8] dmaengine: ste_dma40: Ensure src and dst registers are configured correctly

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Lee Jones wrote: On Tue, 09 Apr 2013, Arnd Bergmann wrote: On Tuesday 09 April 2013, Lee Jones wrote: Confusingly d40_log_cfg() is used to set up the logical channel configuration registers, but d40_phy_cfg() is used to configure physical and logical

Re: [PATCH 7/8] dmaengine: ste_dma40: Use the BIT macro to replace ugly '(1 x)'s

2013-04-10 Thread Arnd Bergmann
On Wednesday 10 April 2013, Lee Jones wrote: On Tue, 09 Apr 2013, Arnd Bergmann wrote: Yes, good point. The macro is only used in one place, to compare two compile-time constant values, but we should define macros in drivers that are already provided by the kernel. Okay, it looks like

Re: [char-misc-next 1/3] mei: nfc: Initial nfc implementation

2013-04-10 Thread Arnd Bergmann
On Wednesday 10 April 2013, Samuel Ortiz wrote: That works fine with the typical case where your pn544 is directly accessible through i2c. But if it's sitting behind the ME, you will need to send commands exported through this file to fetch the vendor and radio IDs, but also to send those HCI

Re: [char-misc-next 1/3] mei: nfc: Initial nfc implementation

2013-04-10 Thread Arnd Bergmann
On Wednesday 10 April 2013, Samuel Ortiz wrote: That works fine with the typical case where your pn544 is directly accessible through i2c. But if it's sitting behind the ME, you will need to send commands exported through this file to fetch the vendor and radio IDs, but also to

[PATCH 26/30] irqchip: exynos: allocate combiner_data dynamically

2013-04-10 Thread Arnd Bergmann
The number of combiners on a given SoC is a platform specific constant, and we cannot encode this number on a multiplatform kernel since the header file defining it is not available. Allocating the structure dynamically ends up cleaner anyway since we keep all the data local. Signed-off-by: Arnd

[PATCH 28/30] irqchip: exynos: pass irq_base from platform

2013-04-10 Thread Arnd Bergmann
-off-by: Arnd Bergmann a...@arndb.de Cc: Thomas Gleixner t...@linutronix.de --- arch/arm/mach-exynos/common.c | 3 ++- arch/arm/mach-exynos/common.h | 2 +- drivers/irqchip/exynos-combiner.c | 23 +-- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/arch

[PATCH 16/30] rtc: s3c: make header file local

2013-04-10 Thread Arnd Bergmann
Nothing outside of the rtc driver includes plat/regs-rtc.h, so we can simply move the file into the same directory, which allows us to build the file as platform-independent code. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: rtc-li...@googlegroups.com Cc: Alessandro Zummo a.zu...@towertech.it

[PATCH 00/30] ARM: exynos multiplatform support

2013-04-10 Thread Arnd Bergmann
subsystem maintainers: feel free to directly apply the patches for your subsystem, there should be no dependencies between any of them, aside from the last patch requiring all of the earlier ones to be applied first. Getting an Ack is also fine so we can put the patches into arm-soc. Arnd Arnd

[PATCH 03/30] ARM: exynos: move debug-macro.S to include/debug/

2013-04-10 Thread Arnd Bergmann
-off-by: Arnd Bergmann a...@arndb.de --- arch/arm/Kconfig.debug | 8 .../include/mach/debug-macro.S = include/debug/exynos.S}| 12 ++-- .../include/plat/debug-macro.S = include/debug/samsung.S} | 2 +- arch/arm/mach-s3c24xx/include/mach

[PATCH 12/30] video/exynos: remove unnecessary header inclusions

2013-04-10 Thread Arnd Bergmann
In multiplatform configurations, we cannot include headers provided by only the exynos platform. Fortunately a number of drivers that include those headers do not actually need them, so we can just remove the inclusions. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: linux-fb...@vger.kernel.org

[PATCH 19/30] ASoC: samsung: use irq resource for idma

2013-04-10 Thread Arnd Bergmann
With multiplatform kernels, we cannot use hardwired IRQ numbers in device drivers. This changes the idma driver to use a proper resource, like all other drivers do. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: alsa-de...@alsa-project.org Cc: Mark Brown broo...@opensource.wolfsonmicro.com Cc

[PATCH 22/30] ASoC: samsung/idma: export idma_reg_addr_init

2013-04-10 Thread Arnd Bergmann
The idma_reg_addr_init function is used by the samsung i2s driver, which can be a loadable module, so we have to export this function. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: alsa-de...@alsa-project.org Cc: Mark Brown broo...@opensource.wolfsonmicro.com Cc: Liam Girdwood lgirdw

[PATCH 25/30] irqchip: exynos: pass max combiner number to combiner_init

2013-04-10 Thread Arnd Bergmann
boot. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: Thomas Gleixner t...@linutronix.de --- arch/arm/mach-exynos/common.c | 15 - arch/arm/mach-exynos/common.h | 3 ++- drivers/irqchip/exynos-combiner.c | 46 ++- 3 files changed, 32

[PATCH 27/30] irqchip: exynos: localize irq lookup for ATAGS

2013-04-10 Thread Arnd Bergmann
The IRQ_SPI() macro is not available in the driver when building with sparse IRQs or multiplatform, so let's move all users of this into one function that we can leave out when building DT-only. Signed-off-by: Arnd Bergmann a...@arnd.de Cc: Thomas Gleixner t...@linutronix.de --- drivers/irqchip

[PATCH 20/30] ASoC: samsung: convert to dmaengine API

2013-04-10 Thread Arnd Bergmann
platforms provide support for the common dmaengine interfaces, we can remove the old code. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: alsa-de...@alsa-project.org Cc: Mark Brown broo...@opensource.wolfsonmicro.com Cc: Liam Girdwood lgirdw...@gmail.com --- sound/soc/samsung/dma.c | 219

[PATCH 15/30] mtd: onenand/samsung: make regs-onenand.h file local

2013-04-10 Thread Arnd Bergmann
Nothing uses the NAND register definitions other than the actual driver, so we can move the header file into the same local directory, which lets us build it in a multiplatform configuration. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: linux-...@lists.infradead.org Cc: Kyungmin Park kyungmin.p

[PATCH 30/30] ARM: exynos: enable multiplatform support

2013-04-10 Thread Arnd Bergmann
not supported in multiplatform. Signed-off-by: Arnd Bergmann a...@arndb.de --- arch/arm/Kconfig| 10 +- arch/arm/configs/exynos4_defconfig | 2 +- arch/arm/mach-exynos/Kconfig| 25 + arch/arm/mach-exynos/Makefile | 5

[PATCH 23/30] clk: exynos: prepare for multiplatform

2013-04-10 Thread Arnd Bergmann
inclusions. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: Mike Turquette mturque...@linaro.org --- arch/arm/mach-exynos/common.c| 2 +- arch/arm/mach-exynos/common.h| 2 +- drivers/clk/samsung/clk-exynos4.c| 93 drivers/clk/samsung/clk

[PATCH 11/30] [media] exynos: remove unnecessary header inclusions

2013-04-10 Thread Arnd Bergmann
In multiplatform configurations, we cannot include headers provided by only the exynos platform. Fortunately a number of drivers that include those headers do not actually need them, so we can just remove the inclusions. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: linux-me...@vger.kernel.org

[PATCH 14/30] thermal/exynos: remove unnecessary header inclusions

2013-04-10 Thread Arnd Bergmann
In multiplatform configurations, we cannot include headers provided by only the exynos platform. Fortunately a number of drivers that include those headers do not actually need them, so we can just remove the inclusions. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: linux...@vger.kernel.org Cc

[PATCH 02/30] ARM: exynos: prepare for sparse IRQ

2013-04-10 Thread Arnd Bergmann
When we enable CONFIG_SPARSE_IRQ, we have to set the value of NR_IRQS in the machine_desc for legacy IRQ domains, and any file referring to the number of interrupts or a specific number must include the mach/irqs.h header file explicitly. Signed-off-by: Arnd Bergmann a...@arndb.de --- arch/arm

[PATCH 09/30] mmc: sdhci-s3c: remove platform dependencies

2013-04-10 Thread Arnd Bergmann
the platform_data definition instead and leave the rest to platform code. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: linux-...@vger.kernel.org Cc: Chris Ball c...@laptop.org --- arch/arm/mach-exynos/setup-sdhci-gpio.c| 2 +- arch/arm/mach-s5pc100/setup-sdhci-gpio.c | 1

[PATCH 04/30] ARM: samsung: move mfc device definition to s5p-dev-mfc.c

2013-04-10 Thread Arnd Bergmann
For a DT-only build we don't want to compile devs.c, but we do need the mfc device, which is also referenced by the DT based platforms, so move it all into one place. Signed-off-by: Arnd Bergmann a...@arndb.de --- arch/arm/plat-samsung/devs.c| 45

[PATCH 06/30] tty: serial/samsung: make register definitions global

2013-04-10 Thread Arnd Bergmann
file, other than possibly move everything into include/linux/platform_data, which also felt wrong. The only part of this file that makes sense to keep specific to the s3c24xx platform are the virtual and physical addresses defined here, which are needed in no other location. Signed-off-by: Arnd

[PATCH 08/30] i2c: s3c2410: make header file local

2013-04-10 Thread Arnd Bergmann
No other file in the kernel besides i2c-s3c2410.c uses the current plat/regs-iic.h, so we can simply move the header file to live in the same directory as the driver, as a preparation to multiplatform builds. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: linux-...@vger.kernel.org Cc: Wolfram

[PATCH 24/30] clocksource: exynos_mct: remove platform header dependency

2013-04-10 Thread Arnd Bergmann
-off-by: Arnd Bergmann a...@arndb.de Cc: Thomas Gleixner t...@linutronix.de Cc: John Stultz john.stu...@linaro.org --- arch/arm/mach-exynos/common.c| 2 +- arch/arm/mach-exynos/common.h| 2 +- drivers/clocksource/exynos_mct.c | 21 ++--- 3 files changed, 8 insertions(+), 17

[PATCH 01/30] ARM: exynos: introduce EXYNOS_ATAGS symbol

2013-04-10 Thread Arnd Bergmann
for this symbol being disabled. Signed-off-by: Arnd Bergmann a...@arndb.de --- arch/arm/mach-exynos/Kconfig | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index a62cfa0..e815057 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch

[PATCH 18/30] ASoC: samsung: move plat/ headers to local directory

2013-04-10 Thread Arnd Bergmann
The plat/iis.h and plat/ac97.h files in the samsung platform are only needed by the ASoC drivers, so they can be moved into the same directory, as one more step towards a multiplatform build. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: alsa-de...@alsa-project.org Cc: Mark Brown broo

[PATCH 17/30] pwm: samsung: repair the worst MMIO abuses

2013-04-10 Thread Arnd Bergmann
in this driver, let's also use the proper readl_relaxed variant rather than __raw_readl. Tomasz Figa has a set of patches to clean this up in a proper way, but that might be too late for 3.10. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: Tomasz Figa t.f...@samsung.com Cc: Thierry Reding

[PATCH 05/30] tty: serial/samsung: prepare for common clock API

2013-04-10 Thread Arnd Bergmann
is not documented in the ABI docs. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: linux-ser...@vger.kernel.org Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/tty/serial/samsung.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/samsung.c b/drivers/tty

[PATCH 13/30] video/s3c: move platform_data out of arch/arm

2013-04-10 Thread Arnd Bergmann
The s3c-fb driver requires header files from the samsung platforms to find its platform_data definition, but this no longer works on multiplatform kernels, so let's move the data into a new header file under include/linux/platform_data. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: linux-fb

[PATCH 07/30] tty: serial/samsung: fix modular build

2013-04-10 Thread Arnd Bergmann
There are a few bugs in the samsung serial driver when built as a loadable module, which makes the console code unavailable, as well as giving no access to the 'printascii' early debug function. This adds the appropriate compile time conditionals. Signed-off-by: Arnd Bergmann a...@arndb.de Cc

[PATCH 10/30] usb: exynos: do not include plat/usb-phy.h

2013-04-10 Thread Arnd Bergmann
The definitions have moved to include/linux/usb/samsung-usb-phy.h, and plat/usb-phy.h is unavailable from drivers in a multiplatform configuration. Also fix up the plat/usb-phy.h header file to use the definitions from the new header instead of providing a separate copy. Signed-off-by: Arnd

Re: [PATCH 11/30] [media] exynos: remove unnecessary header inclusions

2013-04-11 Thread Arnd Bergmann
On Thursday 11 April 2013, Sylwester Nawrocki wrote: On 04/11/2013 02:13 AM, Mauro Carvalho Chehab wrote: Em Thu, 11 Apr 2013 02:04:53 +0200 Arnd Bergmann a...@arndb.de escreveu: In multiplatform configurations, we cannot include headers provided by only the exynos platform

Re: [PATCH 12/30] video/exynos: remove unnecessary header inclusions

2013-04-11 Thread Arnd Bergmann
On Thursday 11 April 2013 14:51:55 Tomi Valkeinen wrote: I've applied this and the next patch ([PATCH 13/30] video/s3c: move platform_data out of arch/arm) to fbdev. I also fixed the extra space mentioned by Jingoo. Thanks! Arnd -- To unsubscribe from this list: send the line

Re: [RFC PATCHv2 arm: initial TI-Nspire support]

2013-04-11 Thread Arnd Bergmann
On Thursday 11 April 2013, Daniel Tang wrote: This is another updated patch for Linux on TI-Nspire support. Apologies for previously posting updated patches as replies to the first thread. I'll send updated patches in new threads from now to avoid confusion. Changes between

Re: [RFC PATCHv2 arm: initial TI-Nspire support]

2013-04-11 Thread Arnd Bergmann
On Thursday 11 April 2013, Daniel Tang wrote: + +CLOCKSOURCE_OF_DECLARE(nspire_classic_timer, +DT_COMPAT, nspire_classic_timer_init) Why do you need the logic to prevent it from being initilized twice? Can't you just remove the direct call to nspire_classic_timer_init

Re: [PATCH 00/26] Eliminate create_proc_read_entry() [RFC]

2013-04-11 Thread Arnd Bergmann
On Thursday 11 April 2013, David Howells wrote: Here is a series of patches to eliminate create_proc_read_entry(), replacing it with proc_create() and proc_create_data() and the use of seq_file facilities. These patches can be seen here also:

Re: [PATCH] MFD: ab8500: pass AB8500 IRQ to debugfs code by resource

2013-04-11 Thread Arnd Bergmann
On Thursday 11 April 2013, Linus Walleij wrote: From: Linus Walleij linus.wall...@linaro.org The AB8500 debug code which was merged in parallell with the multiplatform work incidentally introduced a new instance using the mach/irqs.h header which is now deleted, causing this build

Re: [PATCH 20/30] ASoC: samsung: convert to dmaengine API

2013-04-11 Thread Arnd Bergmann
On Thursday 11 April 2013, Mark Brown wrote: On Thu, Apr 11, 2013 at 02:05:02AM +0200, Arnd Bergmann wrote: In order to build the exynos kernel with CONFIG_ARCH_MULTIPLATFORM, we must convert all users of the Samsung private DMA interface to the generic dmaengine API. This version

<    1   2   3   4   5   6   7   8   9   10   >