Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2348823rdb; Fri, 8 Dec 2023 05:50:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IGk/vi9fCz0cZ2UmxMEM8PBwQrDKDQM4hUY7DT5+L6YfulwXQbUF0HVgY9FUW1J7xs5Kc3i X-Received: by 2002:a17:903:245:b0:1d0:c1fe:694c with SMTP id j5-20020a170903024500b001d0c1fe694cmr50051plh.47.1702043413692; Fri, 08 Dec 2023 05:50:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702043413; cv=none; d=google.com; s=arc-20160816; b=0y5z/hMsah8N1VEgVZKg3D5fsieMPqa9lYpqPBbwK0ehsV4M/LNxQcg2qmU6LU0lZw U8sFi0lT1KOCy30m0qLnp6h3LaNLFfn8vUs9xl9EMCC3R7/t9U69CzRm1enRYlY1OLy5 u8q8H22QfGWRPCchI4DdpznnI/WYW8CM9z78yZxhdAYW5RwQz99KACVyvsxtvQ/xxcp5 dolmt+PiXke/77bIUNx1fpPWoybeIdUnrs6XXiW5VX427ndwaX2Xciu4bwwToGduJNDC 3zyyC4dMf24ExCqs0JxFMzVALODw+a4DIzvc4YAZV4mZu/VcSQy3QdUqbUWMpPMyYzv2 qrcg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=2J1S9Zi1hgGr9QnLjCXNZLKTR1OT7hgWrVoPzTgU3fo=; fh=1pmAyp3xZ8sWUV98t98q7URUgX68KjDmTZriOyZWZ/U=; b=hgrY779Nu90lVp3pm6DrlAbS1Y8Bdv0Bf9YC1koZRy9+WJCxsT0OU9HZBN5XFWcQCX p+4ML6XurSunWcYA3tVQG45b1jlcpxGjtpD6joNF+iPYpWB7Oh43bbTb+bCPXOu4YdaB oswu2zntElS11X0De9ZVKweQRXhNnCbgKZ7mZBjslXWmQqTqtoC7EmKYKMvynQwwhVW2 VdRGPbHKiDUrP0KcnIqCTyNL04JIwBZnvFgIOSDMGTlZXlmLH/3oczMoyLX2DmXSgFsa YSRh/awFbp6Xp1hPLS29Z3MYpr0t7TRPWIyslbK/pDWofholjHa/5IKuC7Fenb12V9GD kOoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alatek.krakow.pl header.s=99EE5E86-D06A-11EC-BE24-DBCCD0A148D3 header.b=meqXbC49; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alatek.krakow.pl Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id a2-20020a170902ecc200b001cfbf5c045bsi1698881plh.458.2023.12.08.05.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 05:50:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=fail header.i=@alatek.krakow.pl header.s=99EE5E86-D06A-11EC-BE24-DBCCD0A148D3 header.b=meqXbC49; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alatek.krakow.pl Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id ECCFA87943BA; Fri, 8 Dec 2023 05:50:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573841AbjLHNt5 (ORCPT + 99 others); Fri, 8 Dec 2023 08:49:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573812AbjLHNtz (ORCPT ); Fri, 8 Dec 2023 08:49:55 -0500 Received: from helios.alatek.com.pl (helios.alatek.com.pl [85.14.123.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0BED1986; Fri, 8 Dec 2023 05:50:01 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by helios.alatek.com.pl (Postfix) with ESMTP id BE3052D00F54; Fri, 8 Dec 2023 14:49:59 +0100 (CET) Received: from helios.alatek.com.pl ([127.0.0.1]) by localhost (helios.alatek.com.pl [127.0.0.1]) (amavis, port 10032) with ESMTP id eCCVI8fAe3PD; Fri, 8 Dec 2023 14:49:59 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by helios.alatek.com.pl (Postfix) with ESMTP id 935302D00F52; Fri, 8 Dec 2023 14:49:57 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 helios.alatek.com.pl 935302D00F52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alatek.krakow.pl; s=99EE5E86-D06A-11EC-BE24-DBCCD0A148D3; t=1702043397; bh=2J1S9Zi1hgGr9QnLjCXNZLKTR1OT7hgWrVoPzTgU3fo=; h=From:To:Date:Message-Id:MIME-Version; b=meqXbC49L2+LNgY7RDyOCE0x73UEbUFwYtZQm609vfFpXnHWTSG+in4MDHZ793YZq 3nvhgD5BOMIksZO8vyABq8v00iLeXGBzKlrYtOgKtsDQ/YoWx5Roe8JUFO06uVo5i5 gWoLauyo5OsJIfDqFRGdru1jbbITqnjUwryu3RAS9TQ7U/f0tQaNkd5/1HdpcBlwfn eLe9ZkSyei37nzpc0fXGv7PUfI2hrRLI2V8MdvxJYSqtEFzd9XTIVbK49zCHLzkpG1 8LLCPoywu3VK2gP0gKdBpNk4Ai7EqRcauCEO+nyeDNq3s2x+8Zk0QXp3+YrJUym/op 8ZUZytOO6iJ8A== X-Virus-Scanned: amavis at alatek.com.pl Received: from helios.alatek.com.pl ([127.0.0.1]) by localhost (helios.alatek.com.pl [127.0.0.1]) (amavis, port 10026) with ESMTP id FWkyfP5pdvJN; Fri, 8 Dec 2023 14:49:57 +0100 (CET) Received: from localhost.localdomain (unknown [10.125.125.6]) by helios.alatek.com.pl (Postfix) with ESMTPSA id 0E75D2D00F51; Fri, 8 Dec 2023 14:49:57 +0100 (CET) From: Jan Kuliga To: lizhi.hou@amd.com, brian.xu@amd.com, raj.kumar.rampelli@amd.com, vkoul@kernel.org, michal.simek@amd.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, miquel.raynal@bootlin.com Cc: jankul@alatek.krakow.pl Subject: [PATCH v4 1/8] dmaengine: xilinx: xdma: Get rid of unused code Date: Fri, 8 Dec 2023 14:49:22 +0100 Message-Id: <20231208134929.49523-2-jankul@alatek.krakow.pl> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231208134838.49500-1-jankul@alatek.krakow.pl> References: <20231208134838.49500-1-jankul@alatek.krakow.pl> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 08 Dec 2023 05:50:11 -0800 (PST) Get rid of duplicated macro definitions, as these macros are defined earlier in the file. Also, get rid of unused member of 'struct xdma_desc'. Signed-off-by: Jan Kuliga --- drivers/dma/xilinx/xdma-regs.h | 12 ------------ drivers/dma/xilinx/xdma.c | 2 -- 2 files changed, 14 deletions(-) diff --git a/drivers/dma/xilinx/xdma-regs.h b/drivers/dma/xilinx/xdma-reg= s.h index e641a5083e14..0b17a931f583 100644 --- a/drivers/dma/xilinx/xdma-regs.h +++ b/drivers/dma/xilinx/xdma-regs.h @@ -134,18 +134,6 @@ struct xdma_hw_desc { #define XDMA_SGDMA_DESC_ADJ 0x4088 #define XDMA_SGDMA_DESC_CREDIT 0x408c -/* bits of the SG DMA control register */ -#define XDMA_CTRL_RUN_STOP BIT(0) -#define XDMA_CTRL_IE_DESC_STOPPED BIT(1) -#define XDMA_CTRL_IE_DESC_COMPLETED BIT(2) -#define XDMA_CTRL_IE_DESC_ALIGN_MISMATCH BIT(3) -#define XDMA_CTRL_IE_MAGIC_STOPPED BIT(4) -#define XDMA_CTRL_IE_IDLE_STOPPED BIT(6) -#define XDMA_CTRL_IE_READ_ERROR GENMASK(13, 9) -#define XDMA_CTRL_IE_DESC_ERROR GENMASK(23, 19) -#define XDMA_CTRL_NON_INCR_ADDR BIT(25) -#define XDMA_CTRL_POLL_MODE_WB BIT(26) - /* * interrupt registers */ diff --git a/drivers/dma/xilinx/xdma.c b/drivers/dma/xilinx/xdma.c index 290bb5d2d1e2..ddb9e7d07461 100644 --- a/drivers/dma/xilinx/xdma.c +++ b/drivers/dma/xilinx/xdma.c @@ -78,7 +78,6 @@ struct xdma_chan { * @vdesc: Virtual DMA descriptor * @chan: DMA channel pointer * @dir: Transferring direction of the request - * @dev_addr: Physical address on DMA device side * @desc_blocks: Hardware descriptor blocks * @dblk_num: Number of hardware descriptor blocks * @desc_num: Number of hardware descriptors @@ -91,7 +90,6 @@ struct xdma_desc { struct virt_dma_desc vdesc; struct xdma_chan *chan; enum dma_transfer_direction dir; - u64 dev_addr; struct xdma_desc_block *desc_blocks; u32 dblk_num; u32 desc_num; -- 2.34.1