]> 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)
commit95851e3b00b78f351ae290e11671e889d4f6ac08
treedbd53937c5979fab1d52523cfd2fbe52687b8193
parent412363a6edd35f80f5842cd06a8d248f594a896e
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