]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: xhci: convert to TRB_LEN() and TRB_INTR_TARGET()
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Tue, 8 Sep 2020 17:00:00 +0000 (19:00 +0200)
committerMarek Vasut <marex@denx.de>
Thu, 1 Oct 2020 17:43:05 +0000 (19:43 +0200)
commit4312638eaf7f0bd29ffa8c7957bd51c5eb7d5a32
tree54efe33c164a78b54cf9fd474e9663eaecaf3a08
parenta826d76f2bab971b293b4ba6bf45b81871051383
usb: xhci: convert to TRB_LEN() and TRB_INTR_TARGET()

For normal TRB fields:
use TRB_LEN(x) instead of ((x) & TRB_LEN_MASK);
and use TRB_INTR_TARGET(x) instead of
(((x) & TRB_INTR_TARGET_MASK) << TRB_INTR_TARGET_SHIFT)

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/usb/host/xhci-ring.c
include/usb/xhci.h