From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E961C433EF for ; Wed, 22 Jun 2022 18:54:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377740AbiFVSyR (ORCPT ); Wed, 22 Jun 2022 14:54:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377703AbiFVSxz (ORCPT ); Wed, 22 Jun 2022 14:53:55 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F2F13F323; Wed, 22 Jun 2022 11:53:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655924034; x=1687460034; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=22nHq2RPTYBl+xCBcNB+uv2lzSC2PKfcu0Pva/vEmZc=; b=Em4DNFxZtnapY9J6VQ+bOT3FvKK/dN5nSZAA5S+CJnoPCqoi+zMSGHqD TjNa/1JSNM2e3tuadxhLpfeQkTIYEl8NEvoZbF809+wV9/yH6VQK+ZQ4s kgT5nJJ8g3jYp72GslfP3QHuSqrzhfK4Ud7Le3aKFBcGLAqMkc/ueRR+E BwM+dQu5FPx6VEhi1eOKTM70gzoBhbTuv+V0hySp2FCE1+eDXMGh2Bl3R bmR2wi2Zw+ks08F1vHOYRXP5lewEUMjGBrlvjI4+ZBtMsfa5MDXg+64i0 kv3GQJvYGGkW40TJa2WU0/jbHBPRGSq8XbbknDUyxyjU9QKFqpTHFMUHI Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="279282399" X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="279282399" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 11:53:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="715528498" Received: from bwalker-desk.ch.intel.com ([143.182.136.162]) by orsmga004.jf.intel.com with ESMTP; 22 Jun 2022 11:53:53 -0700 From: Ben Walker To: vkoul@kernel.org Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 08/15] dmaengine: Remove dma_async_is_tx_complete Date: Wed, 22 Jun 2022 11:53:49 -0700 Message-Id: <20220622185349.3043598-1-benjamin.walker@intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Everything has now been converted over to dmaengine_async_is_tx_complete, so this can be removed. Signed-off-by: Ben Walker --- include/linux/dmaengine.h | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 44eb1df433e61..c34f21d19c423 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -1439,33 +1439,6 @@ static inline void dma_async_issue_pending(struct dma_chan *chan) chan->device->device_issue_pending(chan); } -/** - * dma_async_is_tx_complete - poll for transaction completion - * @chan: DMA channel - * @cookie: transaction identifier to check status of - * @last: returns last completed cookie, can be NULL - * @used: returns last issued cookie, can be NULL - * - * Note: This is deprecated. Use dmaengine_async_is_tx_complete instead. - * - * If @last and @used are passed in, upon return they reflect the most - * recently submitted (used) cookie and the most recently completed - * cookie. - */ -static inline enum dma_status dma_async_is_tx_complete(struct dma_chan *chan, - dma_cookie_t cookie, dma_cookie_t *last, dma_cookie_t *used) -{ - struct dma_tx_state state; - enum dma_status status; - - status = chan->device->device_tx_status(chan, cookie, &state); - if (last) - *last = state.last; - if (used) - *used = state.used; - return status; -} - /** * dmaengine_async_is_tx_complete - poll for transaction completion * @chan: DMA channel -- 2.35.1