]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commit
regmap: irq: initialize all irqs to wake disabled
authorStephen Warren <swarren@nvidia.com>
Wed, 1 Aug 2012 19:57:24 +0000 (13:57 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 4 Aug 2012 11:13:54 +0000 (12:13 +0100)
commit40052ca0c243d101cfadd65936f60ef81df10b02
tree47857240772f3cb43d0d0a19998887485af017e7
parent685879f4b2036e58c1a0cdaaee2b155d3c965461
regmap: irq: initialize all irqs to wake disabled

The kerneldoc for irq_set_irq_wake() says:

    Enable/disable power management wakeup mode, which is
    disabled by default.

regmap_irq_set_wake() clears bits to enable wake for an interrupt,
and sets bits to disable wake. Hence, we should set all bits in
wake_buf initially, to mirror the expected disabled state.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap-irq.c