Loading
usb: gadget: uvc: fix interval_duration calculation
To correctly convert bInterval as interval_duration: interval_duration = 2^(bInterval-1) * frame_interval Current code uses a wrong left shift operand, computing 2^bInterval instead of 2^(bInterval-1). Fixes: 010dc57c ("usb: gadget: uvc: fix interval_duration calculation") Cc: stable <stable@kernel.org> Signed-off-by:Junzhong Pan <panjunzhong@linux.spacemit.com> Reviewed-by:
Xu Yang <xu.yang_2@nxp.com> Link: https://patch.msgid.link/20260306-fix-uvc-interval-v1-1-9a2df6859859@linux.spacemit.com Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>