]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
arm64: dts: qcom: msm8998-mtp: Add alias for blsp1_uart3
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 19 Nov 2019 01:18:23 +0000 (17:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:53:01 +0000 (16:53 -0500)
commit c9ec155b5962233aff3df65210bd6a4788dee21c upstream.

The msm_serial driver has a predefined set of uart ports defined, which
is allocated either by reading aliases or if no match is found a simple
counter, starting at index 0. But there's no logic in place to prevent
these two allocation mechanism from colliding. As a result either none
or all of the active msm_serial instances must be listed as aliases.

Define blsp1_uart3 as "serial1" to mitigate this problem.

Fixes: 4cffb9f2c700 ("arm64: dts: qcom: msm8998-mtp: Enable bluetooth")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Link: https://lore.kernel.org/r/20191119011823.379100-1-bjorn.andersson@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi

index 5f101a20a20a23a1364a9ecc05cb8b5f6cd5d8bc..e08fcb426bbf8ab5c07b7b610afc387a7469c26c 100644 (file)
@@ -9,6 +9,7 @@
 / {
        aliases {
                serial0 = &blsp2_uart1;
+               serial1 = &blsp1_uart3;
        };
 
        chosen {