Thread (32 messages) flat view 32 messages, 7 authors, 2013-08-25

[PATCH v8 1/7] irqchip: vic: Parse interrupt and resume masks from device tree

From: Stephen Warren <hidden>
Date: 2013-08-23 23:19:56
Also in: linux-gpio, linux-samsung-soc

On 08/23/2013 05:04 PM, Tomasz Figa wrote:
On Friday 23 of August 2013 16:11:18 Stephen Warren wrote:
quoted
On 08/22/2013 05:22 PM, Tomasz Figa wrote:
quoted
This patch extends vic_of_init to parse valid interrupt sources
and resume sources masks from device tree.

If mask values are not specified in device tree, all sources
are assumed to be valid, as before this patch.
Can you explain further why the VIC needs this information up-front?
Presumably it can accumulate it as devices request interrupts.
It does not need this information just for operation, but this makes the 
hardware description more detailed and allows better sanity checking of 
interrupts being requested.
Ah, OK. It may be worth mentioning the intent of the properties. I
suppose this is purely a representation of HW then, so it's reasonable
to include it in the binding. I'm not sure /quite/ how useful it is;
after all the error-checking that it enables will never trigger assuming
the rest of the DT is written to "request" the correct interrupts.
However, I guess there is little harm in allowing these properties.

Bikeshedding a bit, but perhaps rename wakeup-mask to valid-wakeup-mask
(and perhaps valid-mask to valid-source-mask for consistency, although I
see you already renamed that to be consistent with other bindings...)?
To me, wakeup-mask sounds like a configuration of which sources should
be configured to wakeup the system; something to do with
configuration/policy rather than HW capabilities.

Either way, the binding,
Acked-by: Stephen Warren <redacted>

(I assume those 2 new properties always have 1 cell since the controller
can only support up to 32 IRQ sources? If not, then perhaps add wording
to describe how long the properties should be).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help