diff mbox series

[net-next] net: phy: meson-gxl: enable edpd tunable support for G12A internal PHY

Message ID 8d309575-067c-7321-33cf-6ffac11f7c8d@gmail.com (mailing list archive)
State Accepted
Commit 992e76908e9288d0c725addbbd72b5930e99b2de
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net: phy: meson-gxl: enable edpd tunable support for G12A internal PHY | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 18 this patch: 18
netdev/cc_maintainers success CCed 14 of 14 maintainers
netdev/build_clang success Errors and warnings before: 18 this patch: 18
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 18 this patch: 18
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 10 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Heiner Kallweit April 3, 2023, 7:35 p.m. UTC
Enable EDPD PHY tunable support for the G12A internal PHY, reusing the
recently added tunable support in the smsc driver.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/net/phy/meson-gxl.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Simon Horman April 3, 2023, 7:54 p.m. UTC | #1
On Mon, Apr 03, 2023 at 09:35:46PM +0200, Heiner Kallweit wrote:
> Enable EDPD PHY tunable support for the G12A internal PHY, reusing the
> recently added tunable support in the smsc driver.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

Reviewed-by: Simon Horman <simon.horman@corigine.com>
Chris Healy April 3, 2023, 8:24 p.m. UTC | #2
On Mon, Apr 3, 2023 at 12:35 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>
> Enable EDPD PHY tunable support for the G12A internal PHY, reusing the
> recently added tunable support in the smsc driver.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
>  drivers/net/phy/meson-gxl.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c
> index 3dea7c752..bb9b33b6b 100644
> --- a/drivers/net/phy/meson-gxl.c
> +++ b/drivers/net/phy/meson-gxl.c
> @@ -210,6 +210,10 @@ static struct phy_driver meson_gxl_phy[] = {
>                 .read_status    = lan87xx_read_status,
>                 .config_intr    = smsc_phy_config_intr,
>                 .handle_interrupt = smsc_phy_handle_interrupt,
> +
> +               .get_tunable    = smsc_phy_get_tunable,
> +               .set_tunable    = smsc_phy_set_tunable,
> +
>                 .suspend        = genphy_suspend,
Why add the empty lines before and after the two new lines?

>                 .resume         = genphy_resume,
>                 .read_mmd       = genphy_read_mmd_unsupported,
> --
> 2.40.0
>
Heiner Kallweit April 3, 2023, 8:32 p.m. UTC | #3
On 03.04.2023 22:24, Chris Healy wrote:
> On Mon, Apr 3, 2023 at 12:35 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>>
>> Enable EDPD PHY tunable support for the G12A internal PHY, reusing the
>> recently added tunable support in the smsc driver.
>>
>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>> ---
>>  drivers/net/phy/meson-gxl.c | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c
>> index 3dea7c752..bb9b33b6b 100644
>> --- a/drivers/net/phy/meson-gxl.c
>> +++ b/drivers/net/phy/meson-gxl.c
>> @@ -210,6 +210,10 @@ static struct phy_driver meson_gxl_phy[] = {
>>                 .read_status    = lan87xx_read_status,
>>                 .config_intr    = smsc_phy_config_intr,
>>                 .handle_interrupt = smsc_phy_handle_interrupt,
>> +
>> +               .get_tunable    = smsc_phy_get_tunable,
>> +               .set_tunable    = smsc_phy_set_tunable,
>> +
>>                 .suspend        = genphy_suspend,
> Why add the empty lines before and after the two new lines?
> 
Just for readability, because these two entries belong together.
Sometimes it's a little hard to read if drivers have 10+ callbacks
in a flat list in different, arbitrary order.

>>                 .resume         = genphy_resume,
>>                 .read_mmd       = genphy_read_mmd_unsupported,
>> --
>> 2.40.0
>>
Martin Blumenstingl April 3, 2023, 8:41 p.m. UTC | #4
On Mon, Apr 3, 2023 at 9:35 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>
> Enable EDPD PHY tunable support for the G12A internal PHY, reusing the
> recently added tunable support in the smsc driver.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
patchwork-bot+netdevbpf@kernel.org April 5, 2023, 2 a.m. UTC | #5
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 3 Apr 2023 21:35:46 +0200 you wrote:
> Enable EDPD PHY tunable support for the G12A internal PHY, reusing the
> recently added tunable support in the smsc driver.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
>  drivers/net/phy/meson-gxl.c | 4 ++++
>  1 file changed, 4 insertions(+)

Here is the summary with links:
  - [net-next] net: phy: meson-gxl: enable edpd tunable support for G12A internal PHY
    https://git.kernel.org/netdev/net-next/c/992e76908e92

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c
index 3dea7c752..bb9b33b6b 100644
--- a/drivers/net/phy/meson-gxl.c
+++ b/drivers/net/phy/meson-gxl.c
@@ -210,6 +210,10 @@  static struct phy_driver meson_gxl_phy[] = {
 		.read_status	= lan87xx_read_status,
 		.config_intr	= smsc_phy_config_intr,
 		.handle_interrupt = smsc_phy_handle_interrupt,
+
+		.get_tunable	= smsc_phy_get_tunable,
+		.set_tunable	= smsc_phy_set_tunable,
+
 		.suspend        = genphy_suspend,
 		.resume         = genphy_resume,
 		.read_mmd	= genphy_read_mmd_unsupported,