Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203442
b: refs/heads/master
c: cc7b86c
h: refs/heads/master
v: v3
  • Loading branch information
Karl Hiramoto authored and David S. Miller committed Jul 9, 2010
1 parent cc9ba77 commit 84a3ba4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23f89f0488fa0fc843503fa07768d0d3edde3c44
refs/heads/master: cc7b86c1a8f207c8aa77aad6941475d8294a83c4
13 changes: 10 additions & 3 deletions trunk/drivers/usb/atm/ueagle-atm.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,13 @@ MODULE_PARM_DESC(annex,
sc->usbatm->atm_dev->type = val; \
} while (0)

#define UPDATE_ATM_SIGNAL(val) \
do { \
if (sc->usbatm->atm_dev) \
atm_dev_signal_change(sc->usbatm->atm_dev, val); \
} while (0)


/* Firmware loading */
#define LOAD_INTERNAL 0xA0
#define F8051_USBCS 0x7f92
Expand Down Expand Up @@ -1359,7 +1366,7 @@ static int uea_stat_e1(struct uea_softc *sc)
/* always update it as atm layer could not be init when we switch to
* operational state
*/
UPDATE_ATM_STAT(signal, ATM_PHY_SIG_FOUND);
UPDATE_ATM_SIGNAL(ATM_PHY_SIG_FOUND);

/* wake up processes waiting for synchronization */
wake_up(&sc->sync_q);
Expand Down Expand Up @@ -1498,7 +1505,7 @@ static int uea_stat_e4(struct uea_softc *sc)
/* always update it as atm layer could not be init when we switch to
* operational state
*/
UPDATE_ATM_STAT(signal, ATM_PHY_SIG_FOUND);
UPDATE_ATM_SIGNAL(ATM_PHY_SIG_FOUND);

/* wake up processes waiting for synchronization */
wake_up(&sc->sync_q);
Expand Down Expand Up @@ -1825,7 +1832,7 @@ static int uea_start_reset(struct uea_softc *sc)
* So we will failed to wait Ready CMV.
*/
sc->cmv_ack = 0;
UPDATE_ATM_STAT(signal, ATM_PHY_SIG_LOST);
UPDATE_ATM_SIGNAL(ATM_PHY_SIG_LOST);

/* reset statistics */
memset(&sc->stats, 0, sizeof(struct uea_stats));
Expand Down

0 comments on commit 84a3ba4

Please sign in to comment.