iwlwifi: use rmb/wmb to protect indirect mmio operation
authorZhu, Yi <yi.zhu@intel.com>
Fri, 5 Dec 2008 15:58:41 +0000 (07:58 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 12 Dec 2008 18:48:22 +0000 (13:48 -0500)
commita8ec42c1431e8a43f910fb27af4882416cf5d6b1
tree581d9ccaac55655f138f7aaa23701220377f6b0f
parent73d7b5acc461bdc99e0135779d15e1874c6e00a6
iwlwifi: use rmb/wmb to protect indirect mmio operation

This patch protects iwlwifi indirect mmio operations with rmb() and
wmb(). It makes sure CPU reordering won't affect our indirect mmio
access.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-3945-io.h
drivers/net/wireless/iwlwifi/iwl-io.h