]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: don't map complete commands bidirectionally
authorJohannes Berg <johannes.berg@intel.com>
Tue, 26 Feb 2013 10:28:19 +0000 (11:28 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 28 Feb 2013 10:48:51 +0000 (11:48 +0100)
commitfa86cbccf125ffe812aee858f31135fd8171d7b4
treedbd53937c5979fab1d52523cfd2fbe52687b8193
parent662b1eeb35b710a06583b201e86ab046810b92f7
iwlwifi: don't map complete commands bidirectionally

The reason we mapped them bidirectionally was that not doing
so had caused IOMMU exceptions, due to the fact that the HW
writes back into the command. Now that the first part of the
command including the write-back part is always in the first
buffer, we don't need to map the remaining buffer(s) bidi
and can get rid of the special-casing for commands.

This is a requisite patch for another one to fix DMA mapping.

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