mbox series

[v5,0/2] irqchip/mchp-eic: add driver for Microchip EIC

Message ID 20210927063657.2157676-1-claudiu.beznea@microchip.com (mailing list archive)
Headers show
Series irqchip/mchp-eic: add driver for Microchip EIC | expand

Message

Claudiu Beznea Sept. 27, 2021, 6:36 a.m. UTC
Hi,

This series adds support for Microchip External Interrupt Controller
present on SAMA7G5. The controller supports for 2 external interrupt
lines and is connected to GIC as follows:

pinX   +------+ EXT_IRQ0 +------+ int 153 (for pinX) +------+
------>|      |--------->|      |------------------->|      |
pinY   | PIO  | EXT_IRQ1 | EIC  | int 154 (for pinY) | GIC  |
------>|      |--------->|      |------------------->|      |
       +------+          +------+                    +------+

where PIO is the pin controller.

Thank you,
Claudiu Beznea

Changes in v5:
- solved the issue with dt bindings (accidentally picked file from
  v2 in previous version)

Changes in v4:
- use irq_domain_translate_twocell() instead of mchp_eic_domain_translate()
  from v2
- use IRQCHIP_PLATFORM_DRIVER_BEGIN(), IRQCHIP_MATCH(),
  IRQCHIP_PLATFORM_DRIVER_END() instead of builtin_platform_driver()
- register suspend/resume functins via syscore_ops; along with this
  driver private data structure (of type struct mchp_eic has been declared
  as static: struct mchp_eic *eic;)
- collected tags

Changes in v3:
- fix compilation warning on bindings

Changes in v2:
- s/mchp/microchip in bindings
- get rid of glitch filter settings
- use s/eic@/interrupt-controller@ in bindings
- removed '' around interrupts in bindings as proposed by Rob
- removed glitch filter settings
- switched to hierarchical irqchip driver
- addressed review comments
- use builtin_platform_driver instead of module_platform_driver

Claudiu Beznea (2):
  dt-bindings: microchip,eic: add bindings
  irqchip/mchp-eic: add support

 .../interrupt-controller/microchip,eic.yaml   |  73 +++++
 MAINTAINERS                                   |   6 +
 drivers/irqchip/Kconfig                       |   8 +
 drivers/irqchip/Makefile                      |   1 +
 drivers/irqchip/irq-mchp-eic.c                | 280 ++++++++++++++++++
 5 files changed, 368 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/microchip,eic.yaml
 create mode 100644 drivers/irqchip/irq-mchp-eic.c

Comments

Marc Zyngier Sept. 27, 2021, 7:45 a.m. UTC | #1
Claudiu,

On 2021-09-27 07:36, Claudiu Beznea wrote:
> Hi,
> 
> This series adds support for Microchip External Interrupt Controller
> present on SAMA7G5. The controller supports for 2 external interrupt
> lines and is connected to GIC as follows:
> 
> pinX   +------+ EXT_IRQ0 +------+ int 153 (for pinX) +------+
> ------>|      |--------->|      |------------------->|      |
> pinY   | PIO  | EXT_IRQ1 | EIC  | int 154 (for pinY) | GIC  |
> ------>|      |--------->|      |------------------->|      |
>        +------+          +------+                    +------+
> 
> where PIO is the pin controller.
> 
> Thank you,
> Claudiu Beznea

Can you please reduce the spamming rate? 3 versions back to
back is just counter productive and actively reduces the incentive
to review the series. Please see [1] which says:

<quote>
Wait for a minimum of one week before resubmitting or pinging reviewers
</quote>

Thanks,

         M.

[1] Documentation/process/submitting-patches.rst
Claudiu Beznea Sept. 27, 2021, 8:05 a.m. UTC | #2
On 27.09.2021 10:45, Marc Zyngier wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the
> content is safe
> 
> Claudiu,
> 
> On 2021-09-27 07:36, Claudiu Beznea wrote:
>> Hi,
>>
>> This series adds support for Microchip External Interrupt Controller
>> present on SAMA7G5. The controller supports for 2 external interrupt
>> lines and is connected to GIC as follows:
>>
>> pinX   +------+ EXT_IRQ0 +------+ int 153 (for pinX) +------+
>> ------>|      |--------->|      |------------------->|      |
>> pinY   | PIO  | EXT_IRQ1 | EIC  | int 154 (for pinY) | GIC  |
>> ------>|      |--------->|      |------------------->|      |
>>        +------+          +------+                    +------+
>>
>> where PIO is the pin controller.
>>
>> Thank you,
>> Claudiu Beznea
> 
> Can you please reduce the spamming rate? 3 versions back to
> back is just counter productive and actively reduces the incentive
> to review the series. Please see [1] which says:
> 
> <quote>
> Wait for a minimum of one week before resubmitting or pinging reviewers
> </quote>

Yes, sorry about that. I'll keep it in mind.

Thank you,
Claudiu Beznea

> 
> Thanks,
> 
>         M.
> 
> [1] Documentation/process/submitting-patches.rst
> -- 
> Jazz is not dead. It just smells funny...