Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp137157pxj; Thu, 13 May 2021 01:01:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8wakYanwEBGdmLZn/6FjzOj0SAD7jXXks2Zni2OOJHoLZI83COdg3An4lB3tgcD0ctvh9 X-Received: by 2002:a17:906:2bd0:: with SMTP id n16mr42283784ejg.110.1620892874600; Thu, 13 May 2021 01:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620892874; cv=none; d=google.com; s=arc-20160816; b=syJtmvpOGJCoRtxTNp3cpqnEWYcLVBfgnPVW/hJxnAGnyrOuIU5qgwQqKquqXqRZYp lwhK3iVbQhkgEOx+3rg7DDtyYX55wwqtlJjtG6I3PIojZx1E2hWSIElX68TuN8ASsbb+ 0GU2DZqiSno4CyKYaAwuVkEqsDohhCjovDpp7cW+Omwsk7g0OT9VuE54ZJDSGlnyNCdL 7W9r6pgaZADv6EMqeHWL+q7RZPVcUay3d39i5DN0jJKKLW5eorTiobHHa+3s7nVCRURC fnjvyNwknvADCxniIaY9C5p8gH7aV52A0OCaKOrbT+HEw0FLnk7NmDqgFxgMF1p9YKup WDmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Slych82+jWu/Wv9V6D4t0VFYlgr6l0qVOeeSnC9vwpY=; b=ACBgPWklvcw1dngCmz+HY0JuMj/LBdGiEO9gZV5f+5ibDAbADfN3anqJsvSaM7IBbY izQiQu2SEiK0P0cBy1V9mkJje/HHIHQC+nwqFD5h5wvQi5c/3RaZrAOv1pT82qYtW8lx OA1WT1gBoM0sf945OmsNTMh8vFin0t+6b27f1eK3ffackCo2BlmAEJsaAxon9XPsawDI 7G4d70fGPrP9LC7F2dZ7ffgdd3v76nsZvxGwd+K1NqKCSu9xLSUQ6c11dTSb0QwaaJ9n NoBhHq/dHUf6dZPN0qKisiG+N9F8Elh/gLbSUvUlm8Ia/bYnLw1oKjQG+Nf90eLt4dun NM2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PZAFz5rA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg21si2417967ejb.58.2021.05.13.01.00.48; Thu, 13 May 2021 01:01:14 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PZAFz5rA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231128AbhEMIAd (ORCPT + 99 others); Thu, 13 May 2021 04:00:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:45006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230210AbhEMIAb (ORCPT ); Thu, 13 May 2021 04:00:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2160261439; Thu, 13 May 2021 07:59:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620892762; bh=iUrtpqFnXdmWdBcpzXp0Ri1xgecNKmB4qbJd7wPBrss=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PZAFz5rA4Fgu/+xKLoQ9cK5gmvGLaj+7VPIKvDgCzPaTPu0EQEUFLQn7VQYtn3NPw Tb6QNmaDZ1rTbKNzCAyXjAa2IZxsmloOCKJz11ifsxYmfnLpA7QygLBkYIGE4PpjeG 5KkRNkPitFKNhOlQekQHiniqnZyS/r3yJkClZ1Sfr3QyWaiVzeni5ybfphdGoVwJlW pNCb1xvkqtUA8hjIEWeV6Un9mxaRcwKzcm3prz9GnP2znWJDNWXuiyqDqBoxNFjVqA fOzV6p/lIUjp8gzn+tqQRfWOFBqb/mv6HHyB0cNSEsjTNP+McmsuNyf8gC6c6Ql+hK PXewaizjDjFvQ== Date: Thu, 13 May 2021 15:59:17 +0800 From: Shawn Guo To: Mian Yousaf Kaukab Cc: leoyang.li@nxp.com, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: ls208xa: remove bus-num from dspi node Message-ID: <20210513075917.GX3425@dragon> References: <20210428125807.29553-1-ykaukab@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210428125807.29553-1-ykaukab@suse.de> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28, 2021 at 02:58:07PM +0200, Mian Yousaf Kaukab wrote: > 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 Applied, thanks.