Files
linux/drivers/net/ethernet/intel/igc
Sasha Neftin d4706de93c igc: igc_write_phy_reg_gpy: drop premature return
commit c4208653a3 upstream.

Similar to "igc_read_phy_reg_gpy: drop premature return" patch.
igc_write_phy_reg_gpy checks the return value from igc_write_phy_reg_mdic
and if it's not 0, returns immediately. By doing this, it leaves the HW
semaphore in the acquired state.

Drop this premature return statement, the function returns after
releasing the semaphore immediately anyway.

Fixes: 5586838fe9 ("igc: Add code for PHY support")
Suggested-by: Dima Ruinskiy <dima.ruinskiy@intel.com>
Reported-by: Corinna Vinschen <vinschen@redhat.com>
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-08 19:12:48 +01:00
..
2021-07-20 16:11:36 -07:00
2021-05-20 10:21:42 -07:00
2021-05-26 09:11:41 -07:00
2021-10-20 09:07:21 -07:00
2021-12-22 09:32:43 +01:00
2020-06-29 18:21:09 -07:00
2020-05-19 15:01:48 -07:00
2018-10-17 13:52:00 -07:00
2018-10-17 13:52:00 -07:00
2021-08-27 09:31:09 -07:00
2021-08-27 09:31:09 -07:00
2021-08-27 09:31:08 -07:00
2021-05-20 10:21:42 -07:00
2021-05-20 10:21:42 -07:00
2021-08-27 09:31:09 -07:00
2021-03-29 09:09:53 -07:00