Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5098685iog; Wed, 22 Jun 2022 11:56:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uQZdQvnBTqpnmmrxe0vtNISvVx7eY1g7DbSxppKB/Rqowjnq4O6b6jXynKlITIJc+3dI3P X-Received: by 2002:a63:ee0a:0:b0:40d:2773:16d2 with SMTP id e10-20020a63ee0a000000b0040d277316d2mr4168368pgi.95.1655924184656; Wed, 22 Jun 2022 11:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655924184; cv=none; d=google.com; s=arc-20160816; b=QeokxMAti3mLVDzstiNrM1IRmuzVz5Jq15dmp3+737BUa6yYQwYchNgzbbp1WiT71C 46anCMS9S6S0kRtRNedf2jMzggNBOsoWi/UVatL2CHohFPsLzzhr/8zr7/AliiSf6dsT 4jdOhV/VHkbZL/C5365zj7OjWPe0JkKEUDu3Wga9auG1o/lF2MojifCkoxbLBkGRH89H L5jlnsmDm36KnzWeejLfOs0d76fU/+phrnuAy5OREnhXvkAg3JtWB9BIMpfyewVrRpeq VBbidcooWUdIWdNDq9qmRBFXHbkb6f+jTUYNqQBMVH/f51kVxx7BiRxNc9Mu4ehpKYAa YNuA== 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:dkim-signature; bh=CYaOjfVnaILQJu/smlJqtwr80OXht//XKV2kpqAFSyQ=; b=Wo8/TUD3rNOgWiGdX8QCwhVW+8nJMV6TLGJ6YBwLWZmGRdR47RSPq/YhZ/bTILXUiu 2mBmNnHIulgn8cs+lZ5iiCo8nXfJnLUjPGqALrg1Tygr3aFpY0KoWoNxpXTgyJTdqRO7 wu0YDBLFauF6QniAkuChkgu22GbFPnZ1hwdHye7CqE4tkThMVmiBPiPD9NRy2Xn25ppp zQo7SE2Kn4HOd3R0azOo+I36waKeUHv4Wo/QEfOnRTFy/0KTuQS0M8QWxcxAVG4yDZgy nWxEw9czEveKkwwo9t8HzvuX0iahE5ZsQFeMC56f/C9KXUodJqS3AYR+yreomi338e4r 82yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Em4DNFxZ; 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 z22-20020aa79496000000b005254e555901si1485869pfk.90.2022.06.22.11.56.12; Wed, 22 Jun 2022 11:56:24 -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=Em4DNFxZ; 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 S1359347AbiFVSyR (ORCPT + 99 others); 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 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 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