Re: [PATCH 12/22] mfd: sta2x11: drop unused MODULE_ tags from non-modular code

2018-12-04 Thread Davide Ciminaghi
On Mon, Dec 03, 2018 at 10:07:56AM -0500, Paul Gortmaker wrote: > [Re: [PATCH 12/22] mfd: sta2x11: drop unused MODULE_ tags from non-modular > code] On 03/12/2018 (Mon 11:14) Lee Jones wrote: > > > On Sun, 02 Dec 2018, Paul Gortmaker wrote: > > . > > Looking in git history, I was able to fi

[PATCH 12/26] x86 kernel apic: notify MSI irqdomain(s) on etup/teardown of MSI IRQs

2013-08-07 Thread Davide Ciminaghi
This patch should have no effect on non-OF x86 machines. When CONFIG_OF is enabled, an irqdomain exists for each MSI controller in the devicetree. This patch invokes the functions taking care of adding/removing IRQs numbers to/from the MSI irqdomain they belong to. Signed-off-by: Davide

[PATCH 09/26] kernel irqdomain: export irq_domain_disassociate()

2013-08-07 Thread Davide Ciminaghi
each msi controller and adding irqs to such domain in native_setup_msi_irqs() via irq_domain_associate() looked like the simplest and safest solution to the problem, but then of course irq_domain_disassociate() must be called by native_teardown_msi_irq(). Signed-off-by: Davide Ciminaghi Acked-by

[PATCH 22/26] AMBA: pci-amba bridge: extend number of amba devs per pci device

2013-08-07 Thread Davide Ciminaghi
BAR (former mfd device) and multiple devices on multiple PCI BARs (6 msp ports, 2 ports per PCI BAR). Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- drivers/amba/pci-amba.c | 152 +-- 1 files changed, 121 insertions(+), 31 deletions

[PATCH 18/26] x86 STA2X11 platform: add a common probe function for platform devices

2013-08-07 Thread Davide Ciminaghi
allocated, filled in, and "linked" to the struct sta2x11_instance_data representing the instance to which the probed device belongs. Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- arch/x86/include/asm/sta2x11.h |9 + arch/x86/platform/sta2x11/sta2x1

[PATCH 16/26] x86 STA2X11 platform: add sta2x11_platform_init()

2013-08-07 Thread Davide Ciminaghi
regs, sctl). Finally, of_match_tables are added to the four struct platform_driver. Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- arch/x86/include/asm/sta2x11.h | 17 +- arch/x86/platform/sta2x11/sta2x11.c | 111 ++- 2 files ch

[PATCH 17/26] x86 STA2X11 platform: add sta2x11_instance_data helpers

2013-08-07 Thread Davide Ciminaghi
This patch adds functions to get a pointer to a sta2x11 instance data structure given a pointer to a connext device or device node. Such helpers will be used by the (now empty) common probe function, and maybe by the common clock framework. Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo

[PATCH 19/26] x86 STA2X11 platform: create sta2x11-clock-regs device

2013-08-07 Thread Davide Ciminaghi
This patch creates a virtual platform device each time the apb-soc-regs and sctl devices have been probed for a given sta2x11 instance. This will trigger clock registration for such instance. Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- arch/x86/include/asm/sta2x11.h

[PATCH 13/26] drivers/amba/pci-amba.c: use devicetree for amba device creation.

2013-08-07 Thread Davide Ciminaghi
for each pci express endpoint). A pci-amba bridge node contains an amba bus and all the pci side parts of the pci-amba devices attached to the same pci express endpoint. Finally, each child node of the amba bus represents the amba side of a pci-amba device. Signed-off-by: Davide Ciminaghi Acked-by

[PATCH 21/26] AMBA: pci-amba bridge: improve code readability

2013-08-07 Thread Davide Ciminaghi
This patch moves the code fixing up irq numbers for amba devices to a separate function (fixup_amba_irqs()). Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- drivers/amba/pci-amba.c | 97 +- 1 files changed, 53 insertions(+), 44

[PATCH 20/26] x86 STA2X11 platform: remove useless pr_info()'s

2013-08-07 Thread Davide Ciminaghi
Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- arch/x86/platform/sta2x11/sta2x11.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/x86/platform/sta2x11/sta2x11.c b/arch/x86/platform/sta2x11/sta2x11.c index 57ed10d..b3e9cec 100644 --- a/arch/x86

[PATCH 14/26] gpio: remove sta2x11-gpio

2013-08-07 Thread Davide Ciminaghi
The Connext chip has 4 gpio cells looking very similar to those of the Nomadik, whose gpio/pinctrl driver (already featuring devicetree support) will be used instead of the sta2x11 specific one. Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- drivers/gpio/Kconfig|8

[PATCH 10/26] x86 devicetree: add irq domain for msi irqs

2013-08-07 Thread Davide Ciminaghi
An irqdomain is created for each MSI interrupt controller found in the tree. This is to make irq_create_of_mapping() happy later on. Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- .../devicetree/bindings/x86/interrupt.txt | 14 ++ arch/x86/kernel

[PATCH 11/26] x86 devicetree: add functions for handling setup/teardown of MSI irqs

2013-08-07 Thread Davide Ciminaghi
This patch introduces x86_of_new_msi_irq() and x86_of_del_msi_irq(), which shall be invoked by native_setup_msi_irqs() and native_teardown_msi_irq() respectively to add/delete irq numbers to/from the "dummy" msi irqdomain. Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi

[PATCH 06/26] x86 STA2X11: select devicetree related config items.

2013-08-07 Thread Davide Ciminaghi
(), which is part of the irqdomain stuff. Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- arch/x86/Kconfig |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 490b001..0a779eb 100644 --- a/arch/x86/Kconfig +++ b/arch

[PATCH 08/26] OF platform, of_amba_device_create(): add parent resource to parameters.

2013-08-07 Thread Davide Ciminaghi
This is needed when creating pci-amba devices: an amba device's resource shall be child of the corresponding pci device's resource. Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- drivers/of/platform.c | 11 +++ include/linux/of_platform.h |3 ++

[PATCH 07/26] OF platform: export of_amba_device_create()

2013-08-07 Thread Davide Ciminaghi
This is needed because the pci-amba bus will create one or more amba devices for each probed pci device. We cannot create all the devices belonging to the same amba bus with just one call to of_platform_populate() Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- drivers/of

[PATCH 26/26] pinctrl: add support for sta2x11 (via pinctrl-nomadik)

2013-08-07 Thread Davide Ciminaghi
Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- .../devicetree/bindings/pinctrl/ste,nomadik.txt|2 +- drivers/pinctrl/Kconfig|6 +- drivers/pinctrl/Makefile |1 + drivers/pinctrl/pinctrl-nomadik-sta2x11.c

[PATCH 25/26] drivers/clk: sta2x11 common clock framework implementation

2013-08-07 Thread Davide Ciminaghi
ved because not all the details have been modeled (for instance mmc clocks are actually muxed clocks, not fixed factor). Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- arch/x86/Kconfig|1 + drivers/clk/Makefile|1 + drivers/clk/s

[PATCH 23/26] AMBA: pci-amba bridge: export function creating pci-amba device names

2013-08-07 Thread Davide Ciminaghi
pci_amba_get_dev_name() will be used by the sta2x11 common clock framework to register clkdevs with the same name as the corresponding amba or platform device. Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- drivers/amba/pci-amba.c | 14 ++ include/linux/pci

[PATCH 24/26] x86 STA2X11: add dts for Intel's Northville board

2013-08-07 Thread Davide Ciminaghi
board to boot with a serial console on /dev/ttyAMA1. A shell is also working on the same UART (interrupts are OK for UART's and apparently for most of the other Signed-off-by: Davide Ciminaghi Acked-by: Giancarlo Asnaghi --- arch/x86/platform/sta2x11/northville.

Re: [PATCH 2/3] x86, pci sta2x11-fixup: add function to access sta2x11 instance id

2013-03-11 Thread Davide Ciminaghi
On Fri, Mar 08, 2013 at 04:13:34PM +, Arnd Bergmann wrote: > On Friday 08 March 2013, Davide Ciminaghi wrote: > > > > The sta2x11 instance id will be included in clock names to make them > > unique in case of multiple sta2x11's living on the same machine. >

[PATCH 1/3] x86, pci sta2x11-fixup: add clk related field to struct sta2x11_instance

2013-03-08 Thread Davide Ciminaghi
Use struct sta2x11_instance for storing a pointer to an array of struct clk pointers representing the set of clocks belonging to a single connext chip. Since sta2x11_instance is an opaque type, we also add functions to access the new field. Signed-off-by: Davide Ciminaghi --- arch/x86/include

[PATCH 3/3] drivers/clk: sta2x11 common clock framework implementation

2013-03-08 Thread Davide Ciminaghi
Signed-off-by: Davide Ciminaghi --- arch/x86/Kconfig|1 + drivers/clk/Makefile|1 + drivers/clk/sta2x11/Makefile|1 + drivers/clk/sta2x11/clk-audio-pll.c | 150 +++ drivers/clk/sta2x11/clk-soc-pll.c | 96 + drivers/clk/sta2x11

[PATCH 0/3] sta2x11 common clock framework implementation

2013-03-08 Thread Davide Ciminaghi
rd up and running (with its UARTs working at least), of course provided that the pci to amba bridge is there. Multiple instances of the Connext chip should also be supported, even if no test has been done up to now. Thanks and regards Davide Davide Ciminaghi (3): x86, pci sta2x11-fixup: ad

[PATCH 2/3] x86, pci sta2x11-fixup: add function to access sta2x11 instance id

2013-03-08 Thread Davide Ciminaghi
The sta2x11 instance id will be included in clock names to make them unique in case of multiple sta2x11's living on the same machine. Signed-off-by: Davide Ciminaghi --- arch/x86/pci/sta2x11-fixup.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/pci/sta2x11-fixup.c b

Re: [PATCH] mfd: trivially fix build warning in sta2x11-mfd

2013-02-22 Thread Davide Ciminaghi
On Fri, Feb 22, 2013 at 10:39:59AM +0100, Alessandro Rubini wrote: > This driver cannot be a module, so "remove" is never called. The > mishap is mine, and back then there was no warning due to __devexit(). > > Signed-off-by: Alessandro Rubini > Acked-by: Giancarlo As

Re: [PATCH v4 2/7] pl080.h: moved from arm/include/asm/hardware to include/linux/amba/

2012-12-10 Thread Davide Ciminaghi
On Mon, Dec 10, 2012 at 10:44:09PM +0100, Linus Walleij wrote: > On Mon, Dec 10, 2012 at 2:42 PM, Davide Ciminaghi wrote: > > > From: Alessandro Rubini > > > > The header is used by drivers/dma/amba-pl08x.c, which can be compiled > > under x86, where PL080 exi

[PATCH v4 2/7] pl080.h: moved from arm/include/asm/hardware to include/linux/amba/

2012-12-10 Thread Davide Ciminaghi
From: Alessandro Rubini The header is used by drivers/dma/amba-pl08x.c, which can be compiled under x86, where PL080 exists under a PCI-to-AMBA bridge. This patche moves it where it can be accessed by other architectures, and fixes all users. Signed-off-by: Alessandro Rubini Acked-by: Giancarlo

[PATCH v4 0/7] enable support for AMBA drivers under x86

2012-12-10 Thread Davide Ciminaghi
/amba/ watchdog: sp805_wdt depends on ARM mmc: use the new drivers/amba: add support for a PCI bridge x86: add CONFIG_ARM_AMBA, selected by STA2X11 Davide Ciminaghi (1): mmci: replace readsl/writesl with ioread32_rep/iowrite32_rep arch/arm/mach-s3c64xx/dma.c

[PATCH v4 6/7] drivers/amba: add support for a PCI bridge

2012-12-10 Thread Davide Ciminaghi
From: Alessandro Rubini This is a PCI driver that registers AMBA devices for the range of supported devices. It is currently used by STA2X11, which exports AMBA peripherals under PCIe. The original AMBA drivers work with no changes or minimal ones. Signed-off-by: Alessandro Rubini Acked-by: G

[PATCH v4 3/7] watchdog: sp805_wdt depends on ARM

2012-12-10 Thread Davide Ciminaghi
: Alessandro Rubini Acked-by: Giancarlo Asnaghi Signed-off-by: Davide Ciminaghi --- drivers/watchdog/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index ad1bb93..c76fc07 100644 --- a/drivers/watchdog/Kconfig +++ b

[PATCH v4 4/7] mmci: replace readsl/writesl with ioread32_rep/iowrite32_rep

2012-12-10 Thread Davide Ciminaghi
Not all the architectures have readsl/writesl, use the more portable ioread32_rep/iowrite32_rep functions instead. Signed-off-by: Davide Ciminaghi --- drivers/mmc/host/mmci.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc

[PATCH v4 5/7] mmc: use the new

2012-12-10 Thread Davide Ciminaghi
From: Alessandro Rubini Signed-off-by: Alessandro Rubini Acked-by: Giancarlo Asnaghi --- drivers/mmc/host/mmci.c |2 +- drivers/mmc/host/msm_sdcc.c |2 +- drivers/mmc/host/mvsdio.c |2 +- drivers/mmc/host/mxcmmc.c |2 +- drivers/mmc/host/pxamci.c |3 +-- 5 files c

[PATCH v4 1/7] DMA: PL330: use prefix in reg names to build under x86

2012-12-10 Thread Davide Ciminaghi
refix to all registers, so it can be built by randomconfig after ARM_AMBA appears within x86. No other technical changes have been performed. The patch was build-tested only. Signed-off-by: Alessandro Rubini Acked-by: Giancarlo Asnaghi [Davide Ciminaghi : only registers prefixed] S

[PATCH v4 7/7] x86: add CONFIG_ARM_AMBA, selected by STA2X11

2012-12-10 Thread Davide Ciminaghi
From: Alessandro Rubini The sta2x11 I/O Hub is a bridge from PCIe to AMBA. It reuses a number of amba drivers and needs to activate core bus support. Signed-off-by: Alessandro Rubini Acked-by: Giancarlo Asnaghi --- arch/x86/Kconfig |4 1 file changed, 4 insertions(+) diff --git a/ar

Re: [PATCH 5/8] mmci: replace readsl/writesl with ioread32_rep/iowrite32_rep

2012-12-03 Thread Davide Ciminaghi
On Mon, Dec 03, 2012 at 02:47:54PM +, Will Deacon wrote: > Hi Davide, > > On Fri, Nov 23, 2012 at 03:08:27PM +0000, Davide Ciminaghi wrote: > > Not all the architectures have readsl/writesl, > > use the more portable ioread32_rep/iowrite32_rep functions instead. > &g

Re: [PATCH 2/8] gpio: pl061 depends on ARM

2012-12-03 Thread Davide Ciminaghi
On Sat, Dec 01, 2012 at 04:11:08PM +0100, Linus Walleij wrote: > On Fri, Nov 23, 2012 at 4:08 PM, Davide Ciminaghi wrote: > > > From: Alessandro Rubini > > > > Commit dece904d (gpio: pl061: use chained_irq_* functions in irq > > handler) introduced chained

Re: [PATCH 5/8] mmci: replace readsl/writesl with ioread32_rep/iowrite32_rep

2012-11-28 Thread Davide Ciminaghi
On Wed, Nov 28, 2012 at 05:08:27PM +0100, Linus Walleij wrote: > On Fri, Nov 23, 2012 at 4:08 PM, Davide Ciminaghi wrote: > > > Not all the architectures have readsl/writesl, > > use the more portable ioread32_rep/iowrite32_rep functions instead. > > > > S

Re: [PATCH 1/8 v3] DMA: PL330: use prefix in reg names to build under x86

2012-11-28 Thread Davide Ciminaghi
On Sat, Nov 24, 2012 at 04:35:37PM +0530, Jassi Brar wrote: > On 24 November 2012 12:33, Alessandro Rubini wrote: > > My patch: > >>> This driver would not compile if ARM_AMBA is selected under x86, > >>> because "CS" and "DS" are already defined there. But AMBA > >>> is used in the x86 world by

[PATCH 1/8 v3] DMA: PL330: use prefix in reg names to build under x86

2012-11-23 Thread Davide Ciminaghi
From: Alessandro Rubini This driver would not compile if ARM_AMBA is selected under x86, because "CS" and "DS" are already defined there. But AMBA is used in the x86 world by a PCI-to-AMBA bridge, to be submitted. The patch just adds the "PL330_" prefix to all register and bit fields, so it can

[PATCH 3/8 v3] pl080.h: moved from arm/include/asm/hardware to include/linux/amba/

2012-11-23 Thread Davide Ciminaghi
From: Alessandro Rubini The header is used by drivers/dma/amba-pl08x.c, which can be compiled under x86, where PL080 exists under a PCI-to-AMBA bridge. This patche moves it where it can be accessed by other architectures, and fixes all users. Signed-off-by: Alessandro Rubini Acked-by: Giancarlo

Re: [PATCH 1/8] DMA: PL330: use prefix in reg names to build under x86

2012-11-23 Thread Davide Ciminaghi
On Fri, Nov 23, 2012 at 09:21:44PM +0530, viresh kumar wrote: > On Fri, Nov 23, 2012 at 8:38 PM, Davide Ciminaghi wrote: > > From: Alessandro Rubini > > > > This driver would not compile if ARM_AMBA is selected under x86, > > because "CS" and "DS" a

[PATCH v2 0/8] enable support for AMBA drivers under x86

2012-11-23 Thread Davide Ciminaghi
or a PCI bridge x86: add CONFIG_ARM_AMBA, selected by STA2X11 Davide Ciminaghi (1): mmci: replace readsl/writesl with ioread32_rep/iowrite32_rep arch/arm/include/asm/hardware/pl080.h | 146 - arch/arm/mach-s3c64xx/dma.c |2 +- arch/arm/mach-spear3xx/spear3xx.c

[PATCH 2/8] gpio: pl061 depends on ARM

2012-11-23 Thread Davide Ciminaghi
From: Alessandro Rubini Commit dece904d (gpio: pl061: use chained_irq_* functions in irq handler) introduced chained_irq_enter/exit, which is only available for arch/arm and the driver won't compile elsewhere. The dependency is thus made explicit, because AMBA is used in the x86 world by a PCI-t

[PATCH 5/8] mmci: replace readsl/writesl with ioread32_rep/iowrite32_rep

2012-11-23 Thread Davide Ciminaghi
Not all the architectures have readsl/writesl, use the more portable ioread32_rep/iowrite32_rep functions instead. Signed-off-by: Davide Ciminaghi --- drivers/mmc/host/mmci.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc

[PATCH 7/8] drivers/amba: add support for a PCI bridge

2012-11-23 Thread Davide Ciminaghi
From: Alessandro Rubini This is a PCI driver that registers AMBA devices for the range of supported devices. It is currently used by STA2X11, which exports AMBA peripherals under PCIe. The original AMBA drivers work with no changes or minimal ones. Signed-off-by: Alessandro Rubini Acked-by: G

[PATCH 4/8] watchdog: sp805_wdt depends on ARM

2012-11-23 Thread Davide Ciminaghi
: Alessandro Rubini Acked-by: Giancarlo Asnaghi Signed-off-by: Davide Ciminaghi --- drivers/watchdog/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index ad1bb93..c76fc07 100644 --- a/drivers/watchdog/Kconfig +++ b

[PATCH 1/8] DMA: PL330: use prefix in reg names to build under x86

2012-11-23 Thread Davide Ciminaghi
From: Alessandro Rubini This driver would not compile if ARM_AMBA is selected under x86, because "CS" and "DS" are already defined there. But AMBA is used in the x86 world by a PCI-to-AMBA bridge, to be submitted. The patch adds the "PL330_" prefix to all register and bit fields, so it can be b

[PATCH 6/8] mmc: use the new

2012-11-23 Thread Davide Ciminaghi
From: Alessandro Rubini Signed-off-by: Alessandro Rubini Acked-by: Giancarlo Asnaghi --- drivers/mmc/host/mmci.c |2 +- drivers/mmc/host/msm_sdcc.c |2 +- drivers/mmc/host/mvsdio.c |2 +- drivers/mmc/host/mxcmmc.c |2 +- drivers/mmc/host/pxamci.c |3 +-- 5 files c

[PATCH 8/8] x86: add CONFIG_ARM_AMBA, selected by STA2X11

2012-11-23 Thread Davide Ciminaghi
From: Alessandro Rubini The sta2x11 I/O Hub is a bridge from PCIe to AMBA. It reuses a number of amba drivers and needs to activate core bus support. Signed-off-by: Alessandro Rubini Acked-by: Giancarlo Asnaghi --- arch/x86/Kconfig |4 1 file changed, 4 insertions(+) diff --git a/ar

[PATCH 3/8] pl080.h: moved from arm/include/asm/hardware to include/linux/amba/

2012-11-23 Thread Davide Ciminaghi
From: Alessandro Rubini The header is used by drivers/dma/amba-pl08x.c, which can be compiled under x86, where PL080 exists under a PCI-to-AMBA bridge. This patche moves it where it can be accessed by other architectures, and fixes all users. Signed-off-by: Alessandro Rubini Acked-by: Giancarlo

[PATCH] regmap: introduce tables for readable/writeable/volatile/precious checks

2012-11-20 Thread Davide Ciminaghi
describe readable/writeable/volatile and precious registers ranges instead. The table based check can still be overridden by passing the usual function pointers via struct regmap_config. Signed-off-by: Davide Ciminaghi --- Hi Mark, renamed struct regmap_range_table to regmap_access_table. Did n

Re: [PATCH] regmap: introduce tables for readable/writeable/volatile/precious checks

2012-11-20 Thread Davide Ciminaghi
On Tue, Nov 20, 2012 at 03:05:11PM +0900, Mark Brown wrote: > On Mon, Nov 19, 2012 at 02:31:53PM +0100, Davide Ciminaghi wrote: > > Many of the regmap enabled drivers implementing one or more of the > > readable, writeable, volatile and precious methods use the same c

[PATCH] regmap: introduce tables for readable/writeable/volatile/precious checks

2012-11-19 Thread Davide Ciminaghi
describe readable/writeable/volatile and precious registers ranges instead. The table based check can still be overridden by passing the usual function pointers via struct regmap_config. Signed-off-by: Davide Ciminaghi --- Mark, following your comments I just did a couple of changes: _reg

Re: [PATCH RESEND] regmap: introduce tables for readable/writeable/volatile/precious checks

2012-11-16 Thread Davide Ciminaghi
On Fri, Nov 16, 2012 at 10:19:07AM +0900, Mark Brown wrote: > On Thu, Nov 15, 2012 at 01:46:52PM +0100, cimina...@gnudd.com wrote: > > > I haven't seen any reply up to now, so I'm just resending the original patch > > (see https://lkml.org/lkml/2012/10/25/224). > > I just applied it to today's nex

Re: [PATCH 02/10] drivers/mfd/sta2x11-mfd: add regmap support

2012-10-25 Thread Davide Ciminaghi
On Wed, Oct 24, 2012 at 01:49:55PM +0100, Mark Brown wrote: > On Wed, Oct 24, 2012 at 02:31:18PM +0200, Davide Ciminaghi wrote: > > On Tue, Oct 23, 2012 at 06:18:38PM +0100, Mark Brown wrote: > ... > > > My opinion is that passing function pointers for > > readable/

Re: [PATCH 02/10] drivers/mfd/sta2x11-mfd: add regmap support

2012-10-24 Thread Davide Ciminaghi
On Tue, Oct 23, 2012 at 06:18:38PM +0100, Mark Brown wrote: > On Mon, Oct 22, 2012 at 04:50:33PM +0200, cimina...@gnudd.com wrote: > > > +static bool sta2x11_sctl_writeable_reg(struct device *dev, unsigned int > > reg) > > +{ > > + return !__reg_within_range(reg, SCTL_SCPCIECSBRST, SCTL_SCRSTST

Re: [PATCH v2] regmap : make lock/unlock functions customizable.

2012-10-17 Thread Davide Ciminaghi
On Wed, Oct 17, 2012 at 04:56:35PM +0900, Mark Brown wrote: > On Tue, Oct 16, 2012 at 03:56:59PM +0200, cimina...@gnudd.com wrote: > > From: Davide Ciminaghi > > > > It is sometimes convenient for a regmap user to override the standard > > regmap lock/unlock func

Re: [PATCH] regmap : make lock/unlock functions customizable.

2012-10-12 Thread Davide Ciminaghi
On Fri, Oct 12, 2012 at 03:26:09PM +0900, Mark Brown wrote: > On Mon, Oct 01, 2012 at 11:31:04PM +0200, cimina...@gnudd.com wrote: > > From: Davide Ciminaghi > > > > It is sometimes convenient for a regmap user to override the standard > > regmap lock/unlock func

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-28 Thread Davide Ciminaghi
On Thu, Sep 27, 2012 at 03:13:14PM +0100, Alan Cox wrote: > > as far as I know, nested locks are fine provided that you always take them > > in > > the same order and release them in the opposite order (lock A, lock B, > > unlock B, unlock A). So my conclusion is that nested spinlocks require > >

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-28 Thread Davide Ciminaghi
On Thu, Sep 27, 2012 at 02:49:19PM +0100, Mark Brown wrote: > On Thu, Sep 27, 2012 at 03:41:10PM +0200, Davide Ciminaghi wrote: > > > Maybe there's another solution: what about adding a couple of function > > pointers (lock, unlock) to struct regmap_config ? If they're

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-27 Thread Davide Ciminaghi
On Wed, Sep 26, 2012 at 05:49:33PM +0100, Mark Brown wrote: > On Wed, Sep 26, 2012 at 06:31:45PM +0200, Davide Ciminaghi wrote: > > > Oh, and there's another problem (I'm looking at the code right now, I had > > forgotten about this): the clock framework also asks fo

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-27 Thread Davide Ciminaghi
On Wed, Sep 26, 2012 at 05:49:33PM +0100, Mark Brown wrote: > On Wed, Sep 26, 2012 at 06:31:45PM +0200, Davide Ciminaghi wrote: > > > Oh, and there's another problem (I'm looking at the code right now, I had > > forgotten about this): the clock framework also asks fo

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-27 Thread Davide Ciminaghi
On Wed, Sep 26, 2012 at 05:49:33PM +0100, Mark Brown wrote: > On Wed, Sep 26, 2012 at 06:31:45PM +0200, Davide Ciminaghi wrote: > > > Oh, and there's another problem (I'm looking at the code right now, I had > > forgotten about this): the clock framework also asks fo

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-26 Thread Davide Ciminaghi
On Wed, Sep 26, 2012 at 04:04:29PM +0100, Mark Brown wrote: > On Wed, Sep 26, 2012 at 04:56:15PM +0200, Davide Ciminaghi wrote: > > On Tue, Sep 25, 2012 at 08:20:48PM +0100, Mark Brown wrote: > > > > Glancing at the diff here this looks a lot like regmap-mmio... not sure

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-26 Thread Davide Ciminaghi
On Tue, Sep 25, 2012 at 08:20:48PM +0100, Mark Brown wrote: > On Wed, Sep 12, 2012 at 12:22:47PM +0200, cimina...@gnudd.com wrote: > > From: Davide Ciminaghi > > > > A driver for the apb-soc registers is needed by the clock > > infrastructure code to configure and co

Re: [PATCH 0/2] x86, pci: sta2x11-fixup clock related patches

2012-09-21 Thread Davide Ciminaghi
On Thu, Sep 20, 2012 at 09:10:02PM +0200, Alessandro Rubini wrote: > > the following two patches are needed for the sta2x11 common clock > > framework (to be submitted shortly) to deal with the possibility > > of multiple instances of the connext chip on the same machine. > > Thanks you very much

Re: [PATCH 2/8] gpio: pl061 depends on ARM

2012-09-17 Thread Davide Ciminaghi
On Fri, Sep 14, 2012 at 10:09:36PM +0400, Sergei Shtylyov wrote: > Hello. > > On 09/14/2012 08:23 PM, Davide Ciminaghi wrote: > > > From: Alessandro Rubini > > > Patch dece904d itroduced chained_irq_enter/exit, which is only > > Rather commit dece904d.

[PATCH 1/8] DMA: PL330: use prefix in reg names to build under x86

2012-09-14 Thread Davide Ciminaghi
From: Alessandro Rubini This driver would not compile if ARM_AMBA is selected under x86, because "CS" and "DS" are already defined there. But AMBA is used in the x86 world by a PCI-to-AMBA bridge, to be submitted. The patch adds the "PL330_" prefix to all register and bit fields, so it can be b

[PATCH 2/8] gpio: pl061 depends on ARM

2012-09-14 Thread Davide Ciminaghi
From: Alessandro Rubini Patch dece904d itroduced chained_irq_enter/exit, which is only available for arch/arm and the driver won't compile elsewhere. The dependency is thus made explicit, because AMBA is used in the x86 world by a PCI-to-AMBA bridge, to be submitted. Signed-off-by: Alessandro R

[PATCH 3/8] pl080.h: moved from arm/include/asm/hardware to include/linux/amba/

2012-09-14 Thread Davide Ciminaghi
From: Alessandro Rubini The header is used by drivers/dma/amba-pl08x.c, which can be compiled under x86, where PL080 exists under a PCI-to-AMBA bridge. This patche moves it where it can be accessed by other architectures, and fixes all users. Signed-off-by: Alessandro Rubini Acked-by: Giancarlo

[PATCH 7/8] drivers/amba: add support for a PCI bridge

2012-09-14 Thread Davide Ciminaghi
From: Alessandro Rubini This is a PCI driver that registers AMBA devices for the range of supported devices. It is currently used by STA2X11, which exports AMBA peripherals under PCIe. The original AMBA drivers work with no changes or minimal ones. Signed-off-by: Alessandro Rubini Acked-by: G

[PATCH 4/8] watchdog: sp805_wdt depends on ARM

2012-09-14 Thread Davide Ciminaghi
: Alessandro Rubini Acked-by: Giancarlo Asnaghi Signed-off-by: Davide Ciminaghi --- drivers/watchdog/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index ad1bb93..c76fc07 100644 --- a/drivers/watchdog/Kconfig +++ b

[PATCH 0/8] enable support for AMBA drivers under x86

2012-09-14 Thread Davide Ciminaghi
From: Davide Ciminaghi Following Alessandro's report on build errors for amba drivers under x86 (see [1]), here's a patchset fixing the errors and adding a pci-amba bridge driver. Some notes: * 1/8 (DMA: PL330 ...) is quite fat. Should this be a problem, we could simply disable the PL

[PATCH 8/8] x86: add CONFIG_ARM_AMBA, selected by STA2X11

2012-09-14 Thread Davide Ciminaghi
From: Alessandro Rubini The sta2x11 I/O Hub is a bridge from PCIe to AMBA. It reuses a number of amba drivers and needs to activate core bus support. Signed-off-by: Alessandro Rubini Acked-by: Giancarlo Asnaghi --- arch/x86/Kconfig |4 1 files changed, 4 insertions(+), 0 deletions(-)

[PATCH 6/8] mmc: use the new

2012-09-14 Thread Davide Ciminaghi
From: Alessandro Rubini Signed-off-by: Alessandro Rubini Acked-by: Giancarlo Asnaghi --- drivers/mmc/host/mmci.c |2 +- drivers/mmc/host/msm_sdcc.c |2 +- drivers/mmc/host/mvsdio.c |2 +- drivers/mmc/host/mxcmmc.c |2 +- drivers/mmc/host/pxamci.c |3 +-- 5 files c

[PATCH 5/8] mmci: replace readsl/writesl with ioread32_rep/iowrite32_rep

2012-09-14 Thread Davide Ciminaghi
From: Davide Ciminaghi Not all the architectures have readsl/writesl, use the more portable ioread32_rep/iowrite32_rep functions instead. Signed-off-by: Davide Ciminaghi --- drivers/mmc/host/mmci.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc

sta2x11-mfd patches

2012-09-12 Thread Davide Ciminaghi
Hi, I made a mistake sending the sta2x11-mfd patches (patch number 0007 is repeated twice). I'm about to resend in few minutes, and hopefully will get it right this time. Sorry for the noise Davide -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: [PATCH RFC] sta2x11 common clock framework implementation

2012-09-07 Thread Davide Ciminaghi
On Thu, Sep 06, 2012 at 04:32:14PM -0700, Mike Turquette wrote: > Quoting Davide Ciminaghi (2012-08-27 08:03:40) > > On Thu, Aug 23, 2012 at 06:47:19PM -0700, Mike Turquette wrote: > > > Yikes. Is this code copied from a legacy clock framework > > > implementation? Si

Re: [PATCH RFC] sta2x11 common clock framework implementation

2012-08-27 Thread Davide Ciminaghi
On Thu, Aug 23, 2012 at 06:47:19PM -0700, Mike Turquette wrote: > Quoting Davide Ciminaghi (2012-06-20 18:29:25) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > > index 7b989ca..72013efe 100644 > > --- a/arch/x86/Kconfig > > +++ b/arch/x86/Kconfig > > @