Re: [RFC v2 8/8] drm: tegra: Add gr2d device

2012-11-27 Thread Thierry Reding
On Tue, Nov 27, 2012 at 11:22:56AM +0100, Lucas Stach wrote: > Am Dienstag, den 27.11.2012, 10:45 +0200 schrieb Terje Bergström: > > On 27.11.2012 10:32, Dave Airlie wrote: > > > On Tue, Nov 27, 2012 at 8:16 AM, Terje Bergström > > > wrote: > > >> Thanks for the pointer, I looked at exynos code.

[PATCH] drm: tegra: Add maintainers entry

2012-11-28 Thread Thierry Reding
Add myself as the maintainer of the NVIDIA Tegra DRM driver. Signed-off-by: Thierry Reding --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f503405..27c89b3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2504,6 +2504,14 @@ S

Re: [PATCH v4 0/3] pwm: Drivers for twl4030/6030 PWMs and LEDs

2012-11-28 Thread Thierry Reding
On Tue, Nov 27, 2012 at 11:09:56AM +0100, Peter Ujfalusi wrote: > Hello, > > Changes since v3: > - pwm-twl-led driver's comment fix patch squashed to the original patch > - Documentation for the DT bindings of the PWM drivers > Comments from Thierry Reding addressed: &

Re: [PATCH v5 00/12] Support for AM33xx PWM Subsystem

2012-11-28 Thread Thierry Reding
On Tue, Nov 27, 2012 at 02:18:05PM +0530, Philip, Avinash wrote: > In AM33xx PWM sub modules like ECAP, EHRPWM & EQEP are integrated to > PWM subsystem. All these submodules shares the resources (clock) & has > a clock gating register in PWM Subsystem. This patch series creates a > parent PWM Subs

[PATCH v2] drm: tegra: Add maintainers entry

2012-11-28 Thread Thierry Reding
Add myself as the maintainer of the NVIDIA Tegra DRM driver. Signed-off-by: Thierry Reding --- Changes in v2: - insert entry in alphabetical order - fix reference to driver directory - fix reference to git tree MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS

Re: [PATCH] drm: tegra: Add maintainers entry

2012-11-28 Thread Thierry Reding
On Wed, Nov 28, 2012 at 07:57:53AM -0800, Joe Perches wrote: > On Wed, 2012-11-28 at 12:10 +0100, Thierry Reding wrote: > > Add myself as the maintainer of the NVIDIA Tegra DRM driver. > > > diff --git a/MAINTAINERS b/MAINTAINERS > [] > > @@ -2504,6 +2504,14 @@ S: Su

[PATCH v2] rtc: Add NXP PCF8523 support

2012-11-28 Thread Thierry Reding
This commit adds an RTC driver for PCF8523 chips by NXP Semiconductors. No support is currently provided for the alarm and interrupt functions. Only the time and date functionality is implemented. Signed-off-by: Thierry Reding --- Changes in v2: - return an error if the OS flag cannot be cleared

Re: [PATCH] gpio: New driver for GPO emulation using PWM generators

2012-11-28 Thread Thierry Reding
On Wed, Nov 28, 2012 at 09:54:57AM +0100, Peter Ujfalusi wrote: > Hi Grant, Lars, Thierry, > > On 11/26/2012 04:46 PM, Grant Likely wrote: > > You're effectively asking the pwm layer to behave like a gpio (which > > is completely reasonable). Having a completely separate translation node > > reall

Re: [PATCH v2] drm: tegra: Add maintainers entry

2012-11-28 Thread Thierry Reding
On Wed, Nov 28, 2012 at 12:22:31PM -0700, Stephen Warren wrote: > On 11/28/2012 12:18 PM, Thierry Reding wrote: > > Add myself as the maintainer of the NVIDIA Tegra DRM driver. > > Aside from one comment below, > > Acked-by: Stephen Warren > > > +L: dri-de...@lis

[PATCH v3] drm: tegra: Add maintainers entry

2012-11-28 Thread Thierry Reding
Add myself as the maintainer of the NVIDIA Tegra DRM driver. Signed-off-by: Thierry Reding Acked-by: Stephen Warren --- Changes in v3: - add linux-tegra mailing list Changes in v2: - insert entry in alphabetical order - fix reference to driver directory - fix reference to git tree

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-28 Thread Thierry Reding
On Mon, Nov 26, 2012 at 03:19:07PM +0200, Terje Bergstrom wrote: [...] > diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig > index fb9a14e..94c861b 100644 > --- a/drivers/video/Kconfig > +++ b/drivers/video/Kconfig > @@ -2463,4 +2463,6 @@ config FB_SH_MOBILE_MERAM > Up to 4 memory

Re: [PATCH v2] rtc: Add NXP PCF8523 support

2012-11-28 Thread Thierry Reding
On Wed, Nov 28, 2012 at 03:31:58PM -0800, Andrew Morton wrote: > On Wed, 28 Nov 2012 20:21:26 +0100 > Thierry Reding wrote: > > > + err = i2c_transfer(client->adapter, &msg, 1); > > + if (err < 0) { > > + /* > > +* If the time

Re: linux-next: manual merge of the pwm tree with the driver-core tree

2012-11-28 Thread Thierry Reding
On Thu, Nov 29, 2012 at 04:25:14PM +1100, Stephen Rothwell wrote: > Hi Thierry, > > Today's linux-next merge of the pwm tree got a conflict in > drivers/pwm/pwm-tiecap.c between commit 3e9fe83d278c ("pwm: remove use of > __devinit") from the driver-core tree and commit 333b08ee8c6e ("pwm: > tiecap

Re: linux-next: manual merge of the pwm tree with the driver-core tree

2012-11-28 Thread Thierry Reding
On Thu, Nov 29, 2012 at 04:27:30PM +1100, Stephen Rothwell wrote: > Hi Thierry, > > Today's linux-next merge of the pwm tree got a conflict in > drivers/pwm/pwm-tiehrpwm.c between commit 3e9fe83d278c ("pwm: remove use > of __devinit") from the driver-core tree and commit 53ad9e8d3703 ("pwm: > tieh

Re: linux-next: manual merge of the pwm tree with the driver-core tree

2012-11-28 Thread Thierry Reding
On Thu, Nov 29, 2012 at 04:29:45PM +1100, Stephen Rothwell wrote: > Hi Thierry, > > Today's linux-next merge of the pwm tree got a conflict in > drivers/pwm/pwm-twl6030.c between commit fd1091125a1d ("pwm: remove use > of __devexit_p") from the driver-core tree and commit 6179a58ec7e2 ("pwm: > Rem

Re: [RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-29 Thread Thierry Reding
On Mon, Nov 26, 2012 at 03:19:08PM +0200, Terje Bergstrom wrote: [...] > diff --git a/drivers/video/tegra/host/chip_support.h > b/drivers/video/tegra/host/chip_support.h [...] > +struct nvhost_intr_ops { > + void (*init_host_sync)(struct nvhost_intr *); > + void (*set_host_clocks_per_usec)

Re: [RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-29 Thread Thierry Reding
On Mon, Nov 26, 2012 at 03:19:09PM +0200, Terje Bergstrom wrote: I've skipped a lot of code here that I need more time to review. [...] > diff --git a/drivers/video/tegra/host/nvhost_intr.c > b/drivers/video/tegra/host/nvhost_intr.c [...] > +static void action_submit_complete(struct nvhost_waitl

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-29 Thread Thierry Reding
On Wed, Nov 28, 2012 at 02:48:32PM +0100, Hiroshi Doyu wrote: [...] > From: Hiroshi Doyu > Date: Wed, 28 Nov 2012 14:47:04 +0200 > Subject: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices > > platform_bus notifier registers IOMMU devices if dma-window is > specified. > > Its format

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 12:21:04PM +0200, Terje Bergström wrote: > On 28.11.2012 23:23, Thierry Reding wrote: > > This could be problematic. Since drivers/video and drivers/gpu/drm are > > separate trees, this would entail a continuous burden on keeping both > > trees synchron

Re: [RFC v2 8/8] drm: tegra: Add gr2d device

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 10:09:13AM +0100, Lucas Stach wrote: > Am Donnerstag, den 29.11.2012, 10:17 +0200 schrieb Terje Bergström: > > On 28.11.2012 20:46, Lucas Stach wrote: > > > Am Mittwoch, den 28.11.2012, 18:23 +0200 schrieb Terje Bergström: > > >> Sorry. I promised in another thread a write-u

Re: [PATCH] gpio: New driver for GPO emulation using PWM generators

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 04:10:24PM +, Grant Likely wrote: > On Wed, 28 Nov 2012 09:54:57 +0100, Peter Ujfalusi > wrote: > > Hi Grant, Lars, Thierry, > > > > On 11/26/2012 04:46 PM, Grant Likely wrote: > > > You're effectively asking the pwm layer to behave like a gpio (which > > > is complet

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 11:38:11AM -0700, Stephen Warren wrote: > On 11/29/2012 04:47 AM, Thierry Reding wrote: > > On Thu, Nov 29, 2012 at 12:21:04PM +0200, Terje Bergström wrote: > >> On 28.11.2012 23:23, Thierry Reding wrote: > >>> This could be proble

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-29 Thread Thierry Reding
On Fri, Nov 30, 2012 at 08:54:32AM +0200, Terje Bergström wrote: > On 29.11.2012 20:34, Stephen Warren wrote: > > On 11/29/2012 03:21 AM, Terje Bergström wrote: > >> True. I might also as well delete the general interrupt altogether, as > >> we don't use it for any real purpose. > > > > Do make su

Re: [RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 12:39:23PM +0200, Terje Bergström wrote: > On 29.11.2012 10:44, Thierry Reding wrote: > >> diff --git a/drivers/video/tegra/host/dev.c > >> b/drivers/video/tegra/host/dev.c > >> index 98c9c9f..025a820 100644 > >> --- a/drivers/vi

Re: [RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 11:41:50AM -0700, Stephen Warren wrote: > On 11/29/2012 01:44 AM, Thierry Reding wrote: > > On Mon, Nov 26, 2012 at 03:19:08PM +0200, Terje Bergstrom wrote: > > >> diff --git a/drivers/video/tegra/host/host1x/host1x_intr.c > >> b/d

Re: [RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 01:00:40PM +0200, Terje Bergström wrote: > On 29.11.2012 12:04, Thierry Reding wrote: > > Looking some more at how this is used, I'm starting to think that it > > might be easier to export the various handlers and allow them to be > > passed to

Re: SPARC and OF_GPIO

2012-11-30 Thread Thierry Reding
On Fri, Nov 30, 2012 at 09:35:20AM +, Grant Likely wrote: > On Wed, 07 Nov 2012 02:34:19 -0500 (EST), David Miller > wrote: > > From: Thierry Reding > > Date: Wed, 7 Nov 2012 07:52:58 +0100 > > > > > It seems like OF_ADDRESS would be trickier. A comment a

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-30 Thread Thierry Reding
On Fri, Nov 30, 2012 at 10:56:39AM +0200, Terje Bergström wrote: > On 29.11.2012 13:47, Thierry Reding wrote: > > On Thu, Nov 29, 2012 at 12:21:04PM +0200, Terje Bergström wrote: > >> Tegra20 and Tegra30 are compatible, but future chips are not. I was > >> hoping we

Re: [PATCHv5,RESEND 1/8] gpu: host1x: Add host1x driver

2013-02-04 Thread Thierry Reding
On Tue, Jan 15, 2013 at 01:43:57PM +0200, Terje Bergstrom wrote: > Add host1x, the driver for host1x and its client unit 2D. Maybe this could be a bit more verbose. Perhaps describe what host1x is. > diff --git a/drivers/gpu/host1x/Kconfig b/drivers/gpu/host1x/Kconfig [...] > @@ -0,0 +1,6 @@ > +c

Re: [PATCHv5,RESEND 2/8] gpu: host1x: Add syncpoint wait and interrupts

2013-02-04 Thread Thierry Reding
On Tue, Jan 15, 2013 at 01:43:58PM +0200, Terje Bergstrom wrote: [...] > diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c [...] > @@ -95,7 +96,6 @@ static int host1x_probe(struct platform_device *dev) > > /* set common host1x device data */ > platform_set_drvdata(dev,

Re: [PATCHv5,RESEND 4/8] gpu: host1x: Add debug support

2013-02-04 Thread Thierry Reding
On Tue, Jan 15, 2013 at 01:44:00PM +0200, Terje Bergstrom wrote: > diff --git a/drivers/gpu/host1x/debug.c b/drivers/gpu/host1x/debug.c [...] > +static pid_t host1x_debug_null_kickoff_pid; > +unsigned int host1x_debug_trace_cmdbuf; > + > +static pid_t host1x_debug_force_timeout_pid; > +static u32 h

Re: [PATCHv5,RESEND 5/8] drm: tegra: Move drm to live under host1x

2013-02-04 Thread Thierry Reding
On Tue, Jan 15, 2013 at 01:44:01PM +0200, Terje Bergstrom wrote: [...] > diff --git a/drivers/gpu/host1x/Makefile b/drivers/gpu/host1x/Makefile > index 697d49a..ffc8bf1 100644 > --- a/drivers/gpu/host1x/Makefile > +++ b/drivers/gpu/host1x/Makefile > @@ -12,4 +12,10 @@ host1x-y = \ > hw/host1x

Re: [PATCHv5,RESEND 6/8] gpu: host1x: Remove second host1x driver

2013-02-04 Thread Thierry Reding
On Tue, Jan 15, 2013 at 01:44:02PM +0200, Terje Bergstrom wrote: [...] > +void host1x_set_drm_data(struct platform_device *pdev, void *data) > +{ > + struct host1x *host1x = platform_get_drvdata(pdev); > + host1x->drm_data = data; > +} > + > +void *host1x_get_drm_data(struct platform_device

Re: [PATCHv5,RESEND 7/8] ARM: tegra: Add board data and 2D clocks

2013-02-04 Thread Thierry Reding
On Tue, Jan 15, 2013 at 01:44:03PM +0200, Terje Bergstrom wrote: > Add a driver alias gr2d for Tegra 2D device, and assign a duplicate > of 2D clock to that driver alias. > > Signed-off-by: Terje Bergstrom > --- > arch/arm/mach-tegra/board-dt-tegra20.c|1 + > arch/arm/mach-tegra/board-dt

Re: [PATCHv5,RESEND 8/8] drm: tegra: Add gr2d device

2013-02-04 Thread Thierry Reding
On Tue, Jan 15, 2013 at 01:44:04PM +0200, Terje Bergstrom wrote: [...] > diff --git a/drivers/gpu/host1x/drm/drm.c b/drivers/gpu/host1x/drm/drm.c > @@ -270,7 +274,29 @@ static int tegra_drm_unload(struct drm_device *drm) > > static int tegra_drm_open(struct drm_device *drm, struct drm_file *filp

Re: [PATCHv5,RESEND 1/8] gpu: host1x: Add host1x driver

2013-02-04 Thread Thierry Reding
On Mon, Feb 04, 2013 at 07:30:08PM -0800, Terje Bergström wrote: > On 04.02.2013 01:09, Thierry Reding wrote: > > On Tue, Jan 15, 2013 at 01:43:57PM +0200, Terje Bergstrom wrote: > >> Add host1x, the driver for host1x and its client unit 2D. > > > > Maybe this could

Re: [PATCHv5,RESEND 2/8] gpu: host1x: Add syncpoint wait and interrupts

2013-02-05 Thread Thierry Reding
On Mon, Feb 04, 2013 at 08:29:08PM -0800, Terje Bergström wrote: > On 04.02.2013 02:30, Thierry Reding wrote: > >> diff --git a/drivers/gpu/host1x/dev.h b/drivers/gpu/host1x/dev.h > >> index d8f5979..8376092 100644 > >> --- a/drivers/gpu/host1x/dev.h >

Re: [PATCHv5,RESEND 4/8] gpu: host1x: Add debug support

2013-02-05 Thread Thierry Reding
On Mon, Feb 04, 2013 at 08:41:25PM -0800, Terje Bergström wrote: > On 04.02.2013 03:03, Thierry Reding wrote: > > On Tue, Jan 15, 2013 at 01:44:00PM +0200, Terje Bergstrom wrote: > >> diff --git a/drivers/gpu/host1x/debug.h b/drivers/gpu/host1x/debug.h > > [...] > >&

Re: [PATCHv5,RESEND 5/8] drm: tegra: Move drm to live under host1x

2013-02-05 Thread Thierry Reding
On Mon, Feb 04, 2013 at 08:45:36PM -0800, Terje Bergström wrote: > On 04.02.2013 03:08, Thierry Reding wrote: > > * PGP Signed by an unknown key > > > > On Tue, Jan 15, 2013 at 01:44:01PM +0200, Terje Bergstrom wrote: > > [...] > >> diff --git a/drivers/gpu/

Re: [PATCHv5,RESEND 8/8] drm: tegra: Add gr2d device

2013-02-05 Thread Thierry Reding
On Mon, Feb 04, 2013 at 09:17:45PM -0800, Terje Bergström wrote: > On 04.02.2013 04:56, Thierry Reding wrote: > > On Tue, Jan 15, 2013 at 01:44:04PM +0200, Terje Bergstrom wrote: > >> +{ > >> + struct host1x *host1x = drm->dev_private; > >> + struct

[PATCH] ARM: dma-mapping: Fix non-MMU builds

2013-02-05 Thread Thierry Reding
Commit 8cdf82d (ARM: dma-mapping: add support for CMA regions placed in highmem zone) changed the signature of the__alloc_from_contiguous() and __free_from_contiguous() functions but forgot to update the dummy macro equivalents for non-MMU. Signed-off-by: Thierry Reding --- arch/arm/mm/dma

[PATCH] clk: Fix build for Allwinner A1X SoCs

2013-02-05 Thread Thierry Reding
Commit 85a1819 (clk: sunxi: Use common of_clk_init() function) removed the source file but didn't update the Makefile, therefore causing the build to break on Allwinner A1X SoCs. Signed-off-by: Thierry Reding --- drivers/clk/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/dr

[PATCH] ARM: Kirkwood: Add missing linux/i2c.h include

2013-02-05 Thread Thierry Reding
The nsa310 board uses I2C_BOARD_INFO and i2c_register_board_info(), both of which are defined in the linux/i2c.h header file. Signed-off-by: Thierry Reding --- arch/arm/mach-kirkwood/board-nsa310.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-kirkwood/board-nsa310.c b/arch

Re: [PATCH] ARM: Kirkwood: Add missing linux/i2c.h include

2013-02-05 Thread Thierry Reding
On Tue, Feb 05, 2013 at 10:34:11AM -0500, Jason Cooper wrote: > Thierry, > > On Tue, Feb 05, 2013 at 04:10:25PM +0100, Thierry Reding wrote: > > The nsa310 board uses I2C_BOARD_INFO and i2c_register_board_info(), both > > of which are defined in the linux/i2c.h header file. &

Re: [PATCH 06/14] ARM: pci: Keep pci_common_init() around after init

2013-02-05 Thread Thierry Reding
On Wed, Jan 09, 2013 at 09:43:06PM +0100, Thierry Reding wrote: > When using deferred driver probing, PCI host controller drivers may > actually require this function after the init stage. > > Signed-off-by: Thierry Reding > --- > arch/arm/kernel/bios32.c | 6 +++--- &g

Re: [PATCH 06/14] ARM: pci: Keep pci_common_init() around after init

2013-02-06 Thread Thierry Reding
On Wed, Feb 06, 2013 at 04:30:41PM +, Russell King - ARM Linux wrote: > On Tue, Feb 05, 2013 at 09:41:48PM +0100, Thierry Reding wrote: > > On Wed, Jan 09, 2013 at 09:43:06PM +0100, Thierry Reding wrote: > > > When using deferred driver probing, PCI host controller drivers

Re: [PATCHv5,RESEND 2/8] gpu: host1x: Add syncpoint wait and interrupts

2013-02-06 Thread Thierry Reding
On Wed, Feb 06, 2013 at 12:29:26PM -0800, Terje Bergström wrote: > On 05.02.2013 00:42, Thierry Reding wrote: [...] > > Or if that doesn't work it would still be preferable to allocate memory > > in host1x_syncpt_wait() directly instead of going through the wrapper. >

Re: [PATCHv5,RESEND 4/8] gpu: host1x: Add debug support

2013-02-07 Thread Thierry Reding
On Wed, Feb 06, 2013 at 12:58:19PM -0800, Terje Bergström wrote: > On 05.02.2013 01:15, Thierry Reding wrote: > > On Mon, Feb 04, 2013 at 08:41:25PM -0800, Terje Bergström wrote: > >> This is used by debugfs code to direct to debugfs, and > >> nvhost_debug_dump() to se

Re: [PATCHv5,RESEND 8/8] drm: tegra: Add gr2d device

2013-02-07 Thread Thierry Reding
On Wed, Feb 06, 2013 at 01:23:17PM -0800, Terje Bergström wrote: > On 05.02.2013 01:54, Thierry Reding wrote: > > On Mon, Feb 04, 2013 at 09:17:45PM -0800, Terje Bergström wrote: > >> Yeah, it's actually working around the host1x duplicate naming. > >> host1x_s

Re: [PATCHv5,RESEND 8/8] drm: tegra: Add gr2d device

2013-02-10 Thread Thierry Reding
On Sun, Feb 10, 2013 at 04:42:53PM -0800, Terje Bergström wrote: > On 07.02.2013 23:07, Thierry Reding wrote: > > On Wed, Feb 06, 2013 at 01:23:17PM -0800, Terje Bergström wrote: > >>>> That's the security firewall. It walks through each submit, and ensures > &g

[PATCH 4/4] of/pci: Add of_pci_parse_bus_range() function

2013-02-11 Thread Thierry Reding
This function can be used to parse a bus-range property as specified by device nodes representing PCI bridges. Signed-off-by: Thierry Reding --- drivers/of/of_pci.c| 25 + include/linux/of_pci.h | 1 + 2 files changed, 26 insertions(+) diff --git a/drivers/of

[PATCH 1/4] of/pci: Provide support for parsing PCI DT ranges property

2013-02-11 Thread Thierry Reding
world drivers can just request the obtained resources and pass them on (e.g. pci_add_resource_offset). Signed-off-by: Andrew Murray Signed-off-by: Liviu Dudau Signed-off-by: Thierry Reding --- drivers/of/address.c | 63 ++ include/linux

[PATCH 0/4] Various PCI-related device tree helpers

2013-02-11 Thread Thierry Reding
cific patches that the series depend on which have also been submitted and will hopefully make it into 3.9 so we can use the 3.9 cycle to focus on getting the driver patches merged. Thierry Andrew Murray (1): of/pci: Provide support for parsing PCI DT ranges property Thierry Reding (3): of/pci

[PATCH 3/4] of/pci: Add of_pci_get_bus() function

2013-02-11 Thread Thierry Reding
This function can be used to parse the number of a device's parent PCI bus from a standard 5-cell PCI resource. Signed-off-by: Thierry Reding --- drivers/of/of_pci.c| 21 + include/linux/of_pci.h | 1 + 2 files changed, 22 insertions(+) diff --git a/drivers/of/of_

[PATCH v2 2/4] of/pci: Add of_pci_get_devfn() function

2013-02-11 Thread Thierry Reding
This function can be used to parse the device and function number from a standard 5-cell PCI resource. PCI_SLOT() and PCI_FUNC() can be used on the returned value obtain the device and function numbers respectively. Signed-off-by: Thierry Reding --- Changes in v2: - rename devfn and err

Re: [PATCH 1/4] of/pci: Provide support for parsing PCI DT ranges property

2013-02-11 Thread Thierry Reding
On Mon, Feb 11, 2013 at 01:43:03PM -0600, Rob Herring wrote: > On 02/11/2013 02:22 AM, Thierry Reding wrote: > > From: Andrew Murray > > > > DT bindings for PCI host bridges often use the ranges property to describe > > memory and IO ranges - this binding

Re: [PATCH] of: Fix locking when calling of_get_next_available_child()

2013-02-12 Thread Thierry Reding
On Mon, Feb 11, 2013 at 04:26:46PM -0700, Stephen Warren wrote: > On 02/11/2013 03:19 PM, Grant Likely wrote: > > of_get_next_available_child() obtains the devtree_lock and then calls > > of_device_is_available() which also attempts to claim the lock. This is > > obviously incorrect and causes a de

Re: [PATCH] pwm: spear: Fix checking return value of clk_enable() and clk_prepare()

2013-04-02 Thread Thierry Reding
On Sat, Mar 30, 2013 at 08:43:22PM +0800, Axel Lin wrote: > The logic to check return value of clk_enable() and clk_prepare() is reversed, > fix it. > > Signed-off-by: Axel Lin > Cc: > --- > This is v3 of "pwm: spear: Fix enable pwm output". > I change the subject line because it also fixes chec

Re: [PATCH 1/4] pwm: ab8500: Add .owner to struct pwm_ops

2013-04-02 Thread Thierry Reding
On Sun, Mar 31, 2013 at 11:14:02AM +0800, Axel Lin wrote: > Add missing .owner of struct pwm_ops. This prevents the module from being > removed from underneath its users. > > Signed-off-by: Axel Lin > --- > drivers/pwm/pwm-ab8500.c |1 + > 1 file changed, 1 insertion(+) All 4 patches applie

Re: [PATCH 1/3] pwm: imx: Remove enabled field from struct imx_chip

2013-04-02 Thread Thierry Reding
On Sun, Mar 31, 2013 at 10:59:47PM +0800, Axel Lin wrote: > We can test PWMF_ENABLED bit to know if pwm is enabled or not. > Thus remove enabled field from struct imx_chip. > > Signed-off-by: Axel Lin > --- > drivers/pwm/pwm-imx.c |6 +- > 1 file changed, 1 insertion(+), 5 deletions(-)

Re: [PATCH] pwm: pxa: Remove PWM_ID_BASE macro

2013-04-02 Thread Thierry Reding
On Mon, Apr 01, 2013 at 03:41:22PM +0800, Axel Lin wrote: > PWM_ID_BASE() is not used after convert to PWM framework, remove it. > Also update driver_data field of struct platform_device_id accordingly. > > Signed-off-by: Axel Lin > --- > This is v2 of [PATCH] pwm: pxa: Use driver_data field to s

Re: [PATCH v2 2/2] pwm: spear: Remove unused *dev from struct spear_pwm_chip

2013-04-02 Thread Thierry Reding
On Mon, Apr 01, 2013 at 12:29:48PM +0800, Axel Lin wrote: > Signed-off-by: Axel Lin > Acked-by: Shiraz Hashim > --- > v2: fix the prefix in subject line > drivers/pwm/pwm-spear.c |3 --- > 1 file changed, 3 deletions(-) Applied, thanks. Thierry pgpamYaq2j3Ij.pgp Description: PGP signatur

Re: [PATCH 1/2] pwm: mxs: Remove unused *dev from struct mxs_pwm_chip

2013-04-02 Thread Thierry Reding
On Mon, Apr 01, 2013 at 10:48:13AM +0800, Axel Lin wrote: > Signed-off-by: Axel Lin > --- > drivers/pwm/pwm-mxs.c |2 -- > 1 file changed, 2 deletions(-) Both patches applied, thanks. Thierry pgpYyhQkTuhzL.pgp Description: PGP signature

Re: [PATCH] pwm: twl: Return proper error if twl6030_pwm_enable() fails

2013-04-02 Thread Thierry Reding
On Sun, Mar 31, 2013 at 11:07:30PM +0800, Axel Lin wrote: > Return proper error instead of 0 if twl6030_pwm_enable() fails. > > Signed-off-by: Axel Lin > --- > drivers/pwm/pwm-twl.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks. Thierry pgpQfontwLtlp.pgp Descript

[PATCH v3 01/12] of/pci: Provide support for parsing PCI DT ranges property

2013-04-03 Thread Thierry Reding
merges them into a single range (as was the case with powerpc and microblaze). The modifications to microblaze, mips and powerpc have not been tested. Signed-off-by: Andrew Murray Signed-off-by: Liviu Dudau Signed-off-by: Thomas Petazzoni Signed-off-by: Thierry Reding --- arch/microbla

[PATCH v3 02/12] of/pci: Add of_pci_get_devfn() function

2013-04-03 Thread Thierry Reding
This function can be used to parse the device and function number from a standard 5-cell PCI resource. PCI_SLOT() and PCI_FUNC() can be used on the returned value obtain the device and function numbers respectively. Signed-off-by: Thierry Reding --- Changes in v2: - rename devfn and err

[PATCH v3 09/12] ARM: tegra: tec: Add PCIe support

2013-04-03 Thread Thierry Reding
Enable the first PCIe root port which is connected to an FPGA on the Tamonten Evaluation Carrier and add device nodes for each of the PCI endpoints available in the standard configuration. Signed-off-by: Thierry Reding --- Changes in v2: - remove duplicate nodes and properties defined in tegra20

[PATCH v3 03/12] of/pci: Add of_pci_parse_bus_range() function

2013-04-03 Thread Thierry Reding
This function can be used to parse a bus-range property as specified by device nodes representing PCI bridges. Signed-off-by: Thierry Reding --- drivers/of/of_pci.c| 25 + include/linux/of_pci.h | 1 + 2 files changed, 26 insertions(+) diff --git a/drivers/of

[PATCH v3 11/12] ARM: tegra: trimslice: Initialize PCIe from DT

2013-04-03 Thread Thierry Reding
With the device tree support in place, probe the PCIe controller from the device tree and remove the corresponding workaround in the board file. Signed-off-by: Thierry Reding --- Changes in v2: - add missing dummy regulator nodes by Stephen Warren - rename port 0 DT node and disable unused port

[PATCH v3 06/12] ARM: tegra: Move pmc.h to include/linux/tegra-pmc.h

2013-04-03 Thread Thierry Reding
In preparation for moving the PCIe driver into the drivers/pci/host directory, this header, which contains prototypes that are required by the PCIe driver, needs to be moved to a globally visible location. Signed-off-by: Thierry Reding --- Changes in v2: - keep tegra_pmc_init() prototype in arch

[PATCH v3 04/12] PCI: Introduce new MSI chip infrastructure

2013-04-03 Thread Thierry Reding
(), arch_teardown_msi_irq() and arch_msi_check_device()) which check if a PCI device's bus has an attached MSI chip and forward the call appropriately. Signed-off-by: Thierry Reding --- drivers/pci/msi.c | 35 +++ drivers/pci/probe.c | 1 + include/linux/msi.h

[PATCH v3 05/12] ARM: tegra: Move tegra_pcie_xclk_clamp() to PMC

2013-04-03 Thread Thierry Reding
The PMC code already accesses to PMC registers so it makes sense to move this function there as well. While at it, rename the function to tegra_pmc_pcie_xclk_clamp() for consistency. Signed-off-by: Thierry Reding Acked-by: Stephen Warren --- arch/arm/mach-tegra/pcie.c | 30

[PATCH v3 00/12] Rewrite Tegra PCIe driver

2013-04-03 Thread Thierry Reding
upport for parsing PCI DT ranges property Thierry Reding (11): of/pci: Add of_pci_get_devfn() function of/pci: Add of_pci_parse_bus_range() function PCI: Introduce new MSI chip infrastructure ARM: tegra: Move tegra_pcie_xclk_clamp() to PMC ARM: tegra: Move pmc.h to include/linux/tegra-p

[PATCH v3 12/12] ARM: tegra: Update default configuration (PCIe)

2013-04-03 Thread Thierry Reding
Enable PCI and MSI support as well as the new Tegra PCIe controller driver. Signed-off-by: Thierry Reding --- arch/arm/configs/tegra_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index 2b42a2c

[PATCH v3 08/12] ARM: tegra: tamonten: Add PCIe support

2013-04-03 Thread Thierry Reding
Add properties common to all Tamonten-derived boards to the Tamonten DTSI and add the fixed 1.05 V regulator. Signed-off-by: Thierry Reding --- Changes in v2: - add properties common to all Tamonten boards - add fixed 1.05 V regulator arch/arm/boot/dts/tegra20-tamonten.dtsi | 17

[PATCH v3 10/12] ARM: tegra: harmony: Initialize PCIe from DT

2013-04-03 Thread Thierry Reding
With the device tree support in place, probe the PCIe controller from the device tree and remove the corresponding workaround in the board file. Signed-off-by: Thierry Reding --- arch/arm/boot/dts/tegra20-harmony.dts | 20 1 file changed, 16 insertions(+), 4 deletions

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

2013-04-03 Thread Thierry Reding
On Thu, Apr 04, 2013 at 03:18:45PM +1100, Stephen Rothwell wrote: > Hi Felipe, > > Today's linux-next merge of the usb-gadget tree got a conflict in > drivers/usb/host/ehci-tegra.c between commit 369a9a9d2af7 ("usb: host: > ehci-tegra: Fix oops in error cleanup") from the usb tree and commit > 426

Re: [PATCH v3 07/12] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-04-04 Thread Thierry Reding
On Thu, Apr 04, 2013 at 03:30:01PM -0600, Stephen Warren wrote: > On 04/04/2013 03:28 PM, Stephen Warren wrote: > > On 04/03/2013 08:45 AM, Thierry Reding wrote: > >> Move the PCIe driver from arch/arm/mach-tegra into the drivers/pci/host > >> directory. The motivation

Re: [PATCH v3 07/12] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-04-05 Thread Thierry Reding
On Thu, Apr 04, 2013 at 03:28:54PM -0600, Stephen Warren wrote: [...] > > diff --git a/Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt > > b/Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt > > > +Required properties: > > > +- interrupts: the interrupt outputs of the c

Re: [PATCH v3 07/12] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-04-05 Thread Thierry Reding
For reference, here's the new binding document with all your comments addressed (I think). Thierry NVIDIA Tegra PCIe controller Required properties: - compatible: "nvidia,tegra20-pcie" - device_type: Must be "pci" - reg: A list of physical base address and length for each set of controller regi

Re: [PATCH 4/4] pwm_backlight: Add support for the whole range of the PWM in DT mode

2013-01-29 Thread Thierry Reding
On Tue, Jan 22, 2013 at 02:39:56PM +0100, Peter Ujfalusi wrote: > When booting with DT make it possible to use the whole range of the PWM when > controlling the backlight in a same way it is possible when the kernel is > booted in non DT mode. > A new property "max-brightness-level" can be used to

Re: [PATCH 1/4] pwm_backlight: Fix PWM levels support in non DT case

2013-01-29 Thread Thierry Reding
On Tue, Jan 29, 2013 at 09:17:04AM +0100, Peter Ujfalusi wrote: > On 01/28/2013 10:01 PM, Thierry Reding wrote: > > On Tue, Jan 22, 2013 at 02:39:53PM +0100, Peter Ujfalusi wrote: > >> It is expected that board files would have: > >> static unsigned int bl_levels[] =

Re: [PATCH 1/4] pwm_backlight: Fix PWM levels support in non DT case

2013-01-29 Thread Thierry Reding
On Tue, Jan 29, 2013 at 01:10:19PM +0100, Peter Ujfalusi wrote: > On 01/29/2013 11:17 AM, Thierry Reding wrote: > > On Tue, Jan 29, 2013 at 09:17:04AM +0100, Peter Ujfalusi wrote: > >> On 01/28/2013 10:01 PM, Thierry Reding wrote: > >>> On Tue, Jan 22, 2013 at 02

Re: [RFC 3/4] drm: tegra: use the Common Display Framework

2013-01-29 Thread Thierry Reding
On Wed, Jan 30, 2013 at 04:01:48PM +0900, Alex Courbot wrote: > On 01/30/2013 03:50 PM, Mark Zhang wrote: > >>@@ -147,6 +148,9 @@ struct tegra_output { > >> > >>struct drm_encoder encoder; > >>struct drm_connector connector; > >>+ struct display_entity this; > >>+ struct display_entity

Re: [RFC 0/4] Use the Common Display Framework in tegra-drm

2013-01-29 Thread Thierry Reding
On Wed, Jan 30, 2013 at 12:02:15PM +0900, Alexandre Courbot wrote: > This series leverages the (still work-in-progress) Common Display Framework to > add panel support to the tegra-drm driver. It also adds a driver for the > CLAA101WA01A panel used on the Ventana board. > > The CDF is a moving tar

Re: [RFC 1/4] video: panel: add CLAA101WA01A panel support

2013-01-29 Thread Thierry Reding
On Wed, Jan 30, 2013 at 04:27:11PM +0900, Alex Courbot wrote: > On 01/30/2013 04:20 PM, Mark Zhang wrote: [...] > >>+static int panel_claa101_get_modes(struct display_entity *entity, > >>+ const struct videomode **modes) > >>+{ > >>+ /* TODO get modes from EDID? */ >

Re: [PATCH] pwm-backlight: handle BL_CORE_FBBLANK state

2013-01-29 Thread Thierry Reding
On Wed, Jan 30, 2013 at 03:19:15PM +0900, Alexandre Courbot wrote: > According to include/linux/backlight.h, the fb_blank field is to be > removed and blank status should preferably be set by setting the > BL_CORE_FBBLANK bit of the state field. This patch ensures this > condition is also taken int

Re: [PATCH v3 1/3] pwm: Add pwm_can_sleep() as exported API to users

2013-01-30 Thread Thierry Reding
On Mon, Jan 28, 2013 at 03:00:57PM +0100, Florian Vaussard wrote: > Calls to some external PWM chips can sleep. To help users, > add pwm_can_sleep() API. > > Cc: Thierry Reding > Cc: Peter Ujfalusi > Signed-off-by: Florian Vaussard > --- > drivers/pwm/core.c | 12

Re: [PATCH v3 3/3] leds: leds-pwm: Defer led_pwm_set() if PWM can sleep

2013-01-30 Thread Thierry Reding
On Mon, Jan 28, 2013 at 03:00:59PM +0100, Florian Vaussard wrote: > Call to led_pwm_set() can happen inside atomic context, like triggers. > If the PWM call can sleep, defer using a worker. > > Cc: Peter Ujfalusi > Signed-off-by: Florian Vaussard > --- > drivers/leds/leds-pwm.c | 50 +

Re: [PATCH v3 2/3] pwm: Add can_sleep property to drivers

2013-01-30 Thread Thierry Reding
On Mon, Jan 28, 2013 at 03:00:58PM +0100, Florian Vaussard wrote: > Calls to PWM drivers connected through I2C can sleep. > Use the new can_sleep property. > > Acked-by: Peter Ujfalusi > Signed-off-by: Florian Vaussard > --- > drivers/pwm/pwm-twl-led.c |1 + > drivers/pwm/pwm-twl.c |

[PATCH] mm/nommu: Use get_nr_swap_pages()

2013-01-30 Thread Thierry Reding
This fixes a build failure introduced by commit ac07b1f ("swap: add per- partition lock for swapfile") which changed the access pattern of the nr_swap_pages variable but failed to update the no-MMU case. Signed-off-by: Thierry Reding --- mm/nommu.c | 2 +- 1 file changed, 1 inser

[PATCH] pinctrl: Remove newly introduced __dev* annotations

2013-01-30 Thread Thierry Reding
__devinit, __devexit and __devexit_p have been removed and should no longer be used. Signed-off-by: Thierry Reding --- drivers/pinctrl/pinctrl-ab8500.c | 2 +- drivers/pinctrl/pinctrl-abx500.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/pinctrl

[PATCH] power/reset: Remove newly introduced __dev* annotations

2013-01-30 Thread Thierry Reding
__devinit, __devexit and __devexit_p have recently been removed and should no longer be used. Signed-off-by: Thierry Reding --- drivers/power/reset/restart-poweroff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/reset/restart-poweroff.c b/drivers

[PATCH 2/2] Ignore address space for IS_ERR() and friends

2013-01-30 Thread Thierry Reding
This patch ignores sparse' address_space and noderef attributes for pointers passed to the IS_ERR() and related functions. Since they only extract an error code or compare the pointer to an integer value, they can safely be used on any type of pointer. Signed-off-by: Thierry Reding --- Note

[PATCH 1/2 sparse] Support the force attribute for function parameters

2013-01-30 Thread Thierry Reding
e and the noderef attribute to be ignored. Signed-off-by: Thierry Reding --- evaluate.c | 22 +- expand.c | 4 ++-- parse.c| 2 ++ symbol.h | 5 - 4 files changed, 21 insertions(+), 12 deletions(-) diff --git a/evaluate.c b/evaluate.c index bebe968..d5a00e1 1

[PATCH] mmc: sdhci-esdhc-imx: Remove unused variables

2013-01-30 Thread Thierry Reding
Commit 3f175a6 (mmc: sdhci-esdhc-imx: remove ESDHC_CD_GPIO handling from IO accessory) removed all the code that was using these variables, so it is safe to drop them. Signed-off-by: Thierry Reding --- drivers/mmc/host/sdhci-esdhc-imx.c | 5 - 1 file changed, 5 deletions(-) diff --git a

[PATCH] ASoC: fsl: Fix multiple symbol definitions

2013-01-30 Thread Thierry Reding
imx-pcm.o to each of the modules that require it, but only add it to the kernel once when one or both drivers are builtin. Signed-off-by: Thierry Reding --- sound/soc/fsl/Makefile | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/sound/soc/fsl/Makefile b

Re: [PATCH] mmc: sdhci-esdhc-imx: Remove unused variables

2013-01-30 Thread Thierry Reding
On Thu, Jan 31, 2013 at 08:31:20AM +0800, Shawn Guo wrote: > On Wed, Jan 30, 2013 at 09:11:21PM +0100, Thierry Reding wrote: > > Commit 3f175a6 (mmc: sdhci-esdhc-imx: remove ESDHC_CD_GPIO handling from > > IO accessory) removed all the code that was using these variables, so it >

Re: [PATCH] ASoC: fsl: Fix multiple symbol definitions

2013-01-30 Thread Thierry Reding
On Thu, Jan 31, 2013 at 09:42:17AM +0800, Shawn Guo wrote: > On Wed, Jan 30, 2013 at 09:24:31PM +0100, Thierry Reding wrote: > > Commit 25b8d31 (ASoC: fsl: fix multiple definition of init_module) fixed > > a build error due to multiple symbol definitions when building as a > >

Re: [PATCH 1/1] dma: pl330: Convert to devm_ioremap_resource()

2013-01-30 Thread Thierry Reding
On Thu, Jan 31, 2013 at 12:37:04PM +0530, Sachin Kamat wrote: > Use the newly introduced devm_ioremap_resource() instead of > devm_request_and_ioremap() which provides more consistent error handling. > > Signed-off-by: Sachin Kamat > Cc: Vinod Koul > Cc: Thierry Reding > C

  1   2   3   4   5   6   7   8   9   10   >