usb: common: add function to get interval expressed in us unit
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Mon, 8 Mar 2021 02:52:05 +0000 (10:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:25:31 +0000 (13:25 +0200)
commit20b63631a38a94a7542b570cfee005ff4c0df911
treec5effc87d00bafa335b57037b6059eb1f6e50b74
parentc1ef8c66a362979f5c48dd01b808ccecd5497fe4
usb: common: add function to get interval expressed in us unit

[ Upstream commit fb95c7cf5600b7b74412f27dfb39a1e13fd8a90d ]

Add a new function to convert bInterval into the time expressed
in 1us unit.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/25c8a09b055f716c1e5bf11fea72c3418f844482.1615170625.git.chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: b6155eaf6b05 ("usb: common: debug: Check non-standard control requests")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/common/common.c
drivers/usb/core/devices.c
drivers/usb/core/endpoint.c
include/linux/usb/ch9.h