mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-16 19:47:55 +00:00
ixgbe: Release semaphore bits in the right order
The global semaphore bits should be released in the reverse of the order that they were taken, so correct that. Signed-off-by: Mark Rustad <mark.d.rustad@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
ae14a1d8e1
commit
cb2effe540
1 changed files with 4 additions and 4 deletions
|
@ -696,14 +696,14 @@ static void ixgbe_release_swfw_sync_semaphore(struct ixgbe_hw *hw)
|
||||||
|
|
||||||
/* Release both semaphores by writing 0 to the bits REGSMP and SMBI */
|
/* Release both semaphores by writing 0 to the bits REGSMP and SMBI */
|
||||||
|
|
||||||
swsm = IXGBE_READ_REG(hw, IXGBE_SWSM);
|
|
||||||
swsm &= ~IXGBE_SWSM_SMBI;
|
|
||||||
IXGBE_WRITE_REG(hw, IXGBE_SWSM, swsm);
|
|
||||||
|
|
||||||
swsm = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC);
|
swsm = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC);
|
||||||
swsm &= ~IXGBE_SWFW_REGSMP;
|
swsm &= ~IXGBE_SWFW_REGSMP;
|
||||||
IXGBE_WRITE_REG(hw, IXGBE_SWFW_SYNC, swsm);
|
IXGBE_WRITE_REG(hw, IXGBE_SWFW_SYNC, swsm);
|
||||||
|
|
||||||
|
swsm = IXGBE_READ_REG(hw, IXGBE_SWSM);
|
||||||
|
swsm &= ~IXGBE_SWSM_SMBI;
|
||||||
|
IXGBE_WRITE_REG(hw, IXGBE_SWSM, swsm);
|
||||||
|
|
||||||
IXGBE_WRITE_FLUSH(hw);
|
IXGBE_WRITE_FLUSH(hw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue