Re: [PATCH v2] of: base: Change logic in of_alias_get_alias_list()

From: Rob Herring
Date: Fri Oct 12 2018 - 15:29:18 EST


On Fri, Oct 12, 2018 at 12:43 AM Michal Simek <michal.simek@xxxxxxxxxx> wrote:
>
> Check compatible string first before setting up bit in bitmap to also
> cover cases that allocated bitfield is not big enough.
> Show warning about it but let driver to continue to work with allocated
> bitfield to keep at least some devices (included console which
> is commonly close to serial0) to work.
>
> Fixes: b1078c355d76 ("of: base: Introduce of_alias_get_alias_list() to check alias IDs")
> Fixes: ae1cca3fa347 ("serial: uartps: Change uart ID port allocation")
> Signed-off-by: Michal Simek <michal.simek@xxxxxxxxxx>
> ---
>
> Changes in v2:
> - Use EOVERFLOW instead of EINVAL - Rob

Reviewed-by: Rob Herring <robh@xxxxxxxxxx>