]> git.baikalelectronics.ru Git - kernel.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)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 28 Jul 2015 08:21:31 +0000 (11:21 +0300)
commit4c9570962fda4f7da5d182ce33d3dd8a785ee621
treeec0ea0d796e43e9b76e132869a3ef3484c208dfa
parent24c9e5bcc7329f48a655fad3f3cc9c711e6a64f2
iwlwifi: pcie: fix prepare card flow

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.

CC: <stable@vger.kernel.org> [4.1]
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c