diff options
Diffstat (limited to 'drivers/rapidio/switches/tsi57x.c')
-rw-r--r-- | drivers/rapidio/switches/tsi57x.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/rapidio/switches/tsi57x.c b/drivers/rapidio/switches/tsi57x.c index d34df722d95f..2003fb63c404 100644 --- a/drivers/rapidio/switches/tsi57x.c +++ b/drivers/rapidio/switches/tsi57x.c | |||
@@ -166,7 +166,8 @@ tsi57x_em_init(struct rio_dev *rdev) | |||
166 | 166 | ||
167 | pr_debug("TSI578 %s [%d:%d]\n", __func__, destid, hopcount); | 167 | pr_debug("TSI578 %s [%d:%d]\n", __func__, destid, hopcount); |
168 | 168 | ||
169 | for (portnum = 0; portnum < 16; portnum++) { | 169 | for (portnum = 0; |
170 | portnum < RIO_GET_TOTAL_PORTS(rdev->swpinfo); portnum++) { | ||
170 | /* Make sure that Port-Writes are enabled (for all ports) */ | 171 | /* Make sure that Port-Writes are enabled (for all ports) */ |
171 | rio_mport_read_config_32(mport, destid, hopcount, | 172 | rio_mport_read_config_32(mport, destid, hopcount, |
172 | TSI578_SP_MODE(portnum), ®val); | 173 | TSI578_SP_MODE(portnum), ®val); |
@@ -205,6 +206,10 @@ tsi57x_em_init(struct rio_dev *rdev) | |||
205 | portnum++; | 206 | portnum++; |
206 | } | 207 | } |
207 | 208 | ||
209 | /* set TVAL = ~50us */ | ||
210 | rio_mport_write_config_32(mport, destid, hopcount, | ||
211 | rdev->phys_efptr + RIO_PORT_LINKTO_CTL_CSR, 0x9a << 8); | ||
212 | |||
208 | return 0; | 213 | return 0; |
209 | } | 214 | } |
210 | 215 | ||