* [Intel-wired-lan] [PATCH iwl-net v1 1/1] igc: Remove temporary workaround
@ 2024-01-24 5:57 Sasha Neftin
2024-01-26 12:20 ` Paul Menzel
2024-02-05 11:43 ` naamax.meir
0 siblings, 2 replies; 3+ messages in thread
From: Sasha Neftin @ 2024-01-24 5:57 UTC (permalink / raw)
To: intel-wired-lan; +Cc: Sasha Neftin
PHY_CONTROL register works as defined in the IEEE 802.3 specification.
(IEEE 802.3-2008 22.2.4.1). Tide up the temporary workaround.
Fixes: 5586838fe9ce ("igc: Add code for PHY support")
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
---
drivers/net/ethernet/intel/igc/igc_phy.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/intel/igc/igc_phy.c b/drivers/net/ethernet/intel/igc/igc_phy.c
index 7cd8716d2ffa..861f37076861 100644
--- a/drivers/net/ethernet/intel/igc/igc_phy.c
+++ b/drivers/net/ethernet/intel/igc/igc_phy.c
@@ -130,11 +130,7 @@ void igc_power_down_phy_copper(struct igc_hw *hw)
/* The PHY will retain its settings across a power down/up cycle */
hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg);
mii_reg |= MII_CR_POWER_DOWN;
-
- /* Temporary workaround - should be removed when PHY will implement
- * IEEE registers as properly
- */
- /* hw->phy.ops.write_reg(hw, PHY_CONTROL, mii_reg);*/
+ hw->phy.ops.write_reg(hw, PHY_CONTROL, mii_reg);
usleep_range(1000, 2000);
}
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-net v1 1/1] igc: Remove temporary workaround
2024-01-24 5:57 [Intel-wired-lan] [PATCH iwl-net v1 1/1] igc: Remove temporary workaround Sasha Neftin
@ 2024-01-26 12:20 ` Paul Menzel
2024-02-05 11:43 ` naamax.meir
1 sibling, 0 replies; 3+ messages in thread
From: Paul Menzel @ 2024-01-26 12:20 UTC (permalink / raw)
To: Sasha Neftin; +Cc: intel-wired-lan
Dear Sasha,
Thank you for your patch. As always some nits.
Am 24.01.24 um 06:57 schrieb Sasha Neftin:
> PHY_CONTROL register works as defined in the IEEE 802.3 specification.
Remove the dot/period as the parenthesis follow?
> (IEEE 802.3-2008 22.2.4.1). Tide up the temporary workaround.
I’d be more specific in the commit message summary/title. Maybe (now idea):
igc: Enable PHY_CONTROL
How did you test this?
> Fixes: 5586838fe9ce ("igc: Add code for PHY support")
> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
> ---
> drivers/net/ethernet/intel/igc/igc_phy.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/igc/igc_phy.c b/drivers/net/ethernet/intel/igc/igc_phy.c
> index 7cd8716d2ffa..861f37076861 100644
> --- a/drivers/net/ethernet/intel/igc/igc_phy.c
> +++ b/drivers/net/ethernet/intel/igc/igc_phy.c
> @@ -130,11 +130,7 @@ void igc_power_down_phy_copper(struct igc_hw *hw)
> /* The PHY will retain its settings across a power down/up cycle */
> hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg);
> mii_reg |= MII_CR_POWER_DOWN;
> -
> - /* Temporary workaround - should be removed when PHY will implement
> - * IEEE registers as properly
> - */
> - /* hw->phy.ops.write_reg(hw, PHY_CONTROL, mii_reg);*/
> + hw->phy.ops.write_reg(hw, PHY_CONTROL, mii_reg);
> usleep_range(1000, 2000);
> }
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Kind regards,
Paul
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-net v1 1/1] igc: Remove temporary workaround
2024-01-24 5:57 [Intel-wired-lan] [PATCH iwl-net v1 1/1] igc: Remove temporary workaround Sasha Neftin
2024-01-26 12:20 ` Paul Menzel
@ 2024-02-05 11:43 ` naamax.meir
1 sibling, 0 replies; 3+ messages in thread
From: naamax.meir @ 2024-02-05 11:43 UTC (permalink / raw)
To: Sasha Neftin, intel-wired-lan
On 1/24/2024 07:57, Sasha Neftin wrote:
> PHY_CONTROL register works as defined in the IEEE 802.3 specification.
> (IEEE 802.3-2008 22.2.4.1). Tide up the temporary workaround.
>
> Fixes: 5586838fe9ce ("igc: Add code for PHY support")
> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
> ---
> drivers/net/ethernet/intel/igc/igc_phy.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-05 11:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-24 5:57 [Intel-wired-lan] [PATCH iwl-net v1 1/1] igc: Remove temporary workaround Sasha Neftin
2024-01-26 12:20 ` Paul Menzel
2024-02-05 11:43 ` naamax.meir
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox