[PATCH for-4.15] ASoC: rt5514-spi: only enable wakeup when fully initialized

2017-12-15 Thread Brian Norris
If an rt5514-spi device is probed but the platform hasn't linked it in, we might never fully request the SPI IRQ, nor configure the rt5514 DSP, but we still might try to enable the SPI IRQ (enable_irq_wake()). This is bad, and among other things, can cause the interrupt to trigger every time we

[PATCH for-4.15] ASoC: rt5514-spi: only enable wakeup when fully initialized

2017-12-15 Thread Brian Norris
If an rt5514-spi device is probed but the platform hasn't linked it in, we might never fully request the SPI IRQ, nor configure the rt5514 DSP, but we still might try to enable the SPI IRQ (enable_irq_wake()). This is bad, and among other things, can cause the interrupt to trigger every time we