[PATCH] tty: serial: msm_serial: Don't require DT aliases
From: khilman@kernel.org (Kevin Hilman)
Date: 2014-11-20 15:10:41
Also in:
linux-arm-msm, linux-serial, lkml
From: khilman@kernel.org (Kevin Hilman)
Date: 2014-11-20 15:10:41
Also in:
linux-arm-msm, linux-serial, lkml
Greg, On Fri, Nov 14, 2014 at 10:39 AM, Stephen Boyd [off-list ref] wrote:
If there isn't a DT alias then of_alias_get_id() will return -ENODEV. This will cause the msm_serial driver to fail probe, when we want to keep the previous behavior where we generated a dynamic line number at probe time. Restore this behavior by generating a dynamic id if the line number is still negative after checking for an alias or in the non-DT case looking at the .id field of the platform device. Reported-by: Kevin Hilman <khilman@kernel.org> Tested-by: Kevin Hilman <redacted> Signed-off-by: Stephen Boyd <redacted>
Can you add this to tty-next. Without this, all the ARM/qcom boards do not boot in linux-next. Thanks, Kevin