Re: [PATCH v2] USB: Check individual ehci port status on resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +static int ehci_port_change(struct ehci_hcd *ehci)
> +{
> +       int i = HCS_N_PORTS(ehci->hcs_params);
> +
> +       while (i--)
> +               if (ehci_readl(ehci, &ehci->regs->port_status[i]) & PORT_CSC)
> +                       return 1;
> +
> +       return 0;
> +}

Why only check the condition that only one port has changed the
status. Is it possible that many ports should change condition, but
only one reflect on port_status register ??

Gavin Guo
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux