Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5178705iog; Wed, 22 Jun 2022 13:51:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tqGzwJGByaldc3Yscm1bk+pxNxm7u4ZrAFQglYRr3iUcC7uT2S3VbX9EVxOZokee/gS6Kz X-Received: by 2002:a05:6402:5c8:b0:433:545f:a811 with SMTP id n8-20020a05640205c800b00433545fa811mr6390205edx.101.1655931112823; Wed, 22 Jun 2022 13:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655931112; cv=none; d=google.com; s=arc-20160816; b=VoiHGnCACY7JAG71LtMEntTOL2audcm4WKKpFXr7oaBKkum4meKT6LN3FxwksTcJT4 51Nx5WuatOU3Py3iL+ePjjbO6eEUejfcJpUjNQ3nYyAotdJMa++U4Ea183mnzQbyFovc ZtzfRH/X2y887socYyFBiCT+8cUPfOz/pEkytZjH0JQBuo/8Hsc/Z/A6cw1b8GquYCfo tlfQL1pyorcNJbQO9doO2XpEP2CL/rFXgseWl3TBapp8IJzYZk48fSTjfVpBV/NSbo3U dixcwn/TZSIK1C8XqeYrdnOVDJ7Hc/Skk4azrKqi8FeIeDObmutF58xZSFuuXHXXauXm od1A== 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; bh=gTHQl37ImO2snhRGi/8eTnMlLv9eZM6I/+IMtw4hS/c=; b=i69G+YCTkvRqMpPFLmQPenXZ6LjVmwVR+W5wA8N/vSdpQ6BF8+snzoeDiKO85Memvd iycpZZ/1xlEHRy92UV8qo7XCEaefz0bBI0N7f9TlZO99novkaUbQO0LUSbVZUH51nq+X BcC9QTTr1VpP3LbE366v1ALCIdYeFyBwo1zlK2xckc9fS6DS4hM0hB1iNNREJ6Wf76vN gAi13VCd6ja+h15PfOotccY+8nYsO1/FgxOLxrDV5GSvIuDb7K2yFZlPA7XDr/P7rI8j dfx0oQha2ruagvQNuDzDkEwVRmiNIgPx3YYKAmB32zs04V3l7NZX2HDb5m+sVUoSmPso A2dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="HrQ7LWP/"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v21-20020a056402349500b004359fffce8csi4425228edc.573.2022.06.22.13.51.27; Wed, 22 Jun 2022 13:51:52 -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=@intel.com header.s=Intel header.b="HrQ7LWP/"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376662AbiFVUFS (ORCPT + 99 others); Wed, 22 Jun 2022 16:05:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359595AbiFVTif (ORCPT ); Wed, 22 Jun 2022 15:38:35 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1F4C3FD88; Wed, 22 Jun 2022 12:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655926709; x=1687462709; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IWEAw0BMzgbgDY1rwfN7uYNpUJiLcW/iUQ1Hnk7la2k=; b=HrQ7LWP/OX/1yIB0icKU98J+jztuKO32SLlqIngKMr91OnyuIO7brStr t5PEvUBBXm4cAnRT5EbTCGimXrZ4IvlWreOZsGQ22ml5x3cqkeMCEPUj0 //9Y2YrkJh3jZX1ip6R2dktVpdnry5E14SD2xosws+KGSclPBlBkWcoFD pMT/i6qx7zGuUpkR16FMVB1SkVkHj8lpEuINKJf+XOYnymn+OuAT8LY4q nVReOEMpckzfsdSHdMEzYTzGlu9MVkHEDU4d7Wwnu+0HbaXp+R4oNgzYk gPhh+qQM+OMEqvH97LYLQQ40waaDsETrgJItgaolxuVAwiBT6tD4Fy92W A==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="305983101" X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="305983101" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 12:38:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="715542100" Received: from bwalker-desk.ch.intel.com ([143.182.136.162]) by orsmga004.jf.intel.com with ESMTP; 22 Jun 2022 12:38:29 -0700 From: Ben Walker To: vkoul@kernel.org Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 09/15] dmaengine: Remove last, used from dma_tx_state Date: Wed, 22 Jun 2022 12:37:47 -0700 Message-Id: <20220622193753.3044206-10-benjamin.walker@intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220622193753.3044206-1-benjamin.walker@intel.com> References: <20220503200728.2321188-1-benjamin.walker@intel.com> <20220622193753.3044206-1-benjamin.walker@intel.com> MIME-Version: 1.0 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 Nothing uses these and they don't convey usable information. Signed-off-by: Ben Walker --- drivers/dma/dmaengine.h | 4 ---- include/linux/dmaengine.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/drivers/dma/dmaengine.h b/drivers/dma/dmaengine.h index e72876a512a39..08c7bd7cfc229 100644 --- a/drivers/dma/dmaengine.h +++ b/drivers/dma/dmaengine.h @@ -74,8 +74,6 @@ static inline enum dma_status dma_cookie_status(struct dma_chan *chan, complete = chan->completed_cookie; barrier(); if (state) { - state->last = complete; - state->used = used; state->residue = 0; state->in_flight_bytes = 0; } @@ -96,8 +94,6 @@ static inline void dma_set_tx_state(struct dma_tx_state *st, if (!st) return; - st->last = last; - st->used = used; st->residue = residue; } diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index c34f21d19c423..e3e5311b6bb64 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -716,16 +716,12 @@ static inline struct dma_async_tx_descriptor *txd_next(struct dma_async_tx_descr /** * struct dma_tx_state - filled in to report the status of * a transfer. - * @last: last completed DMA cookie - * @used: last issued DMA cookie (i.e. the one in progress) * @residue: the remaining number of bytes left to transmit * on the selected transfer for states DMA_IN_PROGRESS and * DMA_PAUSED if this is implemented in the driver, else 0 * @in_flight_bytes: amount of data in bytes cached by the DMA. */ struct dma_tx_state { - dma_cookie_t last; - dma_cookie_t used; u32 residue; u32 in_flight_bytes; }; -- 2.35.1