]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: xhci: convert to HCS_MAX_PORTS()
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Tue, 8 Sep 2020 16:59:58 +0000 (18:59 +0200)
committerMarek Vasut <marex@denx.de>
Thu, 1 Oct 2020 17:43:05 +0000 (19:43 +0200)
commit86d1fa17fb91d2579ed059db0125a198c7a388fd
treec4ae54329b490ac7785168232338a10728813d24
parent740820519c69d84b320199a8a4348e47c447ebfb
usb: xhci: convert to HCS_MAX_PORTS()

Use HCS_MAX_PORTS(p) instead of
((p & HCS_MAX_PORTS_MASK) >> HCS_MAX_PORTS_SHIFT)

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