From: Horatiu Vultur <horatiu.vultur@microchip.com>
To: Atsushi Nemoto <atsushi.nemoto@sord.co.jp>
Cc: <netdev@vger.kernel.org>, <devicetree@vger.kernel.org>,
Michael Hennerich <michael.hennerich@analog.com>,
Alexandru Tachici <alexandru.tachici@analog.com>
Subject: Re: [PATCH net-next 2/2] net: phy: adin: add support for inverting the link status output signal
Date: Wed, 31 May 2023 08:37:14 +0200 [thread overview]
Message-ID: <20230531063714.7znsc7cepsk3yu44@soft-dev3-1> (raw)
In-Reply-To: <7eedd83d-7d87-ba3e-7a38-990f05a44579@sord.co.jp>
The 05/30/2023 14:36, Atsushi Nemoto wrote:
Hi Atsushi,
When you create patch series that contains more than 1 patch, you need to
create also a cover letter.
Also it seems that not all the maintainers were CCed. To find out which
ones are the maintainers please use: ./scripts/get_maintainer.pl
Other than that, it looks OK.
> The ADIN1200/ADIN1300 supports inverting the link status output signal
> on the LINK_ST pin.
>
> Add support for selecting this feature via device-tree properties.
>
> Signed-off-by: Atsushi Nemoto <atsushi.nemoto@sord.co.jp>
> ---
> drivers/net/phy/adin.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c
> index 134637584a83..331f9574328f 100644
> --- a/drivers/net/phy/adin.c
> +++ b/drivers/net/phy/adin.c
> @@ -140,6 +140,9 @@
> #define ADIN1300_RMII_20_BITS 0x0004
> #define ADIN1300_RMII_24_BITS 0x0005
>
> +#define ADIN1300_GE_LNK_STAT_INV_REG 0xff3c
> +#define ADIN1300_GE_LNK_STAT_INV_EN BIT(0)
> +
> /**
> * struct adin_cfg_reg_map - map a config value to aregister value
> * @cfg: value in device configuration
> @@ -495,6 +498,15 @@ static int adin_config_init(struct phy_device *phydev)
> if (rc < 0)
> return rc;
>
> + if (device_property_read_bool(&phydev->mdio.dev,
> + "adi,link-stat-inv")) {
> + rc = phy_set_bits_mmd(phydev, MDIO_MMD_VEND1,
> + ADIN1300_GE_LNK_STAT_INV_REG,
> + ADIN1300_GE_LNK_STAT_INV_EN);
> + if (rc < 0)
> + return rc;
> + }
> +
> phydev_dbg(phydev, "PHY is using mode '%s'\n",
> phy_modes(phydev->interface));
>
> --
> 2.30.2
>
>
>
--
/Horatiu
next prev parent reply other threads:[~2023-05-31 6:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-30 5:36 [PATCH net-next 2/2] net: phy: adin: add support for inverting the link status output signal Atsushi Nemoto
2023-05-31 6:37 ` Horatiu Vultur [this message]
2023-05-31 14:52 ` Atsushi Nemoto
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=20230531063714.7znsc7cepsk3yu44@soft-dev3-1 \
--to=horatiu.vultur@microchip.com \
--cc=alexandru.tachici@analog.com \
--cc=atsushi.nemoto@sord.co.jp \
--cc=devicetree@vger.kernel.org \
--cc=michael.hennerich@analog.com \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).