diff options
| -rw-r--r-- | drivers/rapidio/rio-scan.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/rapidio/rio-scan.c b/drivers/rapidio/rio-scan.c index 2bebd791a092..02e686b4c19a 100644 --- a/drivers/rapidio/rio-scan.c +++ b/drivers/rapidio/rio-scan.c | |||
| @@ -839,12 +839,10 @@ static int __devinit rio_enum_peer(struct rio_net *net, struct rio_mport *port, | |||
| 839 | for (port_num = 0; | 839 | for (port_num = 0; |
| 840 | port_num < RIO_GET_TOTAL_PORTS(rdev->swpinfo); | 840 | port_num < RIO_GET_TOTAL_PORTS(rdev->swpinfo); |
| 841 | port_num++) { | 841 | port_num++) { |
| 842 | /*Enable Input Output Port (transmitter reviever)*/ | 842 | if (sw_inport == port_num) { |
| 843 | rio_enable_rx_tx_port(port, 0, | 843 | rio_enable_rx_tx_port(port, 0, |
| 844 | RIO_ANY_DESTID(port->sys_size), | 844 | RIO_ANY_DESTID(port->sys_size), |
| 845 | hopcount, port_num); | 845 | hopcount, port_num); |
| 846 | |||
| 847 | if (sw_inport == port_num) { | ||
| 848 | rdev->rswitch->port_ok |= (1 << port_num); | 846 | rdev->rswitch->port_ok |= (1 << port_num); |
| 849 | continue; | 847 | continue; |
| 850 | } | 848 | } |
| @@ -857,6 +855,9 @@ static int __devinit rio_enum_peer(struct rio_net *net, struct rio_mport *port, | |||
| 857 | pr_debug( | 855 | pr_debug( |
| 858 | "RIO: scanning device on port %d\n", | 856 | "RIO: scanning device on port %d\n", |
| 859 | port_num); | 857 | port_num); |
| 858 | rio_enable_rx_tx_port(port, 0, | ||
| 859 | RIO_ANY_DESTID(port->sys_size), | ||
| 860 | hopcount, port_num); | ||
| 860 | rdev->rswitch->port_ok |= (1 << port_num); | 861 | rdev->rswitch->port_ok |= (1 << port_num); |
| 861 | rio_route_add_entry(rdev, RIO_GLOBAL_TABLE, | 862 | rio_route_add_entry(rdev, RIO_GLOBAL_TABLE, |
| 862 | RIO_ANY_DESTID(port->sys_size), | 863 | RIO_ANY_DESTID(port->sys_size), |
