Re: [PATCH] staging: greybus: uart: replace IDR with XArray

From: Greg Kroah-Hartman

Date: Tue Nov 24 2026 - 02:19:59 EST


On Mon, Nov 23, 2026 at 08:30:56PM +0545, Chhabilal Dangal wrote:
> The IDR API is deprecated. Use an XArray to track tty minors. The
> XA_LIMIT range covers the same 0..GB_NUM_MINORS-1 minors as the old
> idr_alloc() call, and -EBUSY from a full array is mapped back to the
> -ENOSPC that callers used to get.
>
> No change to the tty interface or to which minors are assigned.

Please read the mailing list archives for why this patch keeps getting
rejected.

thanks,

greg k-h