CHROMIUM: ALSA: hda - skip PM ops if async probe is not finished

There are a lot of crash reports on Peppy indicating that runtime
PM is being triggered before the async probe finishes.

Don't execute PM ops if the async probe has not completed yet.
The probe is finished when chip->running is true.

BUG=chrome-os-partner:32694,chromium:410667
TEST=With entire patch series:
     1. Insert a temporary 2 minute superficial sleep delay in
        the request_firmware_work_func
     2. Boot on Peppy
     3. Unplug power cable and wait 15 seconds.  This will trigger
        a runtime suspend
     4. Run powerd_dbus_suspend
     5. No kernel oops or panic
TEST=With entire patch series:
     1. On Peppy, remove /lib/firmware/peppy_alsa.fw
     2. Reboot system
     3. Unplug power cable and wait 15 seconds.  This will trigger
        a runtime suspend
     4. Run powerd_dbus_suspend
     5. No kernel oops or panic

Change-Id: I4be75ba0d21176ed20c6efd236eff054f5bbdb41
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/229557
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Matthew E Hiltner <matthew.e.hiltner@intel.com>
1 file changed