Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-23 Thread Sricharan R
Hi, On Friday 23 August 2013 10:17 AM, Rajendra Nayak wrote: On Thursday 22 August 2013 05:03 PM, Sricharan R wrote: maps crossbar number- to interrupt number and calls request_irq(int_no, crossbar_handler,..) So will this mapping happen based on some data passed from DT or just based on

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-23 Thread Rajendra Nayak
On Friday 23 August 2013 11:41 AM, Sricharan R wrote: Hi, On Friday 23 August 2013 10:17 AM, Rajendra Nayak wrote: On Thursday 22 August 2013 05:03 PM, Sricharan R wrote: maps crossbar number- to interrupt number and calls request_irq(int_no, crossbar_handler,..) So will this mapping

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-23 Thread Sekhar Nori
On Friday 23 August 2013 11:41 AM, Sricharan R wrote: Hi, On Friday 23 August 2013 10:17 AM, Rajendra Nayak wrote: On Thursday 22 August 2013 05:03 PM, Sricharan R wrote: maps crossbar number- to interrupt number and calls request_irq(int_no, crossbar_handler,..) So will this mapping

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-23 Thread Sricharan R
On Friday 23 August 2013 12:06 PM, Sekhar Nori wrote: On Friday 23 August 2013 11:41 AM, Sricharan R wrote: Hi, On Friday 23 August 2013 10:17 AM, Rajendra Nayak wrote: On Thursday 22 August 2013 05:03 PM, Sricharan R wrote: maps crossbar number- to interrupt number and calls

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-23 Thread Sekhar Nori
On Friday 23 August 2013 12:23 PM, Sricharan R wrote: On Friday 23 August 2013 12:06 PM, Sekhar Nori wrote: On Friday 23 August 2013 11:41 AM, Sricharan R wrote: Hi, On Friday 23 August 2013 10:17 AM, Rajendra Nayak wrote: On Thursday 22 August 2013 05:03 PM, Sricharan R wrote: maps

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-23 Thread Santosh Shilimkar
On Friday 23 August 2013 04:14 AM, Sekhar Nori wrote: On Friday 23 August 2013 12:23 PM, Sricharan R wrote: On Friday 23 August 2013 12:06 PM, Sekhar Nori wrote: On Friday 23 August 2013 11:41 AM, Sricharan R wrote: Hi, On Friday 23 August 2013 10:17 AM, Rajendra Nayak wrote: On Thursday 22

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-23 Thread Sekhar Nori
On 8/23/2013 7:08 PM, Santosh Shilimkar wrote: On Friday 23 August 2013 04:14 AM, Sekhar Nori wrote: On Friday 23 August 2013 12:23 PM, Sricharan R wrote: On Friday 23 August 2013 12:06 PM, Sekhar Nori wrote: On Friday 23 August 2013 11:41 AM, Sricharan R wrote: Hi, On Friday 23 August 2013

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-23 Thread Linus Walleij
On Fri, Aug 23, 2013 at 6:28 PM, Sekhar Nori nsek...@ti.com wrote: On 8/23/2013 7:08 PM, Santosh Shilimkar wrote: The whole point we are moving to domain is not have any default mapping(connection done) at DT level. Rather DT only specifies the peripherals and their cross-bar connection

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-23 Thread Santosh Shilimkar
On Friday 23 August 2013 03:06 PM, Linus Walleij wrote: On Fri, Aug 23, 2013 at 6:28 PM, Sekhar Nori nsek...@ti.com wrote: On 8/23/2013 7:08 PM, Santosh Shilimkar wrote: The whole point we are moving to domain is not have any default mapping(connection done) at DT level. Rather DT only

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-22 Thread Sricharan R
Hi Linus, On Thursday 22 August 2013 02:40 AM, Linus Walleij wrote: On Thu, Aug 15, 2013 at 11:14 PM, Santosh Shilimkar santosh.shilim...@ti.com wrote: On Thursday 15 August 2013 04:51 PM, Linus Walleij wrote: (...) Sorry I don't understand what thread that is... can you point me there? My

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-22 Thread Santosh Shilimkar
On Thursday 22 August 2013 07:33 AM, Sricharan R wrote: Hi Linus, On Thursday 22 August 2013 02:40 AM, Linus Walleij wrote: On Thu, Aug 15, 2013 at 11:14 PM, Santosh Shilimkar santosh.shilim...@ti.com wrote: On Thursday 15 August 2013 04:51 PM, Linus Walleij wrote: (...) Sorry I don't

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-22 Thread Rajendra Nayak
On Thursday 22 August 2013 05:03 PM, Sricharan R wrote: maps crossbar number- to interrupt number and calls request_irq(int_no, crossbar_handler,..) So will this mapping happen based on some data passed from DT or just based on whats available when the device does a request_irq()? If its

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-21 Thread Linus Walleij
On Thu, Aug 15, 2013 at 11:14 PM, Santosh Shilimkar santosh.shilim...@ti.com wrote: On Thursday 15 August 2013 04:51 PM, Linus Walleij wrote: (...) Sorry I don't understand what thread that is... can you point me there? My previous statement on this issue what this:

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-15 Thread Linus Walleij
On Tue, Aug 13, 2013 at 11:56 AM, Sricharan R r.sricha...@ti.com wrote: Initially irqchip was discussed, but we also have a DMA crossbar to map the dma-requests. Since both irq/dma crossbars should be handled, pinctrl was suggested as the appropriate place to handle this. I think it is

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-15 Thread Santosh Shilimkar
On Thursday 15 August 2013 04:01 PM, Linus Walleij wrote: On Tue, Aug 13, 2013 at 11:56 AM, Sricharan R r.sricha...@ti.com wrote: Initially irqchip was discussed, but we also have a DMA crossbar to map the dma-requests. Since both irq/dma crossbars should be handled, pinctrl was suggested

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-15 Thread Linus Walleij
On Thu, Aug 15, 2013 at 10:26 PM, Santosh Shilimkar santosh.shilim...@ti.com wrote: On Thursday 15 August 2013 04:01 PM, Linus Walleij wrote: On Tue, Aug 13, 2013 at 11:56 AM, Sricharan R r.sricha...@ti.com wrote: Initially irqchip was discussed, but we also have a DMA crossbar to map the

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-15 Thread Santosh Shilimkar
On Thursday 15 August 2013 04:51 PM, Linus Walleij wrote: On Thu, Aug 15, 2013 at 10:26 PM, Santosh Shilimkar santosh.shilim...@ti.com wrote: On Thursday 15 August 2013 04:01 PM, Linus Walleij wrote: On Tue, Aug 13, 2013 at 11:56 AM, Sricharan R r.sricha...@ti.com wrote: Initially irqchip

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-14 Thread Tony Lindgren
* Santosh Shilimkar santosh.shilim...@ti.com [130813 06:35]: On Tuesday 13 August 2013 04:10 AM, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [130724 12:06]: On Wednesday 24 July 2013 02:51 PM, Nishanth Menon wrote: On 07/24/2013 01:43 PM, Sricharan R wrote: On

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-13 Thread Tony Lindgren
* Santosh Shilimkar santosh.shilim...@ti.com [130724 12:06]: On Wednesday 24 July 2013 02:51 PM, Nishanth Menon wrote: On 07/24/2013 01:43 PM, Sricharan R wrote: On Wednesday 24 July 2013 10:17 PM, Nishanth Menon wrote: On 07/24/2013 11:38 AM, Santosh Shilimkar wrote: On Wednesday 24 July

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-13 Thread Sricharan R
Hi Tony, On Tuesday 13 August 2013 01:40 PM, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [130724 12:06]: On Wednesday 24 July 2013 02:51 PM, Nishanth Menon wrote: On 07/24/2013 01:43 PM, Sricharan R wrote: On Wednesday 24 July 2013 10:17 PM, Nishanth Menon wrote: On

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-13 Thread Santosh Shilimkar
On Tuesday 13 August 2013 04:10 AM, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [130724 12:06]: On Wednesday 24 July 2013 02:51 PM, Nishanth Menon wrote: On 07/24/2013 01:43 PM, Sricharan R wrote: On Wednesday 24 July 2013 10:17 PM, Nishanth Menon wrote: On 07/24/2013

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-13 Thread Santosh Shilimkar
On Tuesday 13 August 2013 05:56 AM, Sricharan R wrote: Hi Tony, On Tuesday 13 August 2013 01:40 PM, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [130724 12:06]: On Wednesday 24 July 2013 02:51 PM, Nishanth Menon wrote: On 07/24/2013 01:43 PM, Sricharan R wrote: On

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-24 Thread Nishanth Menon
On 07/22/2013 11:23 AM, Santosh Shilimkar wrote: To summaries it again, what I understood from Sricharan's proposal, - Setup all the routing at cross-bar probe so that kernel continue to work like normal IRQ controller with cross-bar scope vanishes once the routing is done. Cross-bar does this

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-24 Thread Santosh Shilimkar
On Wednesday 24 July 2013 12:08 PM, Nishanth Menon wrote: On 07/22/2013 11:23 AM, Santosh Shilimkar wrote: To summaries it again, what I understood from Sricharan's proposal, - Setup all the routing at cross-bar probe so that kernel continue to work like normal IRQ controller with cross-bar

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-24 Thread Nishanth Menon
On 07/24/2013 11:38 AM, Santosh Shilimkar wrote: On Wednesday 24 July 2013 12:08 PM, Nishanth Menon wrote: That said, maybe a intermediate pinctrl approach might be more pragmatic and less theoretically flexible. an option might be to statically allocate default number of interrupts to a

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-24 Thread Sricharan R
On Wednesday 24 July 2013 10:17 PM, Nishanth Menon wrote: On 07/24/2013 11:38 AM, Santosh Shilimkar wrote: On Wednesday 24 July 2013 12:08 PM, Nishanth Menon wrote: That said, maybe a intermediate pinctrl approach might be more pragmatic and less theoretically flexible. an option might be

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-24 Thread Nishanth Menon
On 07/24/2013 01:43 PM, Sricharan R wrote: On Wednesday 24 July 2013 10:17 PM, Nishanth Menon wrote: On 07/24/2013 11:38 AM, Santosh Shilimkar wrote: On Wednesday 24 July 2013 12:08 PM, Nishanth Menon wrote: That said, maybe a intermediate pinctrl approach might be more pragmatic and less

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-24 Thread Santosh Shilimkar
On Wednesday 24 July 2013 02:51 PM, Nishanth Menon wrote: On 07/24/2013 01:43 PM, Sricharan R wrote: On Wednesday 24 July 2013 10:17 PM, Nishanth Menon wrote: On 07/24/2013 11:38 AM, Santosh Shilimkar wrote: On Wednesday 24 July 2013 12:08 PM, Nishanth Menon wrote: That said, maybe a

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-22 Thread Sricharan R
Hi Linus, On Sunday 21 July 2013 10:19 PM, Linus Walleij wrote: On Thu, Jul 18, 2013 at 8:56 PM, Nishanth Menon n...@ti.com wrote: I carry forward my TI internal objection to this approach: It is actually a very good sign of FOSS-maturity that you as a company take unresolved architectural

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-22 Thread Santosh Shilimkar
On Monday 22 July 2013 08:20 AM, Sricharan R wrote: Hi Linus, On Sunday 21 July 2013 10:19 PM, Linus Walleij wrote: On Thu, Jul 18, 2013 at 8:56 PM, Nishanth Menon n...@ti.com wrote: I carry forward my TI internal objection to this approach: It is actually a very good sign of FOSS-maturity

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-21 Thread Linus Walleij
On Thu, Jul 18, 2013 at 8:25 PM, Felipe Balbi ba...@ti.com wrote: The Peripheral irq/dma requests are connected to one crossbar's input and the output of the crossbar is connected to controller's input line. On POR, there are some mappings which are done by default. Those peripherals which do

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-21 Thread Linus Walleij
On Thu, Jul 18, 2013 at 8:56 PM, Nishanth Menon n...@ti.com wrote: I carry forward my TI internal objection to this approach: It is actually a very good sign of FOSS-maturity that you as a company take unresolved architectural issues to the community. Kudos! Lets see what happens as a result

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-19 Thread Tony Lindgren
On Thursday 18 July 2013 02:56 PM, Nishanth Menon wrote: Since the cross-bar is not limited t0 IRQ lines and applicable for DMA request lines as well, making it IRQ chip doesn't make sense. Its not typical pin control functionality either but at least that framework is much closer to

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-19 Thread Sricharan R
On Friday 19 July 2013 12:47 PM, Tony Lindgren wrote: On Thursday 18 July 2013 02:56 PM, Nishanth Menon wrote: Since the cross-bar is not limited t0 IRQ lines and applicable for DMA request lines as well, making it IRQ chip doesn't make sense. Its not typical pin control functionality either

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-19 Thread Sricharan R
Hi, On Friday 19 July 2013 05:43 AM, Nishanth Menon wrote: On Thu, Jul 18, 2013 at 6:39 PM, Santosh Shilimkar santosh.shilim...@ti.com wrote: On Thursday 18 July 2013 02:56 PM, Nishanth Menon wrote: On 07/18/2013 11:43 AM, Sricharan R wrote: Some socs have a large number of interrupts/dma

[PATCH 1/3] misc: Add crossbar driver

2013-07-18 Thread Sricharan R
Some socs have a large number of interrupts/dma requests to service the needs of its many peripherals and subsystems. All of the requests lines from the subsystems are not needed at the same time, so they have to be muxed to the controllers appropriately. In such places a interrupt/dma controllers

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-18 Thread Joe Perches
On Thu, 2013-07-18 at 22:13 +0530, Sricharan R wrote: Some socs have a large number of interrupts/dma requests to service the needs of its many peripherals and subsystems. All of the requests lines from the subsystems are not needed at the same time, so they have to be muxed to the controllers

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-18 Thread Felipe Balbi
Hi, On Thu, Jul 18, 2013 at 10:13:48PM +0530, Sricharan R wrote: Some socs have a large number of interrupts/dma requests to service the needs of its many peripherals and subsystems. All of the requests lines from the subsystems are not needed at the same time, so they have to be muxed to the

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-18 Thread Nishanth Menon
On 07/18/2013 11:43 AM, Sricharan R wrote: Some socs have a large number of interrupts/dma requests to service the needs of its many peripherals and subsystems. All of the requests lines from the subsystems are not needed at the same time, so they have to be muxed to the controllers

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-18 Thread Santosh Shilimkar
On Thursday 18 July 2013 02:56 PM, Nishanth Menon wrote: On 07/18/2013 11:43 AM, Sricharan R wrote: Some socs have a large number of interrupts/dma requests to service the needs of its many peripherals and subsystems. All of the requests lines from the subsystems are not needed at the same

Re: [PATCH 1/3] misc: Add crossbar driver

2013-07-18 Thread Nishanth Menon
On Thu, Jul 18, 2013 at 6:39 PM, Santosh Shilimkar santosh.shilim...@ti.com wrote: On Thursday 18 July 2013 02:56 PM, Nishanth Menon wrote: On 07/18/2013 11:43 AM, Sricharan R wrote: Some socs have a large number of interrupts/dma requests to service the needs of its many peripherals and