diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-05-26 22:01:26 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-05-26 22:01:26 -0400 |
commit | 983f27d37d4fc72c252835cb2ee3103b360735a6 (patch) | |
tree | 8a7d3c3e251db494e285896debeb906473178a3e /drivers/s390/net/ctcmain.c | |
parent | de1e938e54deba5b093a3074dfafd0d11afacbe1 (diff) | |
parent | e82b0f2cc21be905e504573483fa9542b15df96f (diff) |
Merge branch 'upstream-fixes' into upstream
Conflicts:
drivers/s390/net/ctctty.c
Diffstat (limited to 'drivers/s390/net/ctcmain.c')
-rw-r--r-- | drivers/s390/net/ctcmain.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/s390/net/ctcmain.c b/drivers/s390/net/ctcmain.c index e2ccaf55961c..20c8eb16f464 100644 --- a/drivers/s390/net/ctcmain.c +++ b/drivers/s390/net/ctcmain.c | |||
@@ -1481,13 +1481,13 @@ ch_action_iofatal(fsm_instance * fi, int event, void *arg) | |||
1481 | } | 1481 | } |
1482 | } | 1482 | } |
1483 | 1483 | ||
1484 | static void | 1484 | static void |
1485 | ch_action_reinit(fsm_instance *fi, int event, void *arg) | 1485 | ch_action_reinit(fsm_instance *fi, int event, void *arg) |
1486 | { | 1486 | { |
1487 | struct channel *ch = (struct channel *)arg; | 1487 | struct channel *ch = (struct channel *)arg; |
1488 | struct net_device *dev = ch->netdev; | 1488 | struct net_device *dev = ch->netdev; |
1489 | struct ctc_priv *privptr = dev->priv; | 1489 | struct ctc_priv *privptr = dev->priv; |
1490 | 1490 | ||
1491 | DBF_TEXT(trace, 4, __FUNCTION__); | 1491 | DBF_TEXT(trace, 4, __FUNCTION__); |
1492 | ch_action_iofatal(fi, event, arg); | 1492 | ch_action_iofatal(fi, event, arg); |
1493 | fsm_addtimer(&privptr->restart_timer, 1000, DEV_EVENT_RESTART, dev); | 1493 | fsm_addtimer(&privptr->restart_timer, 1000, DEV_EVENT_RESTART, dev); |
@@ -1619,7 +1619,7 @@ less_than(char *id1, char *id2) | |||
1619 | } | 1619 | } |
1620 | dev1 = simple_strtoul(id1, &id1, 16); | 1620 | dev1 = simple_strtoul(id1, &id1, 16); |
1621 | dev2 = simple_strtoul(id2, &id2, 16); | 1621 | dev2 = simple_strtoul(id2, &id2, 16); |
1622 | 1622 | ||
1623 | return (dev1 < dev2); | 1623 | return (dev1 < dev2); |
1624 | } | 1624 | } |
1625 | 1625 | ||
@@ -1890,7 +1890,7 @@ ctc_irq_handler(struct ccw_device *cdev, unsigned long intparm, struct irb *irb) | |||
1890 | irb->scsw.dstat); | 1890 | irb->scsw.dstat); |
1891 | return; | 1891 | return; |
1892 | } | 1892 | } |
1893 | 1893 | ||
1894 | priv = ((struct ccwgroup_device *)cdev->dev.driver_data) | 1894 | priv = ((struct ccwgroup_device *)cdev->dev.driver_data) |
1895 | ->dev.driver_data; | 1895 | ->dev.driver_data; |
1896 | 1896 | ||
@@ -1904,7 +1904,7 @@ ctc_irq_handler(struct ccw_device *cdev, unsigned long intparm, struct irb *irb) | |||
1904 | "device %s\n", cdev->dev.bus_id); | 1904 | "device %s\n", cdev->dev.bus_id); |
1905 | return; | 1905 | return; |
1906 | } | 1906 | } |
1907 | 1907 | ||
1908 | dev = (struct net_device *) (ch->netdev); | 1908 | dev = (struct net_device *) (ch->netdev); |
1909 | if (dev == NULL) { | 1909 | if (dev == NULL) { |
1910 | ctc_pr_crit("ctc: ctc_irq_handler dev=NULL bus_id=%s, ch=0x%p\n", | 1910 | ctc_pr_crit("ctc: ctc_irq_handler dev=NULL bus_id=%s, ch=0x%p\n", |
@@ -2003,12 +2003,12 @@ dev_action_stop(fsm_instance * fi, int event, void *arg) | |||
2003 | fsm_event(ch->fsm, CH_EVENT_STOP, ch); | 2003 | fsm_event(ch->fsm, CH_EVENT_STOP, ch); |
2004 | } | 2004 | } |
2005 | } | 2005 | } |
2006 | static void | 2006 | static void |
2007 | dev_action_restart(fsm_instance *fi, int event, void *arg) | 2007 | dev_action_restart(fsm_instance *fi, int event, void *arg) |
2008 | { | 2008 | { |
2009 | struct net_device *dev = (struct net_device *)arg; | 2009 | struct net_device *dev = (struct net_device *)arg; |
2010 | struct ctc_priv *privptr = dev->priv; | 2010 | struct ctc_priv *privptr = dev->priv; |
2011 | 2011 | ||
2012 | DBF_TEXT(trace, 3, __FUNCTION__); | 2012 | DBF_TEXT(trace, 3, __FUNCTION__); |
2013 | ctc_pr_debug("%s: Restarting\n", dev->name); | 2013 | ctc_pr_debug("%s: Restarting\n", dev->name); |
2014 | dev_action_stop(fi, event, arg); | 2014 | dev_action_stop(fi, event, arg); |
@@ -2179,7 +2179,7 @@ transmit_skb(struct channel *ch, struct sk_buff *skb) | |||
2179 | 2179 | ||
2180 | DBF_TEXT(trace, 5, __FUNCTION__); | 2180 | DBF_TEXT(trace, 5, __FUNCTION__); |
2181 | /* we need to acquire the lock for testing the state | 2181 | /* we need to acquire the lock for testing the state |
2182 | * otherwise we can have an IRQ changing the state to | 2182 | * otherwise we can have an IRQ changing the state to |
2183 | * TXIDLE after the test but before acquiring the lock. | 2183 | * TXIDLE after the test but before acquiring the lock. |
2184 | */ | 2184 | */ |
2185 | spin_lock_irqsave(&ch->collect_lock, saveflags); | 2185 | spin_lock_irqsave(&ch->collect_lock, saveflags); |
@@ -2379,7 +2379,7 @@ ctc_tx(struct sk_buff *skb, struct net_device * dev) | |||
2379 | 2379 | ||
2380 | /** | 2380 | /** |
2381 | * If channels are not running, try to restart them | 2381 | * If channels are not running, try to restart them |
2382 | * and throw away packet. | 2382 | * and throw away packet. |
2383 | */ | 2383 | */ |
2384 | if (fsm_getstate(privptr->fsm) != DEV_STATE_RUNNING) { | 2384 | if (fsm_getstate(privptr->fsm) != DEV_STATE_RUNNING) { |
2385 | fsm_event(privptr->fsm, DEV_EVENT_START, dev); | 2385 | fsm_event(privptr->fsm, DEV_EVENT_START, dev); |
@@ -2717,7 +2717,7 @@ ctc_remove_files(struct device *dev) | |||
2717 | /** | 2717 | /** |
2718 | * Add ctc specific attributes. | 2718 | * Add ctc specific attributes. |
2719 | * Add ctc private data. | 2719 | * Add ctc private data. |
2720 | * | 2720 | * |
2721 | * @param cgdev pointer to ccwgroup_device just added | 2721 | * @param cgdev pointer to ccwgroup_device just added |
2722 | * | 2722 | * |
2723 | * @returns 0 on success, !0 on failure. | 2723 | * @returns 0 on success, !0 on failure. |
@@ -2848,7 +2848,7 @@ ctc_new_device(struct ccwgroup_device *cgdev) | |||
2848 | DBF_TEXT(setup, 3, buffer); | 2848 | DBF_TEXT(setup, 3, buffer); |
2849 | 2849 | ||
2850 | type = get_channel_type(&cgdev->cdev[0]->id); | 2850 | type = get_channel_type(&cgdev->cdev[0]->id); |
2851 | 2851 | ||
2852 | snprintf(read_id, CTC_ID_SIZE, "ch-%s", cgdev->cdev[0]->dev.bus_id); | 2852 | snprintf(read_id, CTC_ID_SIZE, "ch-%s", cgdev->cdev[0]->dev.bus_id); |
2853 | snprintf(write_id, CTC_ID_SIZE, "ch-%s", cgdev->cdev[1]->dev.bus_id); | 2853 | snprintf(write_id, CTC_ID_SIZE, "ch-%s", cgdev->cdev[1]->dev.bus_id); |
2854 | 2854 | ||
@@ -2883,7 +2883,7 @@ ctc_new_device(struct ccwgroup_device *cgdev) | |||
2883 | channel_get(type, direction == READ ? read_id : write_id, | 2883 | channel_get(type, direction == READ ? read_id : write_id, |
2884 | direction); | 2884 | direction); |
2885 | if (privptr->channel[direction] == NULL) { | 2885 | if (privptr->channel[direction] == NULL) { |
2886 | if (direction == WRITE) | 2886 | if (direction == WRITE) |
2887 | channel_free(privptr->channel[READ]); | 2887 | channel_free(privptr->channel[READ]); |
2888 | 2888 | ||
2889 | ctc_free_netdevice(dev, 1); | 2889 | ctc_free_netdevice(dev, 1); |
@@ -2931,7 +2931,7 @@ ctc_shutdown_device(struct ccwgroup_device *cgdev) | |||
2931 | { | 2931 | { |
2932 | struct ctc_priv *priv; | 2932 | struct ctc_priv *priv; |
2933 | struct net_device *ndev; | 2933 | struct net_device *ndev; |
2934 | 2934 | ||
2935 | DBF_TEXT(setup, 3, __FUNCTION__); | 2935 | DBF_TEXT(setup, 3, __FUNCTION__); |
2936 | pr_debug("%s() called\n", __FUNCTION__); | 2936 | pr_debug("%s() called\n", __FUNCTION__); |
2937 | 2937 | ||