public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] drivers: net: vsc9953: Fix bug when PVID is shown for disabled ports only
@ 2016-03-14 11:46 Codrin Ciubotariu
  2016-03-14 11:46 ` [U-Boot] [PATCH] powerpc: t1040qds: Use generic ethsw commands Codrin Ciubotariu
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Codrin Ciubotariu @ 2016-03-14 11:46 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@nxp.com>
---
 drivers/net/vsc9953.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	}
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-04-08 22:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-14 11:46 [U-Boot] [PATCH] drivers: net: vsc9953: Fix bug when PVID is shown for disabled ports only Codrin Ciubotariu
2016-03-14 11:46 ` [U-Boot] [PATCH] powerpc: t1040qds: Use generic ethsw commands Codrin Ciubotariu
2016-03-25 21:22   ` Joe Hershberger
2016-04-08 22:45   ` York Sun
2016-03-14 11:46 ` [U-Boot] [PATCH] drivers: net: vsc9953: Do not configure disabled ports Codrin Ciubotariu
2016-03-25 21:19   ` Joe Hershberger
2016-04-06 17:23   ` York Sun
2016-03-25 21:17 ` [U-Boot] [PATCH] drivers: net: vsc9953: Fix bug when PVID is shown for disabled ports only Joe Hershberger
2016-04-06 17:24 ` York Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox