OSDN Git Service

iwlwifi: mvm: avoid dumping assert log when device is stopped
authorSara Sharon <sara.sharon@intel.com>
Mon, 20 Nov 2017 16:02:05 +0000 (18:02 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 5 Dec 2017 19:01:40 +0000 (21:01 +0200)
commit6362ab721ef5c4ecfa01f53ad4137d3d984f0c6c
treec5ea068797f97d2490d9b532ab383d0d6632bead
parentd4e4aa7c8e342dc6206771ade55f40f8883fd7e6
iwlwifi: mvm: avoid dumping assert log when device is stopped

We might erroneously get to error dumping code when the
device is already stopped.

In that case the driver will detect a defective value and will try to
reset the HW, assuming it is only a bus issue.  The driver than
proceeds with the dumping.

The result has two side effects:

1. The device won't be stopped again, since the transport status is
already stopped, so the device remains powered on while it actually
should be stopped.

2. The dump in that case is completely garbaged and useless.

Detect and avoid this.  It will also make debugging such issues
easier.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/utils.c