Re: [PATCH] usb: host: xhci-hub: drop redundant port register reads

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

 



On Fri, Feb 11, 2022 at 10:05:19PM +0300, Sergey Shtylyov wrote:
> In xhci_hub_control(), there are many port register readbacks in several
> branches of the *switch* statement which get duplicated right after that
> *switch* by reading back the port register once more -- which is done to
> flush the posted writes. Remove the redundant reads inside that *switch*.

Doing a read right after a write is good, perhaps the one after the
switch should be removed instead?

thanks,

greg k-h



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

  Powered by Linux