Re: [PATCH] serial: 8250_dw: retain programmed timing for BUSY waits

From: Greg Kroah-Hartman

Date: Mon Oct 12 2026 - 02:37:51 EST


On Mon, Oct 12, 2026 at 06:10:20AM -0000, khaliforce wrote:
> + if (d->data.frame_time && d->data.frame_time_uartclk && p->uartclk) {
> + scaled_frame_time = (u64)frame_time * d->data.frame_time_uartclk;
> + scaled_frame_time = DIV_ROUND_UP_ULL(scaled_frame_time, p->uartclk);
> + frame_time = min_t(u64, scaled_frame_time, U32_MAX);

This looks like a LLM wrote this, as min_t() is what they love to use.
Are you sure this is correct?

thanks,

greg k-h