Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3165495imw; Mon, 11 Jul 2022 03:19:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s8+vp+aWJmuhsOT5YERfPU3Vyjf3JIx24hfYt6N3tn+CfinXo3Dgqzs/5NZfPlPGivvEWe X-Received: by 2002:aa7:c597:0:b0:43a:473b:8bae with SMTP id g23-20020aa7c597000000b0043a473b8baemr23680496edq.384.1657534783784; Mon, 11 Jul 2022 03:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657534783; cv=none; d=google.com; s=arc-20160816; b=0KL+xrIE6hQ5GChkCnGeBP3uVkIIDpO8yogkBcB0vOCJbPcbLyMCPKiTqRIY5B9Exe nGCe/cuigitIRDw4c483fzm96VkJy7YRteAYZ0nz7pAuqLXVMKOeRFB4GUXx5dMD/ZMr cRjKWsOxtdKr2YVXdL7zAEmTZeMXiroetINNM1w3h75cIihJHbT+7SrYJMZ/hgrCCXUZ sBRUO6COwBnxb542/66QJynhrkD6ee7cWmewM0nG9AN7ur5bGXN9/vf4qPIXf8YHcXtf Z98/Bvac/yoKJv7S4/PRTZ6VepZx/4YkhGvIlMhMC+36hIqY3ggwAakwT9HAwzdec6O3 2Yfg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pVr8FiJrLqSEq9ofmnsZ159vwMqszUI5za40/rMelKY=; b=k7E5dalgrHKGqJSqRbcHnGPO0qY3KopOutr5f0/9nw6aSJJXdQ6QgOTpAD9NqGrq4t Fwlfjy72EDRH8a9Y/fkCQ1Dl3vdPatFXijg+rePCEITyFqVClVBADqgQuHciY0wCJ6q7 AW6u8GvuDWdYCa13UPD5S08KZHSFvcuiHzahQ5h62W8q3kpPoyh2XH8Szkyqrcd0IVe/ 9TtZIGIZAewlSZIQRahO9pcTv5T8XoMnfGrnNUx9hz9dHlnHJvyeuxb0bCtHZPiMikY2 +/XfWg237pnJMkG9v24zyQDSLpao5LibwfR5lfskGfuacz0yaO5zOtQBXxsgMtAGE3jM rpwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oVdq6+vE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020a170906549000b006fe8ee84794si9704973ejo.370.2022.07.11.03.19.19; Mon, 11 Jul 2022 03:19:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oVdq6+vE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231792AbiGKJXS (ORCPT + 99 others); Mon, 11 Jul 2022 05:23:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232049AbiGKJWp (ORCPT ); Mon, 11 Jul 2022 05:22:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0D163B7; Mon, 11 Jul 2022 02:13:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3378C611EA; Mon, 11 Jul 2022 09:13:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C3C3C34115; Mon, 11 Jul 2022 09:13:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657530809; bh=/X8HIFkIXkB/h+rysixHOqKKK1nMD3uksrra9K+8Ugs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oVdq6+vEzmvnBe0tyTHsfWW7OG7J1340VodCeTjVfhcZHanXTcmnHizOrjaeNhWlk L3CYQvPwj/tRzPUBoZF9y35e2Hg4RvfDbJTLVCZ2yyc4dFYGCvR8Y+EvjXYh5lMpsw Z8Ix8JiIsR9h6wF3GOXf9WPl7aCShOIrASpIq2pw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Robinson , Fabio Estevam , Vinod Koul Subject: [PATCH 5.10 46/55] dmaengine: imx-sdma: Allow imx8m for imx7 FW revs Date: Mon, 11 Jul 2022 11:07:34 +0200 Message-Id: <20220711090543.113748498@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220711090541.764895984@linuxfoundation.org> References: <20220711090541.764895984@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Robinson commit a7cd3cf0b2e5aaacfe5e02c472bd28e98e640be7 upstream. The revision of the imx-sdma IP that is in the i.MX8M series is the same is that as that in the i.MX7 series but the imx7d MODULE_FIRMWARE directive is wrapped in a condiditional which means it's not defined when built for aarch64 SOC_IMX8M platforms and hence you get the following errors when the driver loads on imx8m devices: imx-sdma 302c0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2 imx-sdma 302c0000.dma-controller: external firmware not found, using ROM firmware Add the SOC_IMX8M into the check so the firmware can load on i.MX8. Fixes: 1474d48bd639 ("arm64: dts: imx8mq: Add SDMA nodes") Fixes: 941acd566b18 ("dmaengine: imx-sdma: Only check ratio on parts that support 1:1") Signed-off-by: Peter Robinson Cc: stable@vger.kernel.org # v5.2+ Reviewed-by: Fabio Estevam Link: https://lore.kernel.org/r/20220606161034.3544803-1-pbrobinson@gmail.com Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/imx-sdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -2212,7 +2212,7 @@ MODULE_DESCRIPTION("i.MX SDMA driver"); #if IS_ENABLED(CONFIG_SOC_IMX6Q) MODULE_FIRMWARE("imx/sdma/sdma-imx6q.bin"); #endif -#if IS_ENABLED(CONFIG_SOC_IMX7D) +#if IS_ENABLED(CONFIG_SOC_IMX7D) || IS_ENABLED(CONFIG_SOC_IMX8M) MODULE_FIRMWARE("imx/sdma/sdma-imx7d.bin"); #endif MODULE_LICENSE("GPL");