[PATCH v3 6/6] net/wan/fsl_ucc_hdlc: tx timeout handler

2018-09-03 Thread David Gounaris
Added tx timeout handler. This helps when troubleshooting. Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 999d93fa54f7..124fea454ac4 100644 --- a

[PATCH v3 5/6] net/wan/fsl_ucc_hdlc: GUMR for non tsa mode

2018-09-03 Thread David Gounaris
The following bits in the GUMR is changed for non tsa mode: CDS, CTSP and CTSS are set to zero. When set, there is no tx interrupts from the controller. Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wan

[PATCH v3 1/6] net/wan/fsl_ucc_hdlc: allow ucc index up to 7

2018-09-03 Thread David Gounaris
There is a need to allow higher indexes to be able to support MPC83xx platforms. (UCC1-UCC8) Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index

[PATCH v3 0/6] Ethernet over hdlc

2018-09-03 Thread David Gounaris
not know about scripts/checkpatch.pl. David Gounaris (6): net/wan/fsl_ucc_hdlc: allow ucc index up to 7 net/wan/fsl_ucc_hdlc: allow PARITY_CRC16_PR0_CCITT parity net/wan/fsl_ucc_hdlc: Adding ARPHRD_ETHER net/wan/fsl_ucc_hdlc: hmask net/wan/fsl_ucc_hdlc: GUMR for non tsa mode net/wan

[PATCH v3 3/6] net/wan/fsl_ucc_hdlc: Adding ARPHRD_ETHER

2018-09-03 Thread David Gounaris
This patch is to avoid discarding ethernet packets when using HDLC_ETH protocol. Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 5619e2c2e02d

[PATCH v3 4/6] net/wan/fsl_ucc_hdlc: hmask

2018-09-03 Thread David Gounaris
Ability to set hmask in the device-tree, which can be used to change address filtering of packets. Signed-off-by: David Gounaris --- Documentation/devicetree/bindings/soc/fsl/cpm_qe/network.txt | 6 ++ drivers/net/wan/fsl_ucc_hdlc.c | 5 - drivers/net/wan

[PATCH v3 2/6] net/wan/fsl_ucc_hdlc: allow PARITY_CRC16_PR0_CCITT parity

2018-09-03 Thread David Gounaris
Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 485764c537d9..5619e2c2e02d 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c

[PATCH v2 5/6] net/wan/fsl_ucc_hdlc: GUMR for non tsa mode

2018-08-29 Thread David Gounaris
The following bits in the GUMR is changed for non tsa mode: CDS, CTSP and CTSS are set to zero. When set, there is no tx interrupts from the controller. Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wan

[PATCH v2 6/6] net/wan/fsl_ucc_hdlc: tx timeout handler

2018-08-29 Thread David Gounaris
Added tx timerout handler. This helps when troubleshooting. Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 248f1f5bcd04..629ef5049d27 100644 --- a

[PATCH v2 4/6] net/wan/fsl_ucc_hdlc: hmask

2018-08-29 Thread David Gounaris
Ability to set hmask in the device-tree, which can be used to change address filtering of packets. Signed-off-by: David Gounaris --- Documentation/devicetree/bindings/soc/fsl/cpm_qe/network.txt | 6 ++ drivers/net/wan/fsl_ucc_hdlc.c | 5 - drivers/net/wan

[PATCH v2 3/6] net/wan/fsl_ucc_hdlc: Adding ARPHRD_ETHER

2018-08-29 Thread David Gounaris
This patch is to avoid discarding ethernet packets when using HDLC_ETH protocol. Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index c8e526bf1130

[PATCH v2 2/6] net/wan/fsl_ucc_hdlc: allow PARITY_CRC16_PR0_CCITT parity

2018-08-29 Thread David Gounaris
Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 5cf6dcba039c..c8e526bf1130 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net

[PATCH v2 0/6] Ethernet over hdlc

2018-08-29 Thread David Gounaris
regarding dt. Best Regards David Gounaris David Gounaris (6): net/wan/fsl_ucc_hdlc: allow ucc index up to 7 net/wan/fsl_ucc_hdlc: allow PARITY_CRC16_PR0_CCITT parity net/wan/fsl_ucc_hdlc: Adding ARPHRD_ETHER net/wan/fsl_ucc_hdlc: hmask net/wan/fsl_ucc_hdlc: GUMR for non tsa mode net/wan

[PATCH v2 1/6] net/wan/fsl_ucc_hdlc: allow ucc index up to 7

2018-08-29 Thread David Gounaris
There is a need to allow higher indexes to be able to support MPC83xx platforms. (UCC1-UCC8) Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index

[PATCH 6/6] net/wan/fsl_ucc_hdlc: tx timeout handler

2018-08-28 Thread David Gounaris
Added tx timerout handler. This helps when troubleshooting. Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index e6154a6547e6..30f416bace2c 100644 --- a

[PATCH 2/6] net/wan/fsl_ucc_hdlc: allow PARITY_CRC16_PR0_CCITT parity

2018-08-28 Thread David Gounaris
Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 3c0e0a1d19ba..963b3b5ae15e 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net

[PATCH 1/6] net/wan/fsl_ucc_hdlc: allow ucc index up to 4

2018-08-28 Thread David Gounaris
There is a need to allow higher indexes to be able to support MPC83xx platforms. (UCC1-UCC5) Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index

[PATCH 3/6] net/wan/fsl_ucc_hdlc: Adding ARPHRD_ETHER

2018-08-28 Thread David Gounaris
This was done to avoid discarding ethernet packets when using HDLC_ETH protocol. Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 963b3b5ae15e

[PATCH 4/6] net/wan/fsl_ucc_hdlc: default hmask value

2018-08-28 Thread David Gounaris
Set default HMASK to 0x to use promiscuous mode in the hdlc controller. Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.h b/drivers/net/wan/fsl_ucc_hdlc.h index c21134c1f180

[PATCH 5/6] net/wan/fsl_ucc_hdlc: GUMR for non tsa mode

2018-08-28 Thread David Gounaris
The following bits in the GUMR is changed for non tsa mode: CDS, CTSP and CTSS are set to zero. When set, there is no tx interrupts from the controller. Signed-off-by: David Gounaris --- drivers/net/wan/fsl_ucc_hdlc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wan

[PATCH 0/6] Ethernet over hdlc

2018-08-28 Thread David Gounaris
Gounaris David Gounaris (6): net/wan/fsl_ucc_hdlc: allow ucc index up to 4 net/wan/fsl_ucc_hdlc: allow PARITY_CRC16_PR0_CCITT parity net/wan/fsl_ucc_hdlc: Adding ARPHRD_ETHER net/wan/fsl_ucc_hdlc: default hmask value net/wan/fsl_ucc_hdlc: GUMR for non tsa mode net/wan/fsl_ucc_hdlc: tx timeout