All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] r8169: deprecate support for RTL_GIGA_MAC_VER_27
@ 2021-01-08 12:24 Heiner Kallweit
  2021-01-10  2:17 ` Jakub Kicinski
  0 siblings, 1 reply; 3+ messages in thread
From: Heiner Kallweit @ 2021-01-08 12:24 UTC (permalink / raw
  To: Jakub Kicinski, David Miller, Realtek linux nic maintainers
  Cc: netdev@vger.kernel.org

RTL8168dp is ancient anyway, and I haven't seen any trace of its early
version 27 yet. This chip versions needs quite some special handling,
therefore it would facilitate driver maintenance if support for it
could be dropped. For now just disable detection of this chip version.
If nobody complains we can remove support for it in the near future.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/net/ethernet/realtek/r8169_main.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
index e72d8f3ae..f94965615 100644
--- a/drivers/net/ethernet/realtek/r8169_main.c
+++ b/drivers/net/ethernet/realtek/r8169_main.c
@@ -1962,7 +1962,11 @@ static enum mac_version rtl8169_get_mac_version(u16 xid, bool gmii)
 		{ 0x7c8, 0x280,	RTL_GIGA_MAC_VER_26 },
 
 		/* 8168DP family. */
-		{ 0x7cf, 0x288,	RTL_GIGA_MAC_VER_27 },
+		/* It seems this early RTL8168dp version never made it to
+		 * the wild. Let's see whether somebody complains, if not
+		 * we'll remove support for this chip version completely.
+		 * { 0x7cf, 0x288,      RTL_GIGA_MAC_VER_27 },
+		 */
 		{ 0x7cf, 0x28a,	RTL_GIGA_MAC_VER_28 },
 		{ 0x7cf, 0x28b,	RTL_GIGA_MAC_VER_31 },
 
-- 
2.29.2


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

* Re: [PATCH net-next] r8169: deprecate support for RTL_GIGA_MAC_VER_27
  2021-01-08 12:24 [PATCH net-next] r8169: deprecate support for RTL_GIGA_MAC_VER_27 Heiner Kallweit
@ 2021-01-10  2:17 ` Jakub Kicinski
  2021-01-10 11:58   ` Heiner Kallweit
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2021-01-10  2:17 UTC (permalink / raw
  To: Heiner Kallweit
  Cc: David Miller, Realtek linux nic maintainers,
	netdev@vger.kernel.org

On Fri, 8 Jan 2021 13:24:16 +0100 Heiner Kallweit wrote:
> RTL8168dp is ancient anyway, and I haven't seen any trace of its early
> version 27 yet. This chip versions needs quite some special handling,
> therefore it would facilitate driver maintenance if support for it
> could be dropped. For now just disable detection of this chip version.
> If nobody complains we can remove support for it in the near future.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
>  drivers/net/ethernet/realtek/r8169_main.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
> index e72d8f3ae..f94965615 100644
> --- a/drivers/net/ethernet/realtek/r8169_main.c
> +++ b/drivers/net/ethernet/realtek/r8169_main.c
> @@ -1962,7 +1962,11 @@ static enum mac_version rtl8169_get_mac_version(u16 xid, bool gmii)
>  		{ 0x7c8, 0x280,	RTL_GIGA_MAC_VER_26 },
>  
>  		/* 8168DP family. */
> -		{ 0x7cf, 0x288,	RTL_GIGA_MAC_VER_27 },
> +		/* It seems this early RTL8168dp version never made it to
> +		 * the wild. Let's see whether somebody complains, if not
> +		 * we'll remove support for this chip version completely.
> +		 * { 0x7cf, 0x288,      RTL_GIGA_MAC_VER_27 },
> +		 */
>  		{ 0x7cf, 0x28a,	RTL_GIGA_MAC_VER_28 },
>  		{ 0x7cf, 0x28b,	RTL_GIGA_MAC_VER_31 },
>  

No objection to deprecating the support (although quick grep does not
reveal the special handling you speak of), but would it make sense to
also print some message to save the potential user out there debug time?
Something like:

	dev_err(dev, "support for device has been removed please contact <email>");

?

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

* Re: [PATCH net-next] r8169: deprecate support for RTL_GIGA_MAC_VER_27
  2021-01-10  2:17 ` Jakub Kicinski
@ 2021-01-10 11:58   ` Heiner Kallweit
  0 siblings, 0 replies; 3+ messages in thread
From: Heiner Kallweit @ 2021-01-10 11:58 UTC (permalink / raw
  To: Jakub Kicinski
  Cc: David Miller, Realtek linux nic maintainers,
	netdev@vger.kernel.org

On 10.01.2021 03:17, Jakub Kicinski wrote:
> On Fri, 8 Jan 2021 13:24:16 +0100 Heiner Kallweit wrote:
>> RTL8168dp is ancient anyway, and I haven't seen any trace of its early
>> version 27 yet. This chip versions needs quite some special handling,
>> therefore it would facilitate driver maintenance if support for it
>> could be dropped. For now just disable detection of this chip version.
>> If nobody complains we can remove support for it in the near future.
>>
>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>> ---
>>  drivers/net/ethernet/realtek/r8169_main.c | 6 +++++-
>>  1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
>> index e72d8f3ae..f94965615 100644
>> --- a/drivers/net/ethernet/realtek/r8169_main.c
>> +++ b/drivers/net/ethernet/realtek/r8169_main.c
>> @@ -1962,7 +1962,11 @@ static enum mac_version rtl8169_get_mac_version(u16 xid, bool gmii)
>>  		{ 0x7c8, 0x280,	RTL_GIGA_MAC_VER_26 },
>>  
>>  		/* 8168DP family. */
>> -		{ 0x7cf, 0x288,	RTL_GIGA_MAC_VER_27 },
>> +		/* It seems this early RTL8168dp version never made it to
>> +		 * the wild. Let's see whether somebody complains, if not
>> +		 * we'll remove support for this chip version completely.
>> +		 * { 0x7cf, 0x288,      RTL_GIGA_MAC_VER_27 },
>> +		 */
>>  		{ 0x7cf, 0x28a,	RTL_GIGA_MAC_VER_28 },
>>  		{ 0x7cf, 0x28b,	RTL_GIGA_MAC_VER_31 },
>>  
> 
> No objection to deprecating the support (although quick grep does not
> reveal the special handling you speak of), but would it make sense to
> also print some message to save the potential user out there debug time?

Version 27 has it's own way of handling MDIO access, we could get rid of
r8168dp_1_mdio_access(), r8168dp_1_mdio_write(), r8168dp_1_mdio_read(),
and also of the chip-specific PHY config rtl8168d_3_hw_phy_config().

> Something like:
> 
> 	dev_err(dev, "support for device has been removed please contact <email>");
> 
So far we'd emit the following error in dmesg: "unknown chip XID 288".
I agree that we should add a hint to contact the maintainers, this may help
also in case somebody has a system with a new, not yet supported chip version.

> ?
> 


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

end of thread, other threads:[~2021-01-10 11:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-08 12:24 [PATCH net-next] r8169: deprecate support for RTL_GIGA_MAC_VER_27 Heiner Kallweit
2021-01-10  2:17 ` Jakub Kicinski
2021-01-10 11:58   ` Heiner Kallweit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.