Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1356547 > unrolled thread

[PATCH 2/2] mISDN: Support DR6 indication in mISDNipac driver

Started by"Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
First post2016-03-13 00:20 +0100
Last post2016-03-14 21:00 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 2/2] mISDN: Support DR6 indication in mISDNipac driver "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> - 2016-03-13 00:20 +0100
    Re: [PATCH 2/2] mISDN: Support DR6 indication in mISDNipac driver isdn@linux-pingi.de - 2016-03-13 04:20 +0100
    Re: [PATCH 2/2] mISDN: Support DR6 indication in mISDNipac driver David Miller <davem@davemloft.net> - 2016-03-14 21:00 +0100

#1356547 — [PATCH 2/2] mISDN: Support DR6 indication in mISDNipac driver

From"Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
Date2016-03-13 00:20 +0100
Subject[PATCH 2/2] mISDN: Support DR6 indication in mISDNipac driver
Message-ID<rc0Zb-56K-7@gated-at.bofh.it>
According to figure 39 in PEB3086 data sheet, version 1.4 this indication
replaces DR when layer 1 transition source state is F6.

This fixes mISDN layer 1 getting stuck in F6 state in TE mode on
Dialogic Diva 2.02 card (and possibly others) when NT deactivates it.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
---
 drivers/isdn/hardware/mISDN/ipac.h      | 1 +
 drivers/isdn/hardware/mISDN/mISDNipac.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/drivers/isdn/hardware/mISDN/ipac.h b/drivers/isdn/hardware/mISDN/ipac.h
index 76aa6f8f298e..720ee72aab6a 100644
--- a/drivers/isdn/hardware/mISDN/ipac.h
+++ b/drivers/isdn/hardware/mISDN/ipac.h
@@ -217,6 +217,7 @@ struct ipac_hw {
 #define ISAC_IND_SD		0x2
 #define ISAC_IND_DIS		0x3
 #define ISAC_IND_RSY		0x4
+#define ISAC_IND_DR6		0x5
 #define ISAC_IND_EI		0x6
 #define ISAC_IND_PU		0x7
 #define ISAC_IND_ARD		0x8
diff --git a/drivers/isdn/hardware/mISDN/mISDNipac.c b/drivers/isdn/hardware/mISDN/mISDNipac.c
index cb428b9ee441..aa9b6c3cadc1 100644
--- a/drivers/isdn/hardware/mISDN/mISDNipac.c
+++ b/drivers/isdn/hardware/mISDN/mISDNipac.c
@@ -80,6 +80,7 @@ isac_ph_state_bh(struct dchannel *dch)
 		l1_event(dch->l1, HW_DEACT_CNF);
 		break;
 	case ISAC_IND_DR:
+	case ISAC_IND_DR6:
 		dch->state = 3;
 		l1_event(dch->l1, HW_DEACT_IND);
 		break;
@@ -660,6 +661,7 @@ isac_l1cmd(struct dchannel *dch, u32 cmd)
 		spin_lock_irqsave(isac->hwlock, flags);
 		if ((isac->state == ISAC_IND_EI) ||
 		    (isac->state == ISAC_IND_DR) ||
+		    (isac->state == ISAC_IND_DR6) ||
 		    (isac->state == ISAC_IND_RS))
 			ph_command(isac, ISAC_CMD_TIM);
 		else

[toc] | [next] | [standalone]


#1356593

Fromisdn@linux-pingi.de
Date2016-03-13 04:20 +0100
Message-ID<rc4Jr-7WX-3@gated-at.bofh.it>
In reply to#1356547
Acked-by: Karsten Keil <keil@b1-systems.de>
Am 13.03.2016 um 00:19 schrieb Maciej S. Szmigiero:
> According to figure 39 in PEB3086 data sheet, version 1.4 this indication
> replaces DR when layer 1 transition source state is F6.
> 
> This fixes mISDN layer 1 getting stuck in F6 state in TE mode on
> Dialogic Diva 2.02 card (and possibly others) when NT deactivates it.
> 
> Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
> ---
>  drivers/isdn/hardware/mISDN/ipac.h      | 1 +
>  drivers/isdn/hardware/mISDN/mISDNipac.c | 2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/drivers/isdn/hardware/mISDN/ipac.h b/drivers/isdn/hardware/mISDN/ipac.h
> index 76aa6f8f298e..720ee72aab6a 100644
> --- a/drivers/isdn/hardware/mISDN/ipac.h
> +++ b/drivers/isdn/hardware/mISDN/ipac.h
> @@ -217,6 +217,7 @@ struct ipac_hw {
>  #define ISAC_IND_SD		0x2
>  #define ISAC_IND_DIS		0x3
>  #define ISAC_IND_RSY		0x4
> +#define ISAC_IND_DR6		0x5
>  #define ISAC_IND_EI		0x6
>  #define ISAC_IND_PU		0x7
>  #define ISAC_IND_ARD		0x8
> diff --git a/drivers/isdn/hardware/mISDN/mISDNipac.c b/drivers/isdn/hardware/mISDN/mISDNipac.c
> index cb428b9ee441..aa9b6c3cadc1 100644
> --- a/drivers/isdn/hardware/mISDN/mISDNipac.c
> +++ b/drivers/isdn/hardware/mISDN/mISDNipac.c
> @@ -80,6 +80,7 @@ isac_ph_state_bh(struct dchannel *dch)
>  		l1_event(dch->l1, HW_DEACT_CNF);
>  		break;
>  	case ISAC_IND_DR:
> +	case ISAC_IND_DR6:
>  		dch->state = 3;
>  		l1_event(dch->l1, HW_DEACT_IND);
>  		break;
> @@ -660,6 +661,7 @@ isac_l1cmd(struct dchannel *dch, u32 cmd)
>  		spin_lock_irqsave(isac->hwlock, flags);
>  		if ((isac->state == ISAC_IND_EI) ||
>  		    (isac->state == ISAC_IND_DR) ||
> +		    (isac->state == ISAC_IND_DR6) ||
>  		    (isac->state == ISAC_IND_RS))
>  			ph_command(isac, ISAC_CMD_TIM);
>  		else
> 
> 

[toc] | [prev] | [next] | [standalone]


#1357587

FromDavid Miller <davem@davemloft.net>
Date2016-03-14 21:00 +0100
Message-ID<rcGOL-8hS-27@gated-at.bofh.it>
In reply to#1356547
From: "Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
Date: Sun, 13 Mar 2016 00:19:07 +0100

> According to figure 39 in PEB3086 data sheet, version 1.4 this indication
> replaces DR when layer 1 transition source state is F6.
> 
> This fixes mISDN layer 1 getting stuck in F6 state in TE mode on
> Dialogic Diva 2.02 card (and possibly others) when NT deactivates it.
> 
> Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>

Applied.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web