From patchwork Fri Oct 28 11:53:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Kitt X-Patchwork-Id: 12243 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp795550wru; Fri, 28 Oct 2022 05:20:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Fy3gP0Zx6rltLPo6l8iHMPyPmjqnq0E91y2GGlMJkOqMhdn/JZgSw/OTK6ZaXJV5bVFyG X-Received: by 2002:a17:906:5a4b:b0:78d:8790:d4a1 with SMTP id my11-20020a1709065a4b00b0078d8790d4a1mr46696388ejc.329.1666959657162; Fri, 28 Oct 2022 05:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666959657; cv=none; d=google.com; s=arc-20160816; b=GfpF7aekBoFaVW1NAJC5AXc4F/MKAwB13P0DP0uz4BwUursC5tkyUSEQSXqqs12olF FTQ8iBb0YhWmFDNl1hd2cD439xjWP2vxMyymHOyHk8ix83MhaLMWJtwQfv12UCKwC7pJ Xl4LoUVvlAXxkooIiqS5MFEgwODENVkRolWNOZR7t1rsHRYwVWOR0hMtilt+R/EsxOM6 O76z1oV9c8ZwDmiC6/QVecJSLYpEg8rZWiUgCMcffP+UxnC8Su5f92UEL9+nC2k36Fa6 Ah3jDie6useFTbM6I0W+xudqJSGsCMRMcyFqqMDito5ARdKSNDQB6LxsBrv3iessLqZL ioBw== 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 :message-id:date:subject:cc:to:from; bh=r6nOET+c/yFprQMwjoclrasZ6uiXVCpOMUAeogB8eM0=; b=ki2+Dq2oHjkG8irelCbWbWFW4he6C3Havo4P4DN1aC2/KqYjbT4jusUpHuD2Hgt/HC BU0F03sGT7YUDYb8s6NPN9iFMuSh4Z/kmB06dalH4SyCOQIglIgR/leODbJe9qeSrL+R MuubuZd8AMcMmhTQiCv3EBTPpr0mf+byz/XITBHc0fN3vK16awfDItz+kCKzJhOaMBps KLbC5DvFXxy1slrK5lrqrN2pdUDtzk1ZqlMelR733o9Y7abluQX7Tw1ZYK1jAakWdl5E MgRlmqwpOF72RdFJfo8DVr3UooS8dmdOhqhMPtquy/HMCo3Z4c3lP/OZrUBDwEOa5R5y Z/TQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ss3-20020a170907c00300b00780e022dfb8si4071131ejc.494.2022.10.28.05.20.30; Fri, 28 Oct 2022 05:20:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230466AbiJ1MK3 (ORCPT + 99 others); Fri, 28 Oct 2022 08:10:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230443AbiJ1MKK (ORCPT ); Fri, 28 Oct 2022 08:10:10 -0400 X-Greylist: delayed 599 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 28 Oct 2022 05:09:30 PDT Received: from 14.mo584.mail-out.ovh.net (14.mo584.mail-out.ovh.net [46.105.40.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 759D146857 for ; Fri, 28 Oct 2022 05:09:29 -0700 (PDT) Received: from player792.ha.ovh.net (unknown [10.110.103.195]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 3107F26292 for ; Fri, 28 Oct 2022 11:54:03 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player792.ha.ovh.net (Postfix) with ESMTPSA id AFB223030BAFD; Fri, 28 Oct 2022 11:53:58 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-109S00381dfec32-158c-4e50-a43f-6652ca230d89, 064883BA926DE173662F194B93470FD4AA5384D5) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Vinod Koul Cc: Geert Uytterhoeven , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Stephen Kitt Subject: [PATCH] dmaengine: sh: Remove unused shdma-arm.h Date: Fri, 28 Oct 2022 13:53:36 +0200 Message-Id: <20221028115336.1052782-1-steve@sk2.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Ovh-Tracer-Id: 14040816263407896198 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvgedrtdeigdeggecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeelgeetueejffejfeejvefhtddufeejgfetleegtddukeelieelvddvteduveejtdenucfkphepuddvjedrtddrtddruddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeoshhtvghvvgesshhkvddrohhrgheqpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehkeegpdhmohguvgepshhmthhpohhuth X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747933889463305044?= X-GMAIL-MSGID: =?utf-8?q?1747933889463305044?= shdma-arm.h was introduced with commit 1e69653d40f1 ("DMA: shdma: add r8a73a4 DMAC data to the device ID table"), and its sole user was removed with commit a19788612f51 ("dmaengine: sh: Remove R-Mobile APE6 support"). The latter mentions r8a73a4.dtsi but shdma support was removed from that with commit cfda82037780 ("ARM: dts: r8a73a4: Remove non-functional DMA support"), so it seems this is safe to remove. Signed-off-by: Stephen Kitt Reviewed-by: Geert Uytterhoeven --- drivers/dma/sh/shdma-arm.h | 48 -------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 drivers/dma/sh/shdma-arm.h base-commit: 23758867219c8d84c8363316e6dd2f9fd7ae3049 diff --git a/drivers/dma/sh/shdma-arm.h b/drivers/dma/sh/shdma-arm.h deleted file mode 100644 index 7459f9a13b5b..000000000000 --- a/drivers/dma/sh/shdma-arm.h +++ /dev/null @@ -1,48 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * Renesas SuperH DMA Engine support - * - * Copyright (C) 2013 Renesas Electronics, Inc. - */ - -#ifndef SHDMA_ARM_H -#define SHDMA_ARM_H - -#include "shdma.h" - -/* Transmit sizes and respective CHCR register values */ -enum { - XMIT_SZ_8BIT = 0, - XMIT_SZ_16BIT = 1, - XMIT_SZ_32BIT = 2, - XMIT_SZ_64BIT = 7, - XMIT_SZ_128BIT = 3, - XMIT_SZ_256BIT = 4, - XMIT_SZ_512BIT = 5, -}; - -/* log2(size / 8) - used to calculate number of transfers */ -#define SH_DMAE_TS_SHIFT { \ - [XMIT_SZ_8BIT] = 0, \ - [XMIT_SZ_16BIT] = 1, \ - [XMIT_SZ_32BIT] = 2, \ - [XMIT_SZ_64BIT] = 3, \ - [XMIT_SZ_128BIT] = 4, \ - [XMIT_SZ_256BIT] = 5, \ - [XMIT_SZ_512BIT] = 6, \ -} - -#define TS_LOW_BIT 0x3 /* --xx */ -#define TS_HI_BIT 0xc /* xx-- */ - -#define TS_LOW_SHIFT (3) -#define TS_HI_SHIFT (20 - 2) /* 2 bits for shifted low TS */ - -#define TS_INDEX2VAL(i) \ - ((((i) & TS_LOW_BIT) << TS_LOW_SHIFT) |\ - (((i) & TS_HI_BIT) << TS_HI_SHIFT)) - -#define CHCR_TX(xmit_sz) (DM_FIX | SM_INC | RS_ERS | TS_INDEX2VAL((xmit_sz))) -#define CHCR_RX(xmit_sz) (DM_INC | SM_FIX | RS_ERS | TS_INDEX2VAL((xmit_sz))) - -#endif