From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3306CC4724C for ; Fri, 1 May 2020 13:49:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0960D2051A for ; Fri, 1 May 2020 13:49:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588340953; bh=Lf9oEQ3lI1qIP5shT6OKBB/wJ6bYndoz/cNzVPJMB18=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=TW4yNIpwiKZEEZkNy51hicXJQ8zJRwscwexTumgmzaRCosjv2EJ7+Rq4s1UkFSHrC gK870uF5eH9E9NLfokAS6guN8jFIykOwvXW1c6K5jFUaauPAfCKMKJJBeOxyFX5DA7 HVoVhDqUYliFURrPK0oYqFrvIoRgBGOGQAYyx+0s= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731419AbgEANlf (ORCPT ); Fri, 1 May 2020 09:41:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:41934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731415AbgEANle (ORCPT ); Fri, 1 May 2020 09:41:34 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DCD7520757; Fri, 1 May 2020 13:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588340494; bh=Lf9oEQ3lI1qIP5shT6OKBB/wJ6bYndoz/cNzVPJMB18=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nRsMbS8vP0S5bv28t1OghftweEoI2u7Dp0AJ+iUfYut/iTEvr1t3CDWWijiBfmPV+ uv+3hCStvu4qPAwaCyeBAd2+GKiNhN2vzftuiOFS+p6Rw1Lzo3UWw8mhXZk5cZIjOm H2Zf/ZPt8EJbuSBeF5mMwX1vAlV5CCIWO1TVqtiI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Saenz Julienne Subject: [PATCH 5.6 005/106] ARM: dts: bcm283x: Add cells encoding format to firmware bus Date: Fri, 1 May 2020 15:22:38 +0200 Message-Id: <20200501131544.107799394@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200501131543.421333643@linuxfoundation.org> References: <20200501131543.421333643@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Nicolas Saenz Julienne commit be08d278eb09210fefbad4c9b27d7843f1c096b2 upstream. With the introduction of 55c7c0621078 ("ARM: dts: bcm283x: Fix vc4's firmware bus DMA limitations") the firmware bus has to comply with /soc's DMA limitations. Ultimately linking both buses to a same dma-ranges property. The patch (and author) missed the fact that a bus' #address-cells and #size-cells properties are not inherited, but set to a fixed value which, in this case, doesn't match /soc's. This, although not breaking Linux's DMA mapping functionality, generates ugly dtc warnings. Fix the issue by adding the correct address and size cells properties under the firmware bus. Fixes: 55c7c0621078 ("ARM: dts: bcm283x: Fix vc4's firmware bus DMA limitations") Signed-off-by: Nicolas Saenz Julienne Link: https://lore.kernel.org/r/20200326134413.12298-1-nsaenzjulienne@suse.de Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 3 +++ 1 file changed, 3 insertions(+) --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi @@ -14,6 +14,9 @@ soc { firmware: firmware { compatible = "raspberrypi,bcm2835-firmware", "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + mboxes = <&mailbox>; dma-ranges; };