]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iwlwifi: pcie: fix prepare card flow
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 20 Jul 2015 09:14:39 +0000 (12:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:07:39 +0000 (09:07 -0700)
commitc82f14951c4d67eb6f6bcb28e5cf5a85ae242e64
tree44a249dba761a7045a2713c0acbfb5e230cc9ce2
parent58b9cca673e06a9f98a902d95ff4cda951a7f234
iwlwifi: pcie: fix prepare card flow

commit c9fdec9f3970eeaa1b176422f46167f5f5158804 upstream.

When the card is not owned by the PCIe bus, we need to
acquire ownership first. This flow is implemented in
iwl_pcie_prepare_card_hw. Because of a hardware bug, we
need to disable link power management before we can
request ownership otherwise the other user of the device
won't get notified that we are requesting the device which
will prevent us from acquire ownership.

Same holds for the down flow where we need to make sure
that any other potential user is notified that the driver
is going down.

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