Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66927
b: refs/heads/master
c: 59579da
h: refs/heads/master
i:
  66925: 761b385
  66923: 86f6fa0
  66919: ae2216a
  66911: f36fe6a
v: v3
  • Loading branch information
Klaus D. Wacker authored and David S. Miller committed Oct 10, 2007
1 parent 0d57e4a commit 58f0d1a
Show file tree
Hide file tree
Showing 3 changed files with 10 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: d8fae9c2f2642ffe411424ed2e4677f959168152
refs/heads/master: 59579da329b22bcddc5da0c22c61d6dc1f9eb96a
11 changes: 8 additions & 3 deletions trunk/drivers/s390/net/lcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1400,11 +1400,14 @@ lcs_irq(struct ccw_device *cdev, unsigned long intparm, struct irb *irb)
PRINT_WARN("check on device %s, dstat=0x%X, cstat=0x%X \n",
cdev->dev.bus_id, dstat, cstat);
if (rc) {
lcs_schedule_recovery(card);
wake_up(&card->wait_q);
return;
channel->state = LCS_CH_STATE_ERROR;
}
}
if (channel->state == LCS_CH_STATE_ERROR) {
lcs_schedule_recovery(card);
wake_up(&card->wait_q);
return;
}
/* How far in the ccw chain have we processed? */
if ((channel->state != LCS_CH_STATE_INIT) &&
(irb->scsw.fctl & SCSW_FCTL_START_FUNC)) {
Expand Down Expand Up @@ -1708,6 +1711,8 @@ lcs_stopcard(struct lcs_card *card)

if (card->read.state != LCS_CH_STATE_STOPPED &&
card->write.state != LCS_CH_STATE_STOPPED &&
card->read.state != LCS_CH_STATE_ERROR &&
card->write.state != LCS_CH_STATE_ERROR &&
card->state == DEV_STATE_UP) {
lcs_clear_multicast_list(card);
rc = lcs_send_stoplan(card,LCS_INITIATOR_TCPIP);
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/s390/net/lcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ enum lcs_channel_states {
LCS_CH_STATE_RUNNING,
LCS_CH_STATE_SUSPENDED,
LCS_CH_STATE_CLEARED,
LCS_CH_STATE_ERROR,
};

/**
Expand Down

0 comments on commit 58f0d1a

Please sign in to comment.