]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers: net: vsc9953: Fix bug when PVID is shown for disabled ports only
authorCodrin Ciubotariu <codrin.ciubotariu@nxp.com>
Mon, 14 Mar 2016 11:46:50 +0000 (13:46 +0200)
committerYork Sun <york.sun@nxp.com>
Wed, 6 Apr 2016 15:34:44 +0000 (08:34 -0700)
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>
drivers/net/vsc9953.c

index 4b3b8119677814153abcd76427eff6ad703ed089..2388438d10160fc84aca9d9dcbd2e2ec15ae2709 100644 (file)
@@ -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;
        }