From patchwork Tue Jan 19 05:34:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 12028875 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,USER_AGENT_GIT autolearn=ham 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 449ADC433DB for ; Tue, 19 Jan 2021 05:37:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E1D66207B1 for ; Tue, 19 Jan 2021 05:37:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1D66207B1 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:MIME-Version: Cc:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Message-Id:Date:Subject:To:From:Reply-To:Content-Transfer-Encoding:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=+8hGZAGfBYYB6DnVo+vjojOj358UQtGSp7QjrmuzJy0=; b=Mj1iaGUvmxf9gjskVPfcgBT6U9 Ig3OXYhQCgKAeYEh3dbDzvp4t+yLLrp2Jwzk+JDqr/wUuS4fmLkWEe6J4enKLwKBSDJoRYAfO6ucl 5CakmnWi97X6GpxO4lxjCCqY6d0YOzo4GToQIEzmSTL5mcrdDRRK2sEridX8E/Y6PlNlg0ApgmybE GBOLtDoGUsPDFiRYUwAkc/csmEvk759639Sn+anCdpCksApeIgG9RVtADJDGyK466yPXdcamnJlME 4ZA4KEh9GJ5PDmjbyTeRE7QvTFNhvxqMfCtA6zUrl4dNnoofGmdJBbd/aC6U/vDO9tuRUFVZKQENn 7UcgTbSw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1jfX-0000zZ-BZ; Tue, 19 Jan 2021 05:35:07 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1jfS-0000yZ-KI for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 05:35:04 +0000 Received: by mail-pg1-x52e.google.com with SMTP id z21so12332357pgj.4 for ; Mon, 18 Jan 2021 21:35:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=FsGzNE2Tmwv0nIhVwQOoFiHRB9CMHyqqh0yk9aMm18A=; b=KYxUDZZliTqMMDMJXA+a+5ui485jMB24ELJv6sXZEAFQ/bcldVyUNFbuVHuKUYE+jo 5hu+LszjAT0FG1a+TzrXxmLPYEDIxonI7enxi9OGpy3xZDfImLjUkxccf+jCdhFTCrjF giiR5oAEjVKyWlX65zbPB4bMF7spyrCh4tEHY= 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; bh=FsGzNE2Tmwv0nIhVwQOoFiHRB9CMHyqqh0yk9aMm18A=; b=j0B9mh2avNHSuAyMZ0QlBBPx59GRrXUJ+QHZ9sUJhXdlNPzZTImj+6zH5eCuE2wrFV z6z0ONLu7osrhNDzR2ICvOnllgW6006gqCL+tkhB5RRu99+Mk7tdkyrYbriQFOxZZL9n viCH3KyanekWip33n2Mq0Y2+ZXXkDGgwCs3rO8yZwBdUR2XR7JOEUKC4MEYV6DgcEouD iTIMJPdsdMvRb3rxgKtgWBRgt3xxDAlCcdFS245a7RXuahc2mfkMAD1WgfNRHwoARMra jP1vaeoseisJ8ImL/u7Njc6z8VRn7B70lbylX3gApnJLY8dzF0kwcQwAxG14Cya5yl3A x+Tg== X-Gm-Message-State: AOAM530v03sQkrXJ9ii02pNvaFUojDclHB85wa6NR7hOgq2Pynzw1uGm MCB0TGoXaHn8XvmT2RNFnbHxhA== X-Google-Smtp-Source: ABdhPJwA5NT8sLEe+uxIX1Qr/YJnPRSxHq5dh0rxqPbUwlx6jbOUL6r+AgjOOakHlXvn4q45bAKksA== X-Received: by 2002:a63:5701:: with SMTP id l1mr2927127pgb.381.1611034499093; Mon, 18 Jan 2021 21:34:59 -0800 (PST) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id gl6sm1296035pjb.3.2021.01.18.21.34.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 21:34:58 -0800 (PST) From: Rayagonda Kokatanur To: Rob Herring , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Arnd Bergmann , Florian Fainelli , Zhen Lei , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/1] arm64: dts: stingray: fix usb dma address translation Date: Tue, 19 Jan 2021 11:04:44 +0530 Message-Id: <20210119053444.23108-1-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210119_003502_976308_24283250 X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rayagonda Kokatanur , Bharat Gooty MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bharat Gooty Add a non-empty dma-ranges so that dma address translation happens. Fixes: 2013a4b684b6 ("arm64: dts: broadcom: clear the warnings caused by empty dma-ranges") Signed-off-by: Bharat Gooty Signed-off-by: Rayagonda Kokatanur Reviewed-by: Arnd Bergmann Acked-by: Ray Jui --- arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi index aef8f2b00778..5401a646c840 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi @@ -4,11 +4,16 @@ */ usb { compatible = "simple-bus"; - dma-ranges; #address-cells = <2>; #size-cells = <2>; ranges = <0x0 0x0 0x0 0x68500000 0x0 0x00400000>; + /* + * Internally, USB bus to the interconnect can only address up + * to 40-bit + */ + dma-ranges = <0 0 0 0 0x100 0x0>; + usbphy0: usb-phy@0 { compatible = "brcm,sr-usb-combo-phy"; reg = <0x0 0x00000000 0x0 0x100>;