From: Tim Harvey Date: Tue, 19 May 2015 17:01:20 +0000 (-0700) Subject: e1000: remove unnecessary clearing of SWSM.SWSM_SMBI X-Git-Tag: v2015.10-rc2~61^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=48b168bbfa97e4ebb7c093696c27dfb32bf82ad8;p=u-boot e1000: remove unnecessary clearing of SWSM.SWSM_SMBI remove unnecessary clearing of SWSM.SWSM_SMBI when obtaining the SW semaphore. This was introduced in 951860634fdb557bbb58e0f99215391bc0c29779 while adding i210 support and should be now resolved by releasing the semaphore when no longer needed. Cc: Marcel Ziswiler Cc: Marek Vasut Cc: Aneesh Bansal Cc: Naveen Burmi Cc: Po Liu Cc: Bin Meng Cc: Alison Wang Cc: Reinhard Arlt Cc: Shengzhou Liu Cc: York Sun Signed-off-by: Tim Harvey Tested-by: Bin Meng Tested-by: Marcel Ziswiler --- diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index 739d24b280..ecd1a52e47 100644 --- a/drivers/net/e1000.c +++ b/drivers/net/e1000.c @@ -996,10 +996,6 @@ e1000_get_software_semaphore(struct e1000_hw *hw) DEBUGFUNC(); - swsm = E1000_READ_REG(hw, SWSM); - swsm &= ~E1000_SWSM_SMBI; - E1000_WRITE_REG(hw, SWSM, swsm); - if (hw->mac_type != e1000_80003es2lan) return E1000_SUCCESS;