/* Given a port state, this function returns a value that would result in the port being in the same state, if the value was written to the port status control register. Save Read Only (RO) bits and save read/write bits where writing a 0 clears the bit and writing a 1 sets the bit (RWS). For all other types (RW1S, RW1CS, RW, and RZ), writing a '0' has no effect.  */
static u32 xhci_port_state_to_neutral(u32 state)
/* Given a port state, this function returns a value that would result in the port being in the same state, if the value was written to the port status control register. Save Read Only (RO) bits and save read/write bits where writing a 0 clears the bit and writing a 1 sets the bit (RWS). For all other types (RW1S, RW1CS, RW, and RZ), writing a '0' has no effect.  */
static u32 xhci_port_state_to_neutral(u32 state)
{
	return (state & XHCI_PORT_RO) | (state & XHCI_PORT_RWS);
}