Re: [PATCH] greybus: gb-beagleplay: Pass jiffies to serdev_device_wait_until_sent()
From: Johan Hovold
Date: Thu Dec 03 2026 - 08:16:27 EST
On Thu, Dec 03, 2026 at 12:45:42AM +0100, Tomasz Unger wrote:
> cc1352_prepare() passes CC1352_BOOTLOADER_TIMEOUT (2000, meant as
> milliseconds) directly to serdev_device_wait_until_sent(), which takes
> the timeout in jiffies. With HZ=250, as on the BeaglePlay, it waits up
> to 8 seconds instead of 2.
>
> Convert it with msecs_to_jiffies(), as the other users of this constant
> in the driver already do.
>
> Fixes: 0cf7befa3ea2 ("greybus: gb-beagleplay: Add firmware upload API")
> Signed-off-by: Tomasz Unger <tomasz.unger@xxxxxxxx>
> ---
Looks correct:
Reviewed-by: Johan Hovold <johan@xxxxxxxxxx>