diff mbox series

net: include/phy.h: add new mode for internal phy

Message ID 1526032279-21721-1-git-send-email-hayashi.kunihiko@socionext.com
State Superseded
Headers show
Series net: include/phy.h: add new mode for internal phy | expand

Commit Message

Kunihiko Hayashi May 11, 2018, 9:51 a.m. UTC
Add the new mode to indicate a built-in PHY.
This will be used by UniPhier AVE ethernet driver.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
 include/phy.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Marek Vasut May 13, 2018, 6:57 p.m. UTC | #1
On 05/11/2018 11:51 AM, Kunihiko Hayashi wrote:
> Add the new mode to indicate a built-in PHY.
> This will be used by UniPhier AVE ethernet driver.

Hi, Hayashi-san,

CC Joe on network stuff.

Reviewed-by: Marek Vasut <marek.vasut@gmail.com>

> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
> ---
>  include/phy.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/phy.h b/include/phy.h
> index 0543ec1..d0f60d1 100644
> --- a/include/phy.h
> +++ b/include/phy.h
> @@ -66,6 +66,7 @@ typedef enum {
>  	PHY_INTERFACE_MODE_XAUI,
>  	PHY_INTERFACE_MODE_RXAUI,
>  	PHY_INTERFACE_MODE_SFI,
> +	PHY_INTERFACE_MODE_INTERNAL,
>  	PHY_INTERFACE_MODE_NONE,	/* Must be last */
>  
>  	PHY_INTERFACE_MODE_COUNT,
> @@ -88,6 +89,7 @@ static const char *phy_interface_strings[] = {
>  	[PHY_INTERFACE_MODE_XAUI]		= "xaui",
>  	[PHY_INTERFACE_MODE_RXAUI]		= "rxaui",
>  	[PHY_INTERFACE_MODE_SFI]		= "sfi",
> +	[PHY_INTERFACE_MODE_INTERNAL]		= "internal",
>  	[PHY_INTERFACE_MODE_NONE]		= "",
>  };
>  
>
Joe Hershberger May 15, 2018, 9:09 p.m. UTC | #2
On Fri, May 11, 2018 at 4:51 AM, Kunihiko Hayashi
<hayashi.kunihiko@socionext.com> wrote:
> Add the new mode to indicate a built-in PHY.
> This will be used by UniPhier AVE ethernet driver.
>
> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
diff mbox series

Patch

diff --git a/include/phy.h b/include/phy.h
index 0543ec1..d0f60d1 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -66,6 +66,7 @@  typedef enum {
 	PHY_INTERFACE_MODE_XAUI,
 	PHY_INTERFACE_MODE_RXAUI,
 	PHY_INTERFACE_MODE_SFI,
+	PHY_INTERFACE_MODE_INTERNAL,
 	PHY_INTERFACE_MODE_NONE,	/* Must be last */
 
 	PHY_INTERFACE_MODE_COUNT,
@@ -88,6 +89,7 @@  static const char *phy_interface_strings[] = {
 	[PHY_INTERFACE_MODE_XAUI]		= "xaui",
 	[PHY_INTERFACE_MODE_RXAUI]		= "rxaui",
 	[PHY_INTERFACE_MODE_SFI]		= "sfi",
+	[PHY_INTERFACE_MODE_INTERNAL]		= "internal",
 	[PHY_INTERFACE_MODE_NONE]		= "",
 };