diff mbox

[U-Boot] drivers: net: vsc9953: Fix bug when PVID is shown for disabled ports only

Message ID 1457956012-28175-1-git-send-email-codrin.ciubotariu@nxp.com
State Accepted
Commit 9101a68c1577e875c350b5095effc8db1266b515
Delegated to: York Sun
Headers show

Commit Message

Codrin Ciubotariu March 14, 2016, 11:46 a.m. UTC
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@nxp.com>
---
 drivers/net/vsc9953.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Joe Hershberger March 25, 2016, 9:17 p.m. UTC | #1
On Mon, Mar 14, 2016 at 6:46 AM, Codrin Ciubotariu
<codrin.ciubotariu@nxp.com> wrote:
> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@nxp.com>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
York Sun April 6, 2016, 5:24 p.m. UTC | #2
On 03/14/2016 04:47 AM, Codrin Ciubotariu wrote:
> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@nxp.com>
> ---
>  drivers/net/vsc9953.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied to u-boot-fsl-qoriq master. Awaiting upstream.
Thanks.

York
diff mbox

Patch

diff --git a/drivers/net/vsc9953.c b/drivers/net/vsc9953.c
index 44afe14..ef1435f 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;
 	}