Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH v1 1/1] igc: Change Device Reset to Port Reset
@ 2021-09-09  6:46 Sasha Neftin
  2021-09-14 11:56 ` Kraus, NechamaX
  0 siblings, 1 reply; 2+ messages in thread
From: Sasha Neftin @ 2021-09-09  6:46 UTC (permalink / raw)
  To: intel-wired-lan

_reset_hw_base method switched from port reset (CTRL[26]) to device reset
(CTRL[29]) since the FW was receiving an interrupt on CTRL[29].
FW code was later modified to also receive an interrupt on CTRL[26].
Since certain HW values are not reset to default by CTRL[29], we go back
to CTRL[26] for the HW reset, as it meets all current requirements.

This reverts commit bb4265ec24c13aacf3a613e64c701294b122beb7

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
---
 drivers/net/ethernet/intel/igc/igc_base.c    | 2 +-
 drivers/net/ethernet/intel/igc/igc_defines.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/intel/igc/igc_base.c b/drivers/net/ethernet/intel/igc/igc_base.c
index 2612a58fc52a..f068b66b8025 100644
--- a/drivers/net/ethernet/intel/igc/igc_base.c
+++ b/drivers/net/ethernet/intel/igc/igc_base.c
@@ -40,7 +40,7 @@ static s32 igc_reset_hw_base(struct igc_hw *hw)
 	ctrl = rd32(IGC_CTRL);
 
 	hw_dbg("Issuing a global reset to MAC\n");
-	wr32(IGC_CTRL, ctrl | IGC_CTRL_DEV_RST);
+	wr32(IGC_CTRL, ctrl | IGC_CTRL_RST);
 
 	ret_val = igc_get_auto_rd_done(hw);
 	if (ret_val) {
diff --git a/drivers/net/ethernet/intel/igc/igc_defines.h b/drivers/net/ethernet/intel/igc/igc_defines.h
index 8a9c54d38a16..fad27a4fea78 100644
--- a/drivers/net/ethernet/intel/igc/igc_defines.h
+++ b/drivers/net/ethernet/intel/igc/igc_defines.h
@@ -130,7 +130,7 @@
 #define IGC_ERR_SWFW_SYNC		13
 
 /* Device Control */
-#define IGC_CTRL_DEV_RST	0x20000000  /* Device reset */
+#define IGC_CTRL_RST		0x04000000  /* Global reset */
 
 #define IGC_CTRL_PHY_RST	0x80000000  /* PHY Reset */
 #define IGC_CTRL_SLU		0x00000040  /* Set link up (Force Link) */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Intel-wired-lan] [PATCH v1 1/1] igc: Change Device Reset to Port Reset
  2021-09-09  6:46 [Intel-wired-lan] [PATCH v1 1/1] igc: Change Device Reset to Port Reset Sasha Neftin
@ 2021-09-14 11:56 ` Kraus, NechamaX
  0 siblings, 0 replies; 2+ messages in thread
From: Kraus, NechamaX @ 2021-09-14 11:56 UTC (permalink / raw)
  To: intel-wired-lan

On 9/9/2021 09:46, Sasha Neftin wrote:
> _reset_hw_base method switched from port reset (CTRL[26]) to device reset
> (CTRL[29]) since the FW was receiving an interrupt on CTRL[29].
> FW code was later modified to also receive an interrupt on CTRL[26].
> Since certain HW values are not reset to default by CTRL[29], we go back
> to CTRL[26] for the HW reset, as it meets all current requirements.
> 
> This reverts commit bb4265ec24c13aacf3a613e64c701294b122beb7
> 
> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
> ---
>   drivers/net/ethernet/intel/igc/igc_base.c    | 2 +-
>   drivers/net/ethernet/intel/igc/igc_defines.h | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
> 
Tested-by: Nechama Kraus <nechamax.kraus@linux.intel.com>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-14 11:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-09  6:46 [Intel-wired-lan] [PATCH v1 1/1] igc: Change Device Reset to Port Reset Sasha Neftin
2021-09-14 11:56 ` Kraus, NechamaX

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox