From: <Nicolas.Ferre@microchip.com>
To: <Claudiu.Beznea@microchip.com>, <davem@davemloft.net>, <kuba@kernel.org>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/3] net: macb: add support for mii on rgmii
Date: Wed, 15 Sep 2021 07:45:14 +0000 [thread overview]
Message-ID: <c17845bd-2b32-883a-4b59-a684ee8dd9b9@microchip.com> (raw)
In-Reply-To: <20210915064721.5530-4-claudiu.beznea@microchip.com>
On 15/09/2021 at 08:47, Claudiu Beznea wrote:
> Cadence IP has option to enable MII support on RGMII interface. This
> could be selected though bit 28 of network control register. This option
> is not enabled on all the IP versions thus add a software capability to
> be selected by the proper implementation of this IP.
>
> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Fine:
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Thanks Claudiu, best regards,
Nicolas
> ---
> drivers/net/ethernet/cadence/macb.h | 3 +++
> drivers/net/ethernet/cadence/macb_main.c | 3 +++
> 2 files changed, 6 insertions(+)
>
> diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h
> index c33e98bfa5e8..5620b97b3482 100644
> --- a/drivers/net/ethernet/cadence/macb.h
> +++ b/drivers/net/ethernet/cadence/macb.h
> @@ -246,6 +246,8 @@
> #define MACB_SRTSM_OFFSET 15 /* Store Receive Timestamp to Memory */
> #define MACB_OSSMODE_OFFSET 24 /* Enable One Step Synchro Mode */
> #define MACB_OSSMODE_SIZE 1
> +#define MACB_MIIONRGMII_OFFSET 28 /* MII Usage on RGMII Interface */
> +#define MACB_MIIONRGMII_SIZE 1
>
> /* Bitfields in NCFGR */
> #define MACB_SPD_OFFSET 0 /* Speed */
> @@ -713,6 +715,7 @@
> #define MACB_CAPS_GEM_HAS_PTP 0x00000040
> #define MACB_CAPS_BD_RD_PREFETCH 0x00000080
> #define MACB_CAPS_NEEDS_RSTONUBR 0x00000100
> +#define MACB_CAPS_MIIONRGMII 0x00000200
> #define MACB_CAPS_CLK_HW_CHG 0x04000000
> #define MACB_CAPS_MACB_IS_EMAC 0x08000000
> #define MACB_CAPS_FIFO_MODE 0x10000000
> diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
> index d13fb1d31821..cdf3e35b5b33 100644
> --- a/drivers/net/ethernet/cadence/macb_main.c
> +++ b/drivers/net/ethernet/cadence/macb_main.c
> @@ -684,6 +684,9 @@ static void macb_mac_config(struct phylink_config *config, unsigned int mode,
> } else if (state->interface == PHY_INTERFACE_MODE_10GBASER) {
> ctrl |= GEM_BIT(PCSSEL);
> ncr |= GEM_BIT(ENABLE_HS_MAC);
> + } else if (bp->caps & MACB_CAPS_MIIONRGMII &&
> + bp->phy_interface == PHY_INTERFACE_MODE_MII) {
> + ncr |= MACB_BIT(MIIONRGMII);
> }
> }
>
>
--
Nicolas Ferre
next prev parent reply other threads:[~2021-09-15 7:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-15 6:47 [PATCH 0/3] net: macb: add support for MII on RGMII interface Claudiu Beznea
2021-09-15 6:47 ` [PATCH 1/3] net: macb: add description for SRTSM Claudiu Beznea
2021-09-15 7:55 ` Nicolas.Ferre
2021-09-15 6:47 ` [PATCH 2/3] net: macb: align for OSSMODE offset Claudiu Beznea
2021-09-15 7:44 ` Nicolas.Ferre
2021-09-15 6:47 ` [PATCH 3/3] net: macb: add support for mii on rgmii Claudiu Beznea
2021-09-15 7:45 ` Nicolas.Ferre [this message]
2021-09-16 13:03 ` Andrew Lunn
2021-09-17 13:29 ` Claudiu.Beznea
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=c17845bd-2b32-883a-4b59-a684ee8dd9b9@microchip.com \
--to=nicolas.ferre@microchip.com \
--cc=Claudiu.Beznea@microchip.com \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®