Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1843787lql; Wed, 13 Mar 2024 09:35:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXVpM6yDzXl3ti+hAldoYvQ4PpNXd4H+RTeDmuNxAGtBnji3FT2MAJrGreED2L0UBJKxJ/Ze/P4eHZWIztM6kSAAGaKf6TcG3Dc99/vQ== X-Google-Smtp-Source: AGHT+IHb6EUGBR2oulfVK0+qwsR/nA25GBQHhreJ9vcQkefoQQIEPGCYr5SIlO44GeVy6IWbuL64 X-Received: by 2002:a17:903:11c6:b0:1db:8fd6:915e with SMTP id q6-20020a17090311c600b001db8fd6915emr4792847plh.33.1710347757503; Wed, 13 Mar 2024 09:35:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710347757; cv=pass; d=google.com; s=arc-20160816; b=kopZQ+I5EMRpAVNMiq+mc7w2USGrSNGeD9Ji6oATSgKJxz6kB8hBF5fKhZiufnoFOI Id4gNc1exhrTljSZFgAkxO5y/j2zSGkxSCo4h51n+9laOUz0LACwUqkMsA5w0u0ROE1g YXm6Rj38qNPtfkTxtRvZnjBRMHHHcYpRO1bepGaSu8xbOewywOIc57vTLOlppVtZGwSn aYzXH1cOaZ8GA0WU2nW9qJRxtCLQHfIhzn27FOR8V5kD/S2/lj/qiho6gOABSZjk0/np viHuCRIHM82QRNLmmg3WGeov8BlxWOQHxOQwdxSVj/Mm1QmOxbcoOfc6nnAo3ATR1lrD Hkzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=idC3fhlXzDWlTqhcH9CXLxpZe7/lQnrgSnJggsmDhFY=; fh=NF0sCU5/HXJK8MALvPAj2ApePpMPKsPAvrUPCgTM5AI=; b=eQTJNpltrnnlC0B2fmWL7FT2rXibFHsMKQSeQJCNEkySJAToefaQwwk/7gGXsL0fEL Y/JTGHwDysODFyUOJwrYaKi7LNPy+b9mTgPUb3ZnET6qBSIXiWyvz3cNVfyFj2h/tZ/K XzC/R5e+O8E9R/qTvuUcfkrjYncc/qxxl9KRBoogBTALVTbzCrSs/6NpMXQO0UL0taGx ZZp5OR61oJqlKK+b3EqN9/rq2pjFu+syETa8fKyVhK6puXA4MGbr/C/7Z6pPqTAnmpj9 osY1BvCOWbVusd8VrkfEHMwgBa7xPkLt8xgnFK35Db4E2XMiXIhQtXuplnB7ZDVUHeHG glUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M/fk1gT8"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101745-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p7-20020a1709026b8700b001dc4b6c737dsi8952256plk.338.2024.03.13.09.35.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 09:35:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101745-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M/fk1gT8"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101745-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5ECA9B22CCA for ; Wed, 13 Mar 2024 16:34:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7DCE55C08; Wed, 13 Mar 2024 16:32:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M/fk1gT8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A59253E30; Wed, 13 Mar 2024 16:32:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710347567; cv=none; b=SRd4Oz4yxOxjt5XzzF5bQr3x3uCb+0wGY3uz/HWCOPJgDSPmy7Gjb9XjSKpUEuTnWMto1SY6cIX0/aNHsr4angr7urhnei3XkKqannqISOTiR8I6X3jyNthjzFy8GpRT27/1Ud8eK+HfhC2reN3Ti/3CIBjBLYkNVeQf959CObk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710347567; c=relaxed/simple; bh=s2efhrQBCbHJnbdZjOb5z7wBCsEMxP4MrYOva+cNMf4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sxBNTexlDdJcIsFIJ6unQMJjfjIJe32jhrDhgaoW+TBLEMJs6BlEJUc1bxW964iULbroGWkU/biJuALFRD038egnKCxaQDcg/l4HHqKAMEbZDc5KNWJegn7z1pqCqIv5OmrQviLgw0cDorxRNPRsBQ+bgNaog9nDv3F8q4C0R0A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M/fk1gT8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0330C43394; Wed, 13 Mar 2024 16:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710347566; bh=s2efhrQBCbHJnbdZjOb5z7wBCsEMxP4MrYOva+cNMf4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M/fk1gT8OIZXzKqIZbzoaaeztVkVBPNTEV65N+b8wC12PwOubzrqMYxaQMeRcy+tt p+NQ6u3zdCTd9QcmRGM4GsjDHCIBFlGVtEGFxYqji+146AUciAR9WTOvHf31uFrzU3 lJMhDi3ISFPSX/Tkx2/bHBC2HAdRBLgy3cLEETb7xujLDTWjpXdxFm6Ed4Y8mxsYVg OvZ7x6YI8BrchLJJb/OzUvczNXlILalYGnr0S6LR4MhGG2OZWRB2bU9RdWDwDN4SYX YFnBdAetWJ0bn5QT0Kn7FysIFyasvsU6omwVXV+E21VyTe/2tisbFPpjdoQLUOJvNE SqcTQGts4rcyA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Frank Li , Vinod Koul , Sasha Levin Subject: [PATCH 6.7 06/61] dmaengine: fsl-edma: utilize common dt-binding header file Date: Wed, 13 Mar 2024 12:31:41 -0400 Message-ID: <20240313163236.613880-7-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240313163236.613880-1-sashal@kernel.org> References: <20240313163236.613880-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.7.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-6.7.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 6.7.10-rc1 X-KernelTest-Deadline: 2024-03-15T16:32+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Frank Li [ Upstream commit d0e217b72f9f5c5ef35e3423d393ea8093ce98ec ] Refactor the code to use the common dt-binding header file, fsl-edma.h. Renaming ARGS* to FSL_EDMA*, ensuring no functional changes. Signed-off-by: Frank Li Link: https://lore.kernel.org/r/20231114154824.3617255-4-Frank.Li@nxp.com Signed-off-by: Vinod Koul Stable-dep-of: a79f949a5ce1 ("dmaengine: fsl-edma: correct max_segment_size setting") Signed-off-by: Sasha Levin --- drivers/dma/fsl-edma-main.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c index 75cae7ccae270..45cc419b1b4ac 100644 --- a/drivers/dma/fsl-edma-main.c +++ b/drivers/dma/fsl-edma-main.c @@ -9,6 +9,7 @@ * Vybrid and Layerscape SoCs. */ +#include #include #include #include @@ -21,12 +22,6 @@ #include "fsl-edma-common.h" -#define ARGS_RX BIT(0) -#define ARGS_REMOTE BIT(1) -#define ARGS_MULTI_FIFO BIT(2) -#define ARGS_EVEN_CH BIT(3) -#define ARGS_ODD_CH BIT(4) - static void fsl_edma_synchronize(struct dma_chan *chan) { struct fsl_edma_chan *fsl_chan = to_fsl_edma_chan(chan); @@ -155,14 +150,14 @@ static struct dma_chan *fsl_edma3_xlate(struct of_phandle_args *dma_spec, i = fsl_chan - fsl_edma->chans; fsl_chan->priority = dma_spec->args[1]; - fsl_chan->is_rxchan = dma_spec->args[2] & ARGS_RX; - fsl_chan->is_remote = dma_spec->args[2] & ARGS_REMOTE; - fsl_chan->is_multi_fifo = dma_spec->args[2] & ARGS_MULTI_FIFO; + fsl_chan->is_rxchan = dma_spec->args[2] & FSL_EDMA_RX; + fsl_chan->is_remote = dma_spec->args[2] & FSL_EDMA_REMOTE; + fsl_chan->is_multi_fifo = dma_spec->args[2] & FSL_EDMA_MULTI_FIFO; - if ((dma_spec->args[2] & ARGS_EVEN_CH) && (i & 0x1)) + if ((dma_spec->args[2] & FSL_EDMA_EVEN_CH) && (i & 0x1)) continue; - if ((dma_spec->args[2] & ARGS_ODD_CH) && !(i & 0x1)) + if ((dma_spec->args[2] & FSL_EDMA_ODD_CH) && !(i & 0x1)) continue; if (!b_chmux && i == dma_spec->args[0]) { -- 2.43.0