From: ALOK TIWARI <alok.a.tiwari@oracle.com>
To: stefano.radaelli21@gmail.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Xu Liang <lxu@maxlinear.com>
Subject: Re: [PATCH net-next v5] net: phy: add driver for MaxLinear MxL86110 PHY
Date: Wed, 21 May 2025 18:45:07 +0530 [thread overview]
Message-ID: <978c8c91-5c52-4e22-bdb8-5731a35278b1@oracle.com> (raw)
In-Reply-To: <20250521113414.567414-1-stefano.radaelli21@gmail.com>
On 21-05-2025 17:04, stefano.radaelli21@gmail.com wrote:
> +/**
> + * mxl86110_enable_led_activity_blink - Enable LEDs activity blink on PHY
> + * @phydev: Pointer to the PHY device structure
> + *
> + * Configure all PHY LEDs to blink on traffic activity regardless of their
> + * ON or OFF state. This behavior allows each LED to serve as a pure activity
> + * indicator, independently of its use as a link status indicator.
> + *
"regardless of whether they are ON or OFF"
> + * By default, each LED blinks only when it is also in the ON state.
> + * This function modifies the appropriate registers (LABx fields)
> + * to enable blinking even when the LEDs are OFF, to allow the LED to be used
> + * as a traffic indicator without requiring it to also serve
> + * as a link status LED.
> + *
> + * Note: Any further LED customization can be performed via the
> + * /sys/class/led interface; the functions led_hw_is_supported,
/sys/class/led -> /sys/class/leds (it is leds in sysfs)
> + * led_hw_control_get, and led_hw_control_set are used
> + * to support this mechanism.
> + *
> + * This function assumes the caller already holds the MDIO bus lock
> + * or otherwise has exclusive access to the PHY.
> + *
> + * Return: 0 on success or a negative errno code on failure.
> + */
> +static int mxl86110_enable_led_activity_blink(struct phy_device *phydev)
> +{
> + int i, ret = 0;
> +
> + for (i = 0; i < MXL86110_MAX_LEDS; i++) {
> + ret = __mxl86110_modify_extended_reg(phydev,
> + MXL86110_LED0_CFG_REG + i,
> + 0,
> + MXL86110_LEDX_CFG_BLINK);
> + if (ret < 0)
> + break;
> + }
> +
> + return ret;
> +};
remove ;
Thanks,
Alok
next prev parent reply other threads:[~2025-05-21 13:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-21 11:34 stefano.radaelli21
2025-05-21 13:15 ` ALOK TIWARI [this message]
2025-05-21 21:25 ` Stefano Radaelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=978c8c91-5c52-4e22-bdb8-5731a35278b1@oracle.com \
--to=alok.a.tiwari@oracle.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=lxu@maxlinear.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stefano.radaelli21@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®