iwlwifi: pcie: introduce delay when waking up the device
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 27 Oct 2014 07:14:32 +0000 (09:14 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 11 Nov 2014 15:15:09 +0000 (17:15 +0200)
commit01e58a281e6f0184e54af19a74de9a4012eeab25
treebcaf81be55e67d2e2e39dbf48e5faabcdc168ac6
parentea9af24d03a905143544ba383e23c731ba3bc5bd
iwlwifi: pcie: introduce delay when waking up the device

In some rare cases, the firmware can put the device to
sleep after the driver requested the access. This is
because the access request can take a short time to be
propagated to the firmware.

If that happens, the driver may think that it has access
since the firmware hasn't put the device to sleep yet, but
right after the driver's check, the firmware might put the
device to sleep.

Warn when this happens by allowing the firmware to finish
the "put the device sleep" flow so that the driver will
not get access to the device. This will make the issue
visible.

This still doesn't fix the race, but at least it makes
it more visible.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c
drivers/net/wireless/iwlwifi/pcie/tx.c
This page took 0.026555 seconds and 5 git commands to generate.