regmap: irq: initialize all irqs to wake disabled
authorStephen Warren <swarren@nvidia.com>
Wed, 1 Aug 2012 19:57:24 +0000 (13:57 -0600)
committerSimone Willett <swillett@nvidia.com>
Wed, 7 Nov 2012 02:29:00 +0000 (18:29 -0800)
commitbdb711f75a366b909867f2cef596fd0fb0f6d7e9
tree2b18676292f02caf117a3c65dd813475346757ff
parent9182f46fbc0b89ead5968c16cc988b39a7c3ede2
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>
(cherry picked from commit 40052ca0c243d101cfadd65936f60ef81df10b02)

Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Change-Id: I2ae49a53467ea10eb01b37604a093c99720d4d37
Reviewed-on: http://git-master/r/161553
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Stephen Warren <swarren@nvidia.com>
drivers/base/regmap/regmap-irq.c