Lines Matching refs:status

305  * sdw_show_ping_status() - Direct report of PING status, to be used by Peripheral drivers
307 * @sync_delay: Delay before reading status
311 u32 status;
325 status = bus->ops->read_ping_status(bus);
329 if (!status)
332 dev_dbg(bus->dev, "PING status: %#x\n", status);
869 if (slave->status != SDW_SLAVE_UNATTACHED)
899 * device, enumeration status and device number in sysfs
920 enum sdw_slave_status status)
927 "changing status slave %d status %d new status %d\n",
928 slave->dev_num, slave->status, status);
930 if (status == SDW_SLAVE_UNATTACHED) {
938 } else if ((status == SDW_SLAVE_ATTACHED) &&
939 (slave->status == SDW_SLAVE_UNATTACHED)) {
946 slave->status = status;
1063 if (slave->status != SDW_SLAVE_ATTACHED &&
1064 slave->status != SDW_SLAVE_ALERT)
1118 if (slave->status != SDW_SLAVE_ATTACHED &&
1119 slave->status != SDW_SLAVE_ALERT)
1189 if (slave->status != SDW_SLAVE_ATTACHED &&
1190 slave->status != SDW_SLAVE_ALERT)
1231 if (slave->status != SDW_SLAVE_ATTACHED &&
1232 slave->status != SDW_SLAVE_ALERT)
1384 int status;
1394 status = sdw_read_no_pm(slave, SDW_SCP_INT1);
1395 if (status < 0) {
1397 "SDW_SCP_INT1 (BUS_CLASH) read failed:%d\n", status);
1398 return status;
1400 if (status & SDW_SCP_INT1_BUS_CLASH) {
1413 status = sdw_read_no_pm(slave, SDW_SCP_INT1);
1414 if (status < 0) {
1416 "SDW_SCP_INT1 (PARITY) read failed:%d\n", status);
1417 return status;
1419 if (status & SDW_SCP_INT1_PARITY) {
1465 int status, status2, ret, count = 0;
1467 status = sdw_read_no_pm(slave, SDW_DP0_INT);
1468 if (status < 0) {
1470 "SDW_DP0_INT read failed:%d\n", status);
1471 return status;
1475 clear = status & ~SDW_DP0_INTERRUPTS;
1477 if (status & SDW_DP0_INT_TEST_FAIL) {
1487 if (status & SDW_DP0_INT_PORT_READY) {
1492 if (status & SDW_DP0_INT_BRA_FAILURE) {
1500 if (status & impl_int_mask) {
1520 /* filter to limit loop to interrupts identified in the first status read */
1521 status &= status2;
1526 } while ((status & SDW_DP0_INTERRUPTS) && (count < SDW_READ_INTR_CLEAR_RETRY));
1538 int status, status2, ret, count = 0;
1545 status = sdw_read_no_pm(slave, addr);
1546 if (status < 0) {
1548 "SDW_DPN_INT read failed:%d\n", status);
1550 return status;
1554 clear = status & ~SDW_DPN_INTERRUPTS;
1556 if (status & SDW_DPN_INT_TEST_FAIL) {
1565 if (status & SDW_DPN_INT_PORT_READY) {
1573 if (status & impl_int_mask) {
1593 /* filter to limit loop to interrupts identified in the first status read */
1594 status &= status2;
1599 } while ((status & SDW_DPN_INTERRUPTS) && (count < SDW_READ_INTR_CLEAR_RETRY));
1766 * Read status again to ensure no new interrupts arrived
1819 enum sdw_slave_status status)
1830 ret = drv->ops->update_status(slave, status);
1839 * sdw_handle_slave_status() - Handle Slave status
1841 * @status: Status for all Slave(s)
1844 enum sdw_slave_status status[])
1864 if (status[i] == SDW_SLAVE_UNATTACHED &&
1865 slave->status != SDW_SLAVE_UNATTACHED) {
1866 dev_warn(&slave->dev, "Slave %d state check1: UNATTACHED, status was %d\n",
1867 i, slave->status);
1871 ret = sdw_update_slave_status(slave, status[i]);
1873 dev_warn(&slave->dev, "Update Slave status failed:%d\n", ret);
1877 if (status[0] == SDW_SLAVE_ATTACHED) {
1888 * Returning the error here could result in the current status
1890 * were programmed there's nothing to guarantee a status change
1913 switch (status[i]) {
1915 if (slave->status == SDW_SLAVE_UNATTACHED)
1918 dev_warn(&slave->dev, "Slave %d state check2: UNATTACHED, status was %d\n",
1919 i, slave->status);
1933 if (slave->status == SDW_SLAVE_ATTACHED)
1936 prev_status = slave->status;
1953 dev_err(&slave->dev, "Invalid slave %d status:%d\n",
1954 i, status[i]);
1958 ret = sdw_update_slave_status(slave, status[i]);
1961 "Update Slave status failed:%d\n", ret);
1971 * restarted and attach, but their pm_runtime status may remain
2005 if (slave->status != SDW_SLAVE_UNATTACHED) {