laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/dahdi-linux/+/36694?usp=email )

Change subject: icE1usb: Report BLUE alarm when receiving AIS
......................................................................

icE1usb: Report BLUE alarm when receiving AIS

Change-Id: I75ae15d3b8e13ca6b82a20209ee9ca163a729020
Signed-off-by: Sylvain Munaut <[email protected]>
---
M drivers/dahdi/icE1usb/icE1usb.c
1 file changed, 13 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved




diff --git a/drivers/dahdi/icE1usb/icE1usb.c b/drivers/dahdi/icE1usb/icE1usb.c
index 1656b3a..867b4f2 100644
--- a/drivers/dahdi/icE1usb/icE1usb.c
+++ b/drivers/dahdi/icE1usb/icE1usb.c
@@ -591,7 +591,7 @@
        memcpy(&ieu->last_err, err, sizeof(ieu->last_err));
 }

-#define ALL_RY_ALARMS (DAHDI_ALARM_RED | DAHDI_ALARM_YELLOW | \
+#define ALL_RY_ALARMS (DAHDI_ALARM_RED | DAHDI_ALARM_YELLOW | DAHDI_ALARM_BLUE 
| \
                       DAHDI_ALARM_LFA | DAHDI_ALARM_LMFA | DAHDI_ALARM_LOS)

 /* interrupt EP completes: Process and resubmit */
@@ -621,6 +621,8 @@
                                alarms |= DAHDI_ALARM_RED | DAHDI_ALARM_LFA | 
DAHDI_ALARM_LMFA;
                        if (err->flags & ICE1USB_ERR_F_RAI)
                                alarms |= DAHDI_ALARM_YELLOW;
+                       if (err->flags & ICE1USB_ERR_F_AIS)
+                               alarms |= DAHDI_ALARM_BLUE;
                        ieu->dahdi.span.alarms &= ~ALL_RY_ALARMS;
                        ieu->dahdi.span.alarms |= alarms;
                        dahdi_alarm_notify(&ieu->dahdi.span);

--
To view, visit https://gerrit.osmocom.org/c/dahdi-linux/+/36694?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: dahdi-linux
Gerrit-Branch: master
Gerrit-Change-Id: I75ae15d3b8e13ca6b82a20209ee9ca163a729020
Gerrit-Change-Number: 36694
Gerrit-PatchSet: 2
Gerrit-Owner: tnt <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: tnt <[email protected]>
Gerrit-MessageType: merged

Reply via email to