dwc2: Application of DIEPMSK when reading DIEPINT

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

 



Hello,

326015887b6a: usb: dwc2: gadget: Add dwc2_gadget_read_ep_interrupts function

Prior to this commit, the DIEPINT / DOEPINT interrupt status registers
were directly read and written-back to clear. But after this commit,
the register value is masked with DIEPMSK / DOEPMSK prior to clearing
or being returned to act upon.

Can anyone explain the purpose of this change? In what case will the
*INT register have bits set which are not set in *MSK (and will be
subsequently ignored)? Why should those be ignored?

Thank you,
Jonathon Reinhart



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

  Powered by Linux