]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: fix polling in various places
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 23 Oct 2014 05:53:21 +0000 (08:53 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 23 Oct 2014 18:21:49 +0000 (21:21 +0300)
commit03e25742f371641b43a6f675ddf66b03f80fd102
tree1da1512e519e3fc0c20c55050dd93454586bf2f7
parentc4d2819efb2534cc996c8047fb12a496eb133033
iwlwifi: pcie: fix polling in various places

iwl_poll_bit may return a strictly positive value when the
poll doesn't match on the first try.
This was caught when WoWLAN started failing upon resume
even if the poll_bit actually succeeded.

Also change a wrong print. If we reach the end of
iwl_pcie_prepare_card_hw, it means that we couldn't
get the devices.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c