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)
commit7f2ac8fb31896c9fb70dbd2a2e6642b79996fc13
tree1da1512e519e3fc0c20c55050dd93454586bf2f7
parent1ffde699aae127e7abdb98dbdedc2cc6a973a1a1
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