diff mbox

[OpenWrt-Devel] mvsw6171: note support for 88E6172 switches

Message ID 1419016901-1512-1-git-send-email-leitec@staticky.com
State Accepted
Headers show

Commit Message

Claudio Leite Dec. 19, 2014, 7:21 p.m. UTC
The '6171 and '6172 are similar enough to work
without any changes to the code.

Signed-off-by: Claudio Leite <leitec@staticky.com>
---
 target/linux/generic/files/drivers/net/phy/mvsw6171.h    | 2 +-
 target/linux/generic/patches-3.14/733-phy_mvsw6171.patch | 2 +-
 target/linux/generic/patches-3.18/733-phy_mvsw6171.patch | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Comments

Nikita Nazarenko Dec. 22, 2014, 9:48 a.m. UTC | #1
Hello Claudio.

6172 not so similar to 6171 as it may seem. 6172 more similar to 
6352/6240/6176 - they described in one functional specification datasheet.

For example - any record in VTU _require_ correct STU record. 6171 
driver doesn't care about stu. Without it 802.1q vlans doesn't work.

I can send my 6172/6176 driver for 3.10 kernel, but for now it require 
little work for prepare to merge it.

Best regards
Nazarenko Nikita

On 19.12.2014 22:21, Claudio Leite wrote:
> The '6171 and '6172 are similar enough to work
> without any changes to the code.
>
> Signed-off-by: Claudio Leite <leitec@staticky.com>
> ---
>   target/linux/generic/files/drivers/net/phy/mvsw6171.h    | 2 +-
>   target/linux/generic/patches-3.14/733-phy_mvsw6171.patch | 2 +-
>   target/linux/generic/patches-3.18/733-phy_mvsw6171.patch | 2 +-
>   3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/target/linux/generic/files/drivers/net/phy/mvsw6171.h b/target/linux/generic/files/drivers/net/phy/mvsw6171.h
> index 2b9ef97..38442c1 100644
> --- a/target/linux/generic/files/drivers/net/phy/mvsw6171.h
> +++ b/target/linux/generic/files/drivers/net/phy/mvsw6171.h
> @@ -192,7 +192,7 @@ enum {
>   
>   #define MV_IDENT_MASK			0xffc0
>   #define MV_IDENT_VALUE			0x1700
> -#define MV_IDENT_STR			"MV88E6171"
> +#define MV_IDENT_STR			"MV88E617x"
>   
>   #define MV_PVID_MASK			0x0fff
>   
> diff --git a/target/linux/generic/patches-3.14/733-phy_mvsw6171.patch b/target/linux/generic/patches-3.14/733-phy_mvsw6171.patch
> index 991828d..b6fbb1c 100644
> --- a/target/linux/generic/patches-3.14/733-phy_mvsw6171.patch
> +++ b/target/linux/generic/patches-3.14/733-phy_mvsw6171.patch
> @@ -5,7 +5,7 @@
>    	select ETHERNET_PACKET_MANGLE
>    
>   +config MVSW6171_PHY
> -+	tristate "Driver for Marvell 88E6171 switches"
> ++	tristate "Driver for Marvell 88E6171/6172 switches"
>   +	select SWCONFIG
>   +
>    config IP17XX_PHY
> diff --git a/target/linux/generic/patches-3.18/733-phy_mvsw6171.patch b/target/linux/generic/patches-3.18/733-phy_mvsw6171.patch
> index 2911647..0df13fe 100644
> --- a/target/linux/generic/patches-3.18/733-phy_mvsw6171.patch
> +++ b/target/linux/generic/patches-3.18/733-phy_mvsw6171.patch
> @@ -5,7 +5,7 @@
>    	select ETHERNET_PACKET_MANGLE
>    
>   +config MVSW6171_PHY
> -+	tristate "Driver for Marvell 88E6171 switches"
> ++	tristate "Driver for Marvell 88E6171/6172 switches"
>   +	select SWCONFIG
>   +
>    config IP17XX_PHY
diff mbox

Patch

diff --git a/target/linux/generic/files/drivers/net/phy/mvsw6171.h b/target/linux/generic/files/drivers/net/phy/mvsw6171.h
index 2b9ef97..38442c1 100644
--- a/target/linux/generic/files/drivers/net/phy/mvsw6171.h
+++ b/target/linux/generic/files/drivers/net/phy/mvsw6171.h
@@ -192,7 +192,7 @@  enum {
 
 #define MV_IDENT_MASK			0xffc0
 #define MV_IDENT_VALUE			0x1700
-#define MV_IDENT_STR			"MV88E6171"
+#define MV_IDENT_STR			"MV88E617x"
 
 #define MV_PVID_MASK			0x0fff
 
diff --git a/target/linux/generic/patches-3.14/733-phy_mvsw6171.patch b/target/linux/generic/patches-3.14/733-phy_mvsw6171.patch
index 991828d..b6fbb1c 100644
--- a/target/linux/generic/patches-3.14/733-phy_mvsw6171.patch
+++ b/target/linux/generic/patches-3.14/733-phy_mvsw6171.patch
@@ -5,7 +5,7 @@ 
  	select ETHERNET_PACKET_MANGLE
  
 +config MVSW6171_PHY
-+	tristate "Driver for Marvell 88E6171 switches"
++	tristate "Driver for Marvell 88E6171/6172 switches"
 +	select SWCONFIG
 +
  config IP17XX_PHY
diff --git a/target/linux/generic/patches-3.18/733-phy_mvsw6171.patch b/target/linux/generic/patches-3.18/733-phy_mvsw6171.patch
index 2911647..0df13fe 100644
--- a/target/linux/generic/patches-3.18/733-phy_mvsw6171.patch
+++ b/target/linux/generic/patches-3.18/733-phy_mvsw6171.patch
@@ -5,7 +5,7 @@ 
  	select ETHERNET_PACKET_MANGLE
  
 +config MVSW6171_PHY
-+	tristate "Driver for Marvell 88E6171 switches"
++	tristate "Driver for Marvell 88E6171/6172 switches"
 +	select SWCONFIG
 +
  config IP17XX_PHY