[U-Boot] [PATCH] serial: ns16550: Fix serial output on Tegra186

Stephen Warren swarren at wwwdotorg.org
Mon Oct 3 18:14:00 CEST 2016


On 10/03/2016 09:51 AM, Stephen Warren wrote:
> On 09/30/2016 02:46 AM, Thierry Reding wrote:
>> From: Thierry Reding <treding at nvidia.com>
>>
>> For Tegra186 there are currently no UART clocks wired up in device tree.
>> This exposes a regression introduced in commit 50fce1d5d874 ("serial:
>> ns16550: Support clocks via phandle"), which causes the p2771-0000-500
>> board (and probably any Tegra186-based board as well) to fail to boot.
>>
>> The reason is that if no clocks property exists, then clk_get_by_index()
>> returns -ENOENT (via fdtdec_parse_phandle_with_args()) rather than
>> -ENODEV as the above-mentioned commit expects.
>>
>> Fix this by checking for the right error code.
>
> Tested-by: Stephen Warren <swarren at nvidia.com>

Actually, I take that back. This works great for Tegra186 but breaks 
earlier Tegra SoCs.


More information about the U-Boot mailing list