From patchwork Tue Nov 19 01:18:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 179620 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp3655225ilf; Mon, 18 Nov 2019 17:18:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzt/YnG8pu3OT84/CtQMp4BjHNyKHKLABJqsoKm90cGEZ/+A6fGb3WmwVvKUEWRUfwjEZLl X-Received: by 2002:adf:fe89:: with SMTP id l9mr12792988wrr.368.1574126309227; Mon, 18 Nov 2019 17:18:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574126309; cv=none; d=google.com; s=arc-20160816; b=QWn8JwX/ZLK9RD4+TpDoEOWURmeJsZVngkXG9ZXGs0wyNya0W2VCMeiOy9PlB24Ksu LXNsaYWIcuV+S7YVvBExJvcqB4q3dhM3Hl1J5agCn+7q3PYGnJj/Y3TetK2dlwC9iM2j 68uXJYb3bYKoC7GOPwooOiengs6ZCE5SYHaGr9XFfNkt9V/4Tk3HiiA5RzJ9elPbPfMn XKS2311zLiRu301t94N9oDge8NBYevhqujdPrK6ok74mqDwfcFM1I6I7zxxAswIegODd wok+Jhxxgp70u7RWIrooCpISkJEVRlxLEEy5QRXwBgj6tQIjPRfgcWgWkYg2XF7F/Z6l CpsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hq5TX+U7APVzVaoaAOIejhIYqLJqIfb0addUNvfV3EY=; b=aECjLA0eK7N/JzMkJ3A7fmhK05RGLZ0kEH4OuvIDsNUoj5hd/qB3MzEaILrevrNwXx GQWAoV0ibVqan7vVeo7XO19HLa7DDqZsrAFmChrs8gUvzH9R4Ytb/0OXCPPr+4fUZPNq F9O3r9vkk2GdZ7VIbuuk5kTKtB/CFu1/hG3lqnTplh3Q8qa0G1tiSafhROoTKb4qiAiq c9NXX/m/1dSeT9jgPqkrh/HyKkAz/3l4xZZgWR+aUM74MJ0TV+Yk9C7SVX8ccJgzutCn zI0VdN9SRIUVyK0eWS75lxk880PblzFiK+hvgQcE6sj6pP8BbNz/x3CrMC8U1ouybV3x zMBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QcPAOz4T; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m33si14212022edc.126.2019.11.18.17.18.28; Mon, 18 Nov 2019 17:18:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QcPAOz4T; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727128AbfKSBS2 (ORCPT + 8 others); Mon, 18 Nov 2019 20:18:28 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:39348 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727118AbfKSBS2 (ORCPT ); Mon, 18 Nov 2019 20:18:28 -0500 Received: by mail-pl1-f193.google.com with SMTP id o9so10785620plk.6 for ; Mon, 18 Nov 2019 17:18:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hq5TX+U7APVzVaoaAOIejhIYqLJqIfb0addUNvfV3EY=; b=QcPAOz4T+S3x+pR/AFPvhDB6vy0xUDa3hIedvCIdddoG1hKBw/R/jdvu2y1vaQ5NBt F6E7e3jrjAcAA7KKuBlewxII6CBHoHBQfEqhs+ZedoTgRtzbcKwrUeZRsUs+jZvU7LMa +JzdPX07A1xwXRNBMMKUB2P4DQS/xey81RybmRPdchxIF2EbNWi3nfusbJjXvw2t6vgX RE2uYTKJQ+lkQPxvNMpvuNWgoS5VrYZlTLo9BcvInCyXb7gSqYfF4Yuo0LOP93HkaHO0 dMYivO/7n1qj8MJln6KZz9yt5yvdowh3pbjlKXkCr26wQtZubCu+eL4Su+UBmlOtREAR A+iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hq5TX+U7APVzVaoaAOIejhIYqLJqIfb0addUNvfV3EY=; b=dIR0ac8A6Pp7xJxOwb+4SZGufXJt1dHRymAS/OsFriiKGQeswELWFAbDtEzDuL7YGe GbkXP1NnsaXoK7y2n6x/d2irsR1hZ7Sm4AkRVdRWZQvyMq+0RXR39iIjicRi7TfkcxEY wltzdM6MXGOr+wRyXDw0lEikn8xVV7IDlJcNAK9MPCeBbO9q69sL0Uo0qEMDoKMmwC3Y z3tnFf0bmUQUG9iBLiY+1VYPnlqELRUzPuU5tiS6dWDSleb2BDWURtVIwZDcpIPBViAG vfq2mJoFrV1SfGp8qkwy3d8hCJxamMZYp6x2lkAKZo248R5QN0mAyMBoyrc8ECCVNwmv j6FA== X-Gm-Message-State: APjAAAX7o5iv3j9bxVrJEyp005U5YuXkMU48vbaI25n0So6AXSp7vm/n aUqed23RxVK2QSvd8jxDgLR1HQ== X-Received: by 2002:a17:90a:4d8f:: with SMTP id m15mr2705487pjh.71.1574126307097; Mon, 18 Nov 2019 17:18:27 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id x13sm22929055pfc.46.2019.11.18.17.18.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2019 17:18:26 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Jeffrey Hugo Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: qcom: msm8998-mtp: Add alias for blsp1_uart3 Date: Mon, 18 Nov 2019 17:18:23 -0800 Message-Id: <20191119011823.379100-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- Changes since v1: - Rewrote commit message arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi | 1 + 1 file changed, 1 insertion(+) -- 2.23.0 diff --git a/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi b/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi index 5f101a20a20a..e08fcb426bbf 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi @@ -9,6 +9,7 @@ / { aliases { serial0 = &blsp2_uart1; + serial1 = &blsp1_uart3; }; chosen {