]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/rapidio/rio.c
rapidio: fix IDLE2 bits corruption
[net-next-2.6.git] / drivers / rapidio / rio.c
index 7f18a65c4ed05576e4f742769defa8e2acae4c2a..68cf0c99138a94517f3f2e9dae03de4149049092 100644 (file)
@@ -871,15 +871,10 @@ int rio_inb_pwrite_handler(union rio_pw_msg *pw_msg)
                        rdev->em_efptr + RIO_EM_LTL_ERR_DETECT, 0);
        }
 
-       /* Clear remaining error bits */
+       /* Clear remaining error bits and Port-Write Pending bit */
        rio_mport_write_config_32(mport, destid, hopcount,
                        rdev->phys_efptr + RIO_PORT_N_ERR_STS_CSR(portnum),
-                       err_status & RIO_PORT_N_ERR_STS_CLR_MASK);
-
-       /* Clear Port-Write Pending bit */
-       rio_mport_write_config_32(mport, destid, hopcount,
-                       rdev->phys_efptr + RIO_PORT_N_ERR_STS_CSR(portnum),
-                       RIO_PORT_N_ERR_STS_PW_PEND);
+                       err_status);
 
        return 0;
 }