Thread (10 messages) 10 messages, 3 authors, 2014-09-30

Re: [PATCH v3 3/6] pinctrl: exynos: Add irq_chip instance for Exynos7 wakeup interrupts

From: Abhilash Kesavan <hidden>
Date: 2014-09-30 14:26:02
Also in: linux-arm-kernel, linux-samsung-soc

Hi Tomasz,

On Tue, Sep 30, 2014 at 4:16 AM, Tomasz Figa [off-list ref] wrote:
Hi Abhilash,

Just two minor issues inline. I leave them up to Linus to decide.

Linus, if you don't mind them, feel free to apply this patch with my Ack.

On 29.09.2014 07:15, Abhilash Kesavan wrote:
quoted
Exynos7 uses different offsets for wakeup interrupt configuration registers.
So a new irq_chip instance for Exynos7 wakeup interrupts is added. The irq_chip
selection is now based on the wakeup interrupt controller compatible string.
[snip]
quoted
@@ -469,12 +488,18 @@ static int exynos_eint_wkup_init(struct samsung_pinctrl_drv_data *d)
      struct samsung_pin_bank *bank;
      struct exynos_weint_data *weint_data;
      struct exynos_muxed_weint_data *muxed_data;
+     struct exynos_irq_chip *exynos_wkup_irq_chip;
Quite an awful name for a local variable. "irq_chip" alone would be enough.
quoted
      unsigned int muxed_banks = 0;
      unsigned int i;
      int idx, irq;

      for_each_child_of_node(dev->of_node, np) {
-             if (of_match_node(exynos_wkup_irq_ids, np)) {
+             const struct of_device_id *match;
+
+             match = of_match_node(exynos_wkup_irq_ids, np);
+             if (match) {
+                     exynos_wkup_irq_chip = kmemdup(match->data,
+                             sizeof(struct exynos_irq_chip), GFP_KERNEL);
sizeof(*exynos_wkup_irq_chip) (or irq_chip considering my comment above)
could be used instead.
Thanks for the acks. Will post a new version with these nits fixed.
Best regards,
Tomasz

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help