devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Grygorii Strashko <grygorii.strashko@ti.com>
To: Santosh Shilimkar <santosh.shilimkar@ti.com>,
	Jason Cooper <jason@lakedaemon.net>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Rob Herring <robh+dt@kernel.org>,
	Kumar Gala <galak@codeaurora.org>,
	ivan.khoronzhuk@ti.com, m-karicheri2@ti.com,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] irqchip: add keystone irq controller ip driver
Date: Mon, 21 Jul 2014 17:20:49 +0300	[thread overview]
Message-ID: <53CD21C1.9010402@ti.com> (raw)
In-Reply-To: <53C92643.9050406@ti.com>

Hi Jason,

On 07/18/2014 04:50 PM, Santosh Shilimkar wrote:
> On Friday 18 July 2014 08:59 AM, Jason Cooper wrote:
>> Grygorii,
>>
>> On Mon, Jul 14, 2014 at 06:27:57PM +0300, Grygorii Strashko wrote:
>>> On Keystone SOCs, DSP cores can send interrupts to ARM
>>> host using the IRQ controller IP. It provides 28 IRQ
>>> signals to ARM. The IRQ handler running on HOST OS can
>>> identify DSP signal source by analyzing SRCCx bits in
>>> IPCARx registers. This is one of the component used by
>>> the IPC mechanism used on Keystone SOCs.
>>>
>>> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
>>> ---
>>>   .../interrupt-controller/ti,keystone-irq.txt       |   36 +++
>>>   drivers/irqchip/Kconfig                            |    7 +
>>>   drivers/irqchip/Makefile                           |    1 +
>>>   drivers/irqchip/irq-keystone.c                     |  235 ++++++++++++++++++++
>>>   4 files changed, 279 insertions(+)
>>>   create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ti,keystone-irq.txt
>>>   create mode 100644 drivers/irqchip/irq-keystone.c
>>>
> 
> 
> [..]
> 
>>> +
>>> +static const struct of_device_id keystone_irq_dt_ids[] = {
>>> +	{ .compatible = "ti,keystone-irq", },
>>> +	{},
>>> +};
>>> +MODULE_DEVICE_TABLE(of, keystone_irq_dt_ids);
>>> +
>>> +static struct platform_driver keystone_irq_device_driver = {
>>> +	.probe		= keystone_irq_probe,
>>> +	.remove		= keystone_irq_remove,
>>> +	.driver		= {
>>> +		.name	= "keystone_irq",
>>> +		.owner	= THIS_MODULE,
>>> +		.of_match_table	= of_match_ptr(keystone_irq_dt_ids),
>>> +	}
>>> +};
>>> +
>>> +module_platform_driver(keystone_irq_device_driver);
>>
>> My understanding of DSP use-cases is a little sparse, are there
>> legitimate scenarios where you might remove this driver during runtime?
>> Perhaps IRQCHIP_DECLARE() might be better?

IRQCHIP_DECLARE() isn't used here, because of two points:
- all consumers of this driver are initialized at module/driver_initcall time
  so, we don't need it to be initialized so early
- Keystone 2 supports DT-only boot and IRQ resolution APIs support probe
  deferring mechanism now, so we can solve properly any initialization dependencies
  if needed.

>>
> There is no scenario where driver needs to hotpluged out. Usecase is
> simple. Its really any other IRQCHIP. The difference is really the
> source of interrupts. Instead of peripherals interrupting the host
> OS9linux), here the DSP cores can send interrupts to Host OS.
> 
> Hope this clarifies.

Thanks for your review - I'll update and re-send.

Regards,
- grygorii

      reply	other threads:[~2014-07-21 14:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14 15:27 [PATCH] irqchip: add keystone irq controller ip driver Grygorii Strashko
     [not found] ` <1405351677-12108-1-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
2014-07-18 12:59   ` Jason Cooper
2014-07-18 13:50     ` Santosh Shilimkar
2014-07-21 14:20       ` Grygorii Strashko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53CD21C1.9010402@ti.com \
    --to=grygorii.strashko@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=ivan.khoronzhuk@ti.com \
    --cc=jason@lakedaemon.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m-karicheri2@ti.com \
    --cc=robh+dt@kernel.org \
    --cc=santosh.shilimkar@ti.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).