iwlwifi: pcie: try to get ownership several times
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 8 May 2014 09:15:22 +0000 (12:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:18:26 +0000 (11:18 -0700)
commitbc3e3ff65a157cc6ef43e2279cfac6cf7cdcbbbe
treeca607636ec7af9f0651245c1db21a83143dbb3de
parent94d21115127a2c593e04e5199caaf9bf22aa5eb3
iwlwifi: pcie: try to get ownership several times

commit 501fd9895c1d7d8161ed56698ae2fccb10ef14f5 upstream.

Some races with the hardware can happen when we take
ownership of the device. Don't give up after the first try.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/pcie/trans.c