summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorCodrin Ciubotariu <codrin.ciubotariu@nxp.com>2016-03-14 13:46:50 +0200
committerYork Sun <york.sun@nxp.com>2016-04-06 08:34:44 -0700
commit9101a68c1577e875c350b5095effc8db1266b515 (patch)
tree1c7d08b5165d2df0890a971729a46fbbf8177989 /drivers/net
parent02c00f265da0d85e81fb74f6aabfc4295d49ff56 (diff)
downloadblackbird-obmc-uboot-9101a68c1577e875c350b5095effc8db1266b515.tar.gz
blackbird-obmc-uboot-9101a68c1577e875c350b5095effc8db1266b515.zip
drivers: net: vsc9953: Fix bug when PVID is shown for disabled ports only
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/vsc9953.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vsc9953.c b/drivers/net/vsc9953.c
index 4b3b811967..2388438d10 100644
--- a/drivers/net/vsc9953.c
+++ b/drivers/net/vsc9953.c
@@ -335,7 +335,7 @@ static int vsc9953_port_vlan_pvid_get(int port_nr, int *pvid)
struct vsc9953_analyzer *l2ana_reg;
/* Administrative down */
- if (vsc9953_l2sw.port[port_nr].enabled) {
+ if (!vsc9953_l2sw.port[port_nr].enabled) {
printf("Port %d is administrative down\n", port_nr);
return -1;
}
OpenPOWER on IntegriCloud