netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY
@ 2023-01-31 21:03 Heiner Kallweit
  2023-01-31 21:07 ` Chris Healy
  2023-02-01  5:55 ` Jakub Kicinski
  0 siblings, 2 replies; 7+ messages in thread
From: Heiner Kallweit @ 2023-01-31 21:03 UTC (permalink / raw)
  To: Andrew Lunn, Russell King - ARM Linux, David Miller,
	Jakub Kicinski, Paolo Abeni, Eric Dumazet, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl
  Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	open list:ARM/Amlogic Meson..., Chris Healy

Jerome provided the information that also the GXL internal PHY doesn't
support MMD register access and EEE. MMD reads return 0xffff, what
results in e.g. completely wrong ethtool --show-eee output.
Therefore use the MMD dummy stubs.

Note: The Fixes tag references the commit that added the MMD dummy
access stubs.

Fixes: 5df7af85ecd8 ("net: phy: Add general dummy stubs for MMD register access")
Suggested-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/net/phy/meson-gxl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c
index c49062ad7..fbf5f2416 100644
--- a/drivers/net/phy/meson-gxl.c
+++ b/drivers/net/phy/meson-gxl.c
@@ -261,6 +261,8 @@ static struct phy_driver meson_gxl_phy[] = {
 		.handle_interrupt = meson_gxl_handle_interrupt,
 		.suspend        = genphy_suspend,
 		.resume         = genphy_resume,
+		.read_mmd	= genphy_read_mmd_unsupported,
+		.write_mmd	= genphy_write_mmd_unsupported,
 	}, {
 		PHY_ID_MATCH_EXACT(0x01803301),
 		.name		= "Meson G12A Internal PHY",
-- 
2.39.1


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

* Re: [PATCH net] net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY
  2023-01-31 21:03 [PATCH net] net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY Heiner Kallweit
@ 2023-01-31 21:07 ` Chris Healy
  2023-02-01  5:55 ` Jakub Kicinski
  1 sibling, 0 replies; 7+ messages in thread
From: Chris Healy @ 2023-01-31 21:07 UTC (permalink / raw)
  To: Heiner Kallweit
  Cc: Andrew Lunn, Russell King - ARM Linux, David Miller,
	Jakub Kicinski, Paolo Abeni, Eric Dumazet, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	open list:ARM/Amlogic Meson...

Reviewed-by: Chris Healy <healych@amazon.com>

On Tue, Jan 31, 2023 at 1:03 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>
> Jerome provided the information that also the GXL internal PHY doesn't
> support MMD register access and EEE. MMD reads return 0xffff, what
> results in e.g. completely wrong ethtool --show-eee output.
> Therefore use the MMD dummy stubs.
>
> Note: The Fixes tag references the commit that added the MMD dummy
> access stubs.
>
> Fixes: 5df7af85ecd8 ("net: phy: Add general dummy stubs for MMD register access")
> Suggested-by: Jerome Brunet <jbrunet@baylibre.com>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
>  drivers/net/phy/meson-gxl.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c
> index c49062ad7..fbf5f2416 100644
> --- a/drivers/net/phy/meson-gxl.c
> +++ b/drivers/net/phy/meson-gxl.c
> @@ -261,6 +261,8 @@ static struct phy_driver meson_gxl_phy[] = {
>                 .handle_interrupt = meson_gxl_handle_interrupt,
>                 .suspend        = genphy_suspend,
>                 .resume         = genphy_resume,
> +               .read_mmd       = genphy_read_mmd_unsupported,
> +               .write_mmd      = genphy_write_mmd_unsupported,
>         }, {
>                 PHY_ID_MATCH_EXACT(0x01803301),
>                 .name           = "Meson G12A Internal PHY",
> --
> 2.39.1
>

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

* Re: [PATCH net] net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY
  2023-01-31 21:03 [PATCH net] net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY Heiner Kallweit
  2023-01-31 21:07 ` Chris Healy
@ 2023-02-01  5:55 ` Jakub Kicinski
  2023-02-01 12:45   ` Kevin Hao
  2023-02-01 15:16   ` Chris Healy
  1 sibling, 2 replies; 7+ messages in thread
From: Jakub Kicinski @ 2023-02-01  5:55 UTC (permalink / raw)
  To: Heiner Kallweit
  Cc: Andrew Lunn, Russell King - ARM Linux, David Miller, Paolo Abeni,
	Eric Dumazet, Neil Armstrong, Kevin Hilman, Jerome Brunet,
	Martin Blumenstingl, netdev@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	open list:ARM/Amlogic Meson..., Chris Healy, Kevin Hao

On Tue, 31 Jan 2023 22:03:21 +0100 Heiner Kallweit wrote:
> Jerome provided the information that also the GXL internal PHY doesn't
> support MMD register access and EEE. MMD reads return 0xffff, what
> results in e.g. completely wrong ethtool --show-eee output.
> Therefore use the MMD dummy stubs.
> 
> Note: The Fixes tag references the commit that added the MMD dummy
> access stubs.
> 
> Fixes: 5df7af85ecd8 ("net: phy: Add general dummy stubs for MMD register access")

Please make sure to CC the author. Adding Kevin Hao <haokexin@gmail.com>

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

* Re: [PATCH net] net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY
  2023-02-01  5:55 ` Jakub Kicinski
@ 2023-02-01 12:45   ` Kevin Hao
       [not found]     ` <20230201210754.143357c5@kernel.org>
  2023-02-01 15:16   ` Chris Healy
  1 sibling, 1 reply; 7+ messages in thread
From: Kevin Hao @ 2023-02-01 12:45 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: Heiner Kallweit, Andrew Lunn, Russell King - ARM Linux,
	David Miller, Paolo Abeni, Eric Dumazet, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	open list:ARM/Amlogic Meson..., Chris Healy

[-- Attachment #1: Type: text/plain, Size: 850 bytes --]

On Tue, Jan 31, 2023 at 09:55:28PM -0800, Jakub Kicinski wrote:
> On Tue, 31 Jan 2023 22:03:21 +0100 Heiner Kallweit wrote:
> > Jerome provided the information that also the GXL internal PHY doesn't
> > support MMD register access and EEE. MMD reads return 0xffff, what
> > results in e.g. completely wrong ethtool --show-eee output.
> > Therefore use the MMD dummy stubs.
> > 
> > Note: The Fixes tag references the commit that added the MMD dummy
> > access stubs.
> > 
> > Fixes: 5df7af85ecd8 ("net: phy: Add general dummy stubs for MMD register access")
> 
> Please make sure to CC the author. Adding Kevin Hao <haokexin@gmail.com>

The changes look fine to me, but the using of the "Fixes" tag seems a bit weird.
The "Fixes" tag is used to specify the commit causing regression instead of patch prerequisite.

Thanks,
Kevin


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH net] net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY
  2023-02-01  5:55 ` Jakub Kicinski
  2023-02-01 12:45   ` Kevin Hao
@ 2023-02-01 15:16   ` Chris Healy
  1 sibling, 0 replies; 7+ messages in thread
From: Chris Healy @ 2023-02-01 15:16 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: Heiner Kallweit, Andrew Lunn, Russell King - ARM Linux,
	David Miller, Paolo Abeni, Eric Dumazet, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	open list:ARM/Amlogic Meson..., Kevin Hao

On Tue, Jan 31, 2023 at 9:55 PM Jakub Kicinski <kuba@kernel.org> wrote:
>
> On Tue, 31 Jan 2023 22:03:21 +0100 Heiner Kallweit wrote:
> > Jerome provided the information that also the GXL internal PHY doesn't
> > support MMD register access and EEE. MMD reads return 0xffff, what
> > results in e.g. completely wrong ethtool --show-eee output.
> > Therefore use the MMD dummy stubs.
> >
> > Note: The Fixes tag references the commit that added the MMD dummy
> > access stubs.
> >
> > Fixes: 5df7af85ecd8 ("net: phy: Add general dummy stubs for MMD register access")
>
> Please make sure to CC the author. Adding Kevin Hao <haokexin@gmail.com>

Good point, I'll do that next time.

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

* Re: [PATCH net] net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY
       [not found]     ` <20230201210754.143357c5@kernel.org>
@ 2023-02-02  6:30       ` Heiner Kallweit
  2023-02-02 12:26         ` Paolo Abeni
  0 siblings, 1 reply; 7+ messages in thread
From: Heiner Kallweit @ 2023-02-02  6:30 UTC (permalink / raw)
  To: Jakub Kicinski, Kevin Hao
  Cc: Andrew Lunn, Russell King - ARM Linux, David Miller, Paolo Abeni,
	Eric Dumazet, Neil Armstrong, Kevin Hilman, Jerome Brunet,
	Martin Blumenstingl, netdev@vger.kernel.org, ARM/Amlogic Meson...,
	Chris Healy

On 02.02.2023 06:07, Jakub Kicinski wrote:
> On Wed, 1 Feb 2023 20:45:58 +0800 Kevin Hao wrote:
>> The "Fixes" tag is used to specify the commit causing regression
>> instead of patch prerequisite.
> 
> Indeed, what's the tag for the commit where the problem can be first
> observed? All the way back to:
> 
> Fixes: 7334b3e47aee ("net: phy: Add Meson GXL Internal PHY driver")
> 
> ?

The issue popped up with:
d853d145ea3e ("net: phy: add an option to disable EEE advertisement")

This commit added MMD register access to the generic configuration
path in phylib.


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

* Re: [PATCH net] net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY
  2023-02-02  6:30       ` Heiner Kallweit
@ 2023-02-02 12:26         ` Paolo Abeni
  0 siblings, 0 replies; 7+ messages in thread
From: Paolo Abeni @ 2023-02-02 12:26 UTC (permalink / raw)
  To: Heiner Kallweit, Jakub Kicinski, Kevin Hao
  Cc: Andrew Lunn, Russell King - ARM Linux, David Miller, Eric Dumazet,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	netdev@vger.kernel.org, ARM/Amlogic Meson..., Chris Healy

On Thu, 2023-02-02 at 07:30 +0100, Heiner Kallweit wrote:
> On 02.02.2023 06:07, Jakub Kicinski wrote:
> > On Wed, 1 Feb 2023 20:45:58 +0800 Kevin Hao wrote:
> > > The "Fixes" tag is used to specify the commit causing regression
> > > instead of patch prerequisite.
> > 
> > Indeed, what's the tag for the commit where the problem can be first
> > observed? All the way back to:
> > 
> > Fixes: 7334b3e47aee ("net: phy: Add Meson GXL Internal PHY driver")
> > 
> > ?
> 
> The issue popped up with:
> d853d145ea3e ("net: phy: add an option to disable EEE advertisement")
> 
> This commit added MMD register access to the generic configuration
> path in phylib.

Please post a v2 with an update Fixes tag, and ev, referencing the pre-
requisite  in the the commit message itself, thanks!

Paolo


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

end of thread, other threads:[~2023-02-02 12:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-31 21:03 [PATCH net] net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY Heiner Kallweit
2023-01-31 21:07 ` Chris Healy
2023-02-01  5:55 ` Jakub Kicinski
2023-02-01 12:45   ` Kevin Hao
     [not found]     ` <20230201210754.143357c5@kernel.org>
2023-02-02  6:30       ` Heiner Kallweit
2023-02-02 12:26         ` Paolo Abeni
2023-02-01 15:16   ` Chris Healy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).