Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp470098pxy; Wed, 28 Apr 2021 07:52:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6PnNscpLFS/tYksLRectBxhIvSSPhu8P4t+aR4TUJjjKGz9RVQ5N8tYQULCTi7KsondKQ X-Received: by 2002:aa7:d541:: with SMTP id u1mr11835953edr.95.1619621533235; Wed, 28 Apr 2021 07:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619621533; cv=none; d=google.com; s=arc-20160816; b=e/Mt/kvOnbcXw364BoGdsYs0/q6swjijIk+2BKWyQVf371El0uwmd64dGvTN42+9a3 80mqbfx8m685oMf4Exf0pYOGGP7lI8P3vnD8f3NLdYNMLMsM6fyD+bq/rmCJR/d+bEdR hGE0v6GAMbNfAgMQAHtJbd8r/L2lJGetvtn3PVQOl8p/XMbFooaVH+VfEgWYMv8esn9X iE3CEY7JmvAhxITgzR5nJM7Cj68tqHQ8QcBoXAydOhFEydR242hqI2AJYSdLx/v6FjqK 1/MFSbmhfvoqQ237eZUEzY8IezbpQump6ivBHXNhdp3GZSPeEL66qshnpkxbEoXUf8qs iEWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=b4xgRmLW99jDlCam5VPyZHjGfYVbPai1DajMzeLo1TQ=; b=moeyJst+aGR+xkVHX2a3hICy7QhhEvolkc7eYqv/IbjTzbG6/CTusDi1tDZNPQBBMt hffco40CrLMy/fD3MS1CMtEEw1gK/P16NBA56AKI8V5Zcv1WZ/MGXJ0TVL6EdEN6xO5U YolM2Mb2g1FZ1Toeh873H02636KC3a7Cv2PlNs9YpZ/D4Kmbq6tIX5QGAL2v7LzOnq6i bs0XmalNmicJWkhCm/qryQfO1iGshTboDJUAWuFklWSrockdF1sy/Plea1odAulubOzt Y7g04jS+ASMQv4Z53+jVsS7QF59sEzbm35sXaZ2CZ0rkn4RpIMqlj8boh28JIJSHx9KO Lzew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si203122ejc.433.2021.04.28.07.51.48; Wed, 28 Apr 2021 07:52:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239638AbhD1M7H (ORCPT + 99 others); Wed, 28 Apr 2021 08:59:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:36176 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239201AbhD1M7F (ORCPT ); Wed, 28 Apr 2021 08:59:05 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id D6429B170; Wed, 28 Apr 2021 12:58:19 +0000 (UTC) From: Mian Yousaf Kaukab To: shawnguo@kernel.org, leoyang.li@nxp.com, robh+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mian Yousaf Kaukab Subject: [PATCH] arm64: dts: ls208xa: remove bus-num from dspi node Date: Wed, 28 Apr 2021 14:58:07 +0200 Message-Id: <20210428125807.29553-1-ykaukab@suse.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On LS2088A-RDB board, if the spi-fsl-dspi driver is built as module then its probe fails with the following warning: [ 10.471363] couldn't get idr [ 10.471381] WARNING: CPU: 4 PID: 488 at drivers/spi/spi.c:2689 spi_register_controller+0x73c/0x8d0 ... [ 10.471651] fsl-dspi 2100000.spi: Problem registering DSPI ctlr [ 10.471708] fsl-dspi: probe of 2100000.spi failed with error -16 Reason for the failure is that bus-num property is set for dspi node. However, bus-num property is not set for the qspi node. If probe for spi-fsl-qspi happens first then id 0 is dynamically allocated to it. Call to spi_register_controller() from spi-fsl-dspi driver then fails. Since commit 29d2daf2c33c ("spi: spi-fsl-dspi: Make bus-num property optional") bus-num property is optional. Remove bus-num property from dspi node to fix the issue. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi index 135ac8210871..801ba9612d36 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi @@ -929,7 +929,6 @@ dspi: spi@2100000 { QORIQ_CLK_PLL_DIV(4)>; clock-names = "dspi"; spi-num-chipselects = <5>; - bus-num = <0>; }; esdhc: esdhc@2140000 { -- 2.26.2