From patchwork Wed Mar 27 06:34:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10872757 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 91BCF1390 for ; Wed, 27 Mar 2019 06:35:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76FCF28A29 for ; Wed, 27 Mar 2019 06:35:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B03128BF8; Wed, 27 Mar 2019 06:35:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1953C28A29 for ; Wed, 27 Mar 2019 06:35:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0x+jqzO5c1HepDq6tmSJ7t4f90VkLNrZ0QqpisHDIak=; b=g+Iqrsp7Oq8Fs0 sPIJmEUGbHO/lPjzh9E25xlZLEoc1YuNLazjd+Ljj7vTGG8anM7+1+U6kJXCyKGnmRNAjbH9MOT4N JZ4cxWETAp4PS6eQVFSZQXBDojsOAM01qgKyGlF0bfx3TV1lUW4dwyzeZyXeDZnhliV5viBKvr1Wi HV3gkd5+vmF0/KgKKlYGIlieOTGqSnda03r5LWg36Ej3LKnwM/sTrQ1O+vfHvluh7hnwJ/hvQsTMJ kEAKKEMgPgWOSdVP15ykORbFAfGBaWZOHfkfj5rKxg+gazU6dwm+hx2HQv+LnHaGaFTySdFfx1Ips Swp36jbzscRGddsmXjcw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h929z-0005jI-2g; Wed, 27 Mar 2019 06:35:39 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h929S-0004eG-LX for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2019 06:35:08 +0000 Received: by mail-pf1-x442.google.com with SMTP id 9so9230015pfj.13 for ; Tue, 26 Mar 2019 23:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=q69uzChJtoAuSsBw165cu2bB+9J9hZYbB2aNHX+ivb0=; b=AHbTU6IVnbAmfvbWJrWP+uMEmRfYSWGT+caN2AcKJHinyPLhTy8JVrXiF9meMjdJaY 7/AXPSmBgFSkkcaZhD7s6a1xT7tS2R8SJ+aKm/UJ+fFiyreqK6TkZ95upOG8NO2PQBue /KatWFveFxWv66Q7NqZdk3nB+HP7PuOcRldeWYPOXpCW/TVBXQnpkcQbdfMEwzCS5kd+ WvnWOf2DQLWGQMsSYFDqdJhPA6yCY2+YEZJ19m25sZr8kxqA0OOTzf9n6i/j1u/UVRwN D7MbccUToK05tH2W+io6EGcH0d/9o+Os14o/toQ+tRjiEh9WcTQQq604NXBuBwQMy4Wt Zzkg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=q69uzChJtoAuSsBw165cu2bB+9J9hZYbB2aNHX+ivb0=; b=QEk9Kr/CgygQAeABv7ipZPkX34LuopruH0e813pTCQ5uPmh98d9xNct5PHPOFHpkMG VonbWmx2uZG3o8yH750eOSUI24DfO/zj238zkerBFYAdikdHWNsxbZCSo+b0GP4epdP/ D2tK4l8lpyp6a9KLL/OcwQBNJY6fR95QseVUe1NXqDJzw/R+PBi49nR08+aF0ekIuXET GlabDWXtSl93PtyRjO3tmUccfqbP5OGyrrYtlWbdcUvDgFMLlgNpfEq97zJhODlGnhYz ELCbC3/5/t21OKcdW/xJ36lpdAY5dMK3QaCqBMfoZ1tfFOV5Aax3DG2XNzHHZsXuQ96D fa+w== X-Gm-Message-State: APjAAAWsroFH+pW5+nZp3+CPNZr7IJsD2SWQIPtpcWffcw3n/ObJQdE9 ToVokbLTBB2TfM6N1aiRzEw= X-Google-Smtp-Source: APXvYqwmP3g/k5dvwPJIzi2Sud76Pt4atW1kGWRYhFTFz2nwQpUr86C9loO+x9E4ij7marAPc0CDtw== X-Received: by 2002:a63:fc64:: with SMTP id r36mr32909309pgk.280.1553668506123; Tue, 26 Mar 2019 23:35:06 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id k1sm19950258pfo.121.2019.03.26.23.35.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2019 23:35:05 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v2 3/3] ARM: dts: imx7d: Specify IMX7D_CLK_IPG as "ipg" clock to SDMA Date: Tue, 26 Mar 2019 23:34:51 -0700 Message-Id: <20190327063451.25629-3-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190327063451.25629-1-andrew.smirnov@gmail.com> References: <20190327063451.25629-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190326_233506_710114_AA86A9AA X-CRM114-Status: GOOD ( 13.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrey Smirnov , Angus Ainslie , linux-kernel@vger.kernel.org, Chris Healy , Fabio Estevam , linux-arm-kernel@lists.infradead.org, Lucas Stach Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Since 25aaa75df1e6 SDMA driver uses clock rates of "ipg" and "ahb" clock to determine if it needs to configure the IP block as operating at 1:1 or 1:2 clock ratio (ACR bit in SDMAARM_CONFIG). Specifying both clocks as IMX7D_CLK_SDMA result in driver incorrectly thinking that ratio is 1:1 which results in broken SDMA functionality. Fix the code to specify IMX7D_CLK_IPG as "ipg" clock for SDMA, to avoid detecting incorrect clock ratio. Fixes: 25aaa75df1e6 ("dmaengine: imx-sdma: add clock ratio 1:1 check") Signed-off-by: Andrey Smirnov Cc: Angus Ainslie (Purism) Cc: Chris Healy Cc: Lucas Stach Cc: Fabio Estevam Cc: Shawn Guo Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/imx7s.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index e88f53a4c7f4..2f45ef527e6c 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -1067,8 +1067,8 @@ compatible = "fsl,imx7d-sdma", "fsl,imx35-sdma"; reg = <0x30bd0000 0x10000>; interrupts = ; - clocks = <&clks IMX7D_SDMA_CORE_CLK>, - <&clks IMX7D_AHB_CHANNEL_ROOT_CLK>; + clocks = <&clks IMX7D_IPG_ROOT_CLK>, + <&clks IMX7D_SDMA_CORE_CLK>; clock-names = "ipg", "ahb"; #dma-cells = <3>; fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";