Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1201731

Re: Armadaxp GPIO interrupts

From Andrew Lunn <andrew@lunn.ch>
Newsgroups linux.kernel
Subject Re: Armadaxp GPIO interrupts
Date 2015-08-06 15:40 +0200
Message-ID <pUtyP-1Vn-41@gated-at.bofh.it> (permalink)
References (1 earlier) <pTMDv-6sx-17@gated-at.bofh.it> <pTZ7H-8cP-3@gated-at.bofh.it> <pU9JM-6FB-21@gated-at.bofh.it> <pU9JM-6FB-19@gated-at.bofh.it> <pUmnE-8id-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> mvebu_gpio_irq_handler is only called if I register a another handler
> at irq=82/83/84/85/87/88/89/90/92. I am registering this handler using
> minimal kernel module.

This is totally wrong. The gpio driver needs these interrupts, and
will register a chained interrupt handle for these. Don't mess around
with them. Here is the code in the driver:

        /* Setup the interrupt handlers. Each chip can have up to 4
         * interrupt handlers, with each handler dealing with 8 GPIO
         * pins. */
        for (i = 0; i < 4; i++) {
                int irq = platform_get_irq(pdev, i);

                if (irq < 0)
                        continue;
                irq_set_handler_data(irq, mvchip);
                irq_set_chained_handler(irq, mvebu_gpio_irq_handler);
        }

	Andrew
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Armadaxp GPIO interrupts Andrew Lunn <andrew@lunn.ch> - 2015-08-04 17:50 +0200
  Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-05 07:10 +0200
    Re: Armadaxp GPIO interrupts Andrew Lunn <andrew@lunn.ch> - 2015-08-05 18:30 +0200
      Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-06 08:00 +0200
        Re: Armadaxp GPIO interrupts Andrew Lunn <andrew@lunn.ch> - 2015-08-06 15:40 +0200
          Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-06 19:00 +0200
            Re: Armadaxp GPIO interrupts Andrew Lunn <andrew@lunn.ch> - 2015-08-06 19:30 +0200
              Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-06 20:20 +0200
                Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-07 23:00 +0200
                Re: Armadaxp GPIO interrupts Andrew Lunn <andrew@lunn.ch> - 2015-08-08 00:20 +0200
  Re: Armadaxp GPIO interrupts raghu MG <raghumag@gmail.com> - 2015-08-05 17:10 +0200

csiph-web