* [PATCH 2/3 v2] pinctrl-adi2: change irq_base from usigned int to int
@ 2014-01-28 3:02 Sonic Zhang
2014-01-31 12:42 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Sonic Zhang @ 2014-01-28 3:02 UTC (permalink / raw)
To: Linus Walleij, Steven Miao; +Cc: LKML, adi-buildroot-devel, Sonic Zhang
From: Sonic Zhang <sonic.zhang@analog.com>
Negative irq_base means there is no fixed Linux irq mappings are created from the platform data.
The driver calls irq_create_mapping to allocate a virtual Linux irq.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
---
v2-changes:
- reword the patch description
drivers/pinctrl/pinctrl-adi2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/pinctrl-adi2.c b/drivers/pinctrl/pinctrl-adi2.c
index e8120fa..9fb53c9 100644
--- a/drivers/pinctrl/pinctrl-adi2.c
+++ b/drivers/pinctrl/pinctrl-adi2.c
@@ -173,7 +173,7 @@ struct adi_pinctrl {
struct gpio_port {
struct list_head node;
void __iomem *base;
- unsigned int irq_base;
+ int irq_base;
unsigned int width;
struct gpio_port_t *regs;
struct gpio_port_saved saved_data;
--
1.8.2.3
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH 2/3 v2] pinctrl-adi2: change irq_base from usigned int to int
2014-01-28 3:02 [PATCH 2/3 v2] pinctrl-adi2: change irq_base from usigned int to int Sonic Zhang
@ 2014-01-31 12:42 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2014-01-31 12:42 UTC (permalink / raw)
To: Sonic Zhang; +Cc: Steven Miao, LKML, adi-buildroot-devel, Sonic Zhang
On Tue, Jan 28, 2014 at 4:02 AM, Sonic Zhang <sonic.adi@gmail.com> wrote:
> From: Sonic Zhang <sonic.zhang@analog.com>
>
> Negative irq_base means there is no fixed Linux irq mappings are created from the platform data.
> The driver calls irq_create_mapping to allocate a virtual Linux irq.
Those IRQs are not any more "virtual" than any other Linux IRQ
so I don't like this way of putting things. They are dynamically
allocated though.
The whole "virq" thing is just one big confusion, somehow people
are under the impression that some IRQ numbers in the kernel
are more "real" than others just because they happen to map
1-to-1 to a certain HW IRQ on the primary IRQ controller, but this
is just pure luck. This is one reason we're trying to get rid of
IRQ numbers altogether (if that will ever go anywhere).
> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
> ---
> v2-changes:
> - reword the patch description
I applied v1 anyway.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-31 12:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-28 3:02 [PATCH 2/3 v2] pinctrl-adi2: change irq_base from usigned int to int Sonic Zhang
2014-01-31 12:42 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®