Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5142046iog; Wed, 22 Jun 2022 12:56:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sQAfp23Zoe4bX7Lak2X1HHgg1SndJJXqaWkbGlJHjix2zi3rhqDrE0w1/y+rRBjfVrzK/L X-Received: by 2002:a63:951c:0:b0:40c:f82e:7d36 with SMTP id p28-20020a63951c000000b0040cf82e7d36mr4429443pgd.201.1655927777178; Wed, 22 Jun 2022 12:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655927777; cv=none; d=google.com; s=arc-20160816; b=BDCvHx6wpmCmx0PIZymYEFEzXQZFehIVzA1Zi/FIyPyGO0/fPrAm0PqGhPZhfU4wZR ZTkNN32zmrCSRELoJmDUVL2Tk/TXNBaehC7amNmRBspZcoJ5r0l/cdWWuoXERiCIHV0H qB6P/NLFDO8WLB75uTTXrtqvV2CLp/qu3yAYhMZDMA7CkgWpIOQxGwrALAW8Ee8lJ6IS xi5/ny/zhZHlaSUHylWFLRYaQcns+gqL4ZiYoFTJmvPbJGvt9g2OxiCsHIDWErSgzq3S hYsnilzOGo5HOFsU1TfdE+3y2x/nuQmmbRUhNpRUskML7MstKocsQmptQfq1o+WhvmIr qOnw== 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=CYaOjfVnaILQJu/smlJqtwr80OXht//XKV2kpqAFSyQ=; b=LCC+ugiNswdZoxGImmzq7w4W7Vbil+xMx6cZUOG/6damyUsdYXIjs4XGNifofWVeJR aVzWj7h2H5N9pRgQJvFS37MHbNucY2KHCbbhh7GWdE+vaLgZNHzdqhqawmj5h1znHI+V H1f1vr77rVxVVToqWpFClAObMOBKYjEvym4bAemU126agU8krHhTl77UgZeynAkzY8je nxWGIfaB4pzC7Z9YqtfWCuWRS7J+yDwssjziZXeWv+GZjOV7COPdhIbf5ZYMYPl0N8S+ fEU7kcRo35fwgVXOWz4+N+ss4GZuJBxc8sGipbVtt22EX/hLuI8HE/TJj9mC8A1aiknD s9sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GQSw9aP6; 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 z15-20020a056a00240f00b0051bcab048ecsi26578261pfh.178.2022.06.22.12.56.03; Wed, 22 Jun 2022 12:56:17 -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=GQSw9aP6; 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 S230295AbiFVTjQ (ORCPT + 99 others); Wed, 22 Jun 2022 15:39:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359565AbiFVTie (ORCPT ); Wed, 22 Jun 2022 15:38:34 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D7733FBF9; 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=1655926708; x=1687462708; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=22nHq2RPTYBl+xCBcNB+uv2lzSC2PKfcu0Pva/vEmZc=; b=GQSw9aP6MDjJXW5KxwpLTNo/p1lL6J3To/XcPL3RNHjhLmnKKnXP3U2u gcFmPSnBW5vUvInDo6XwETgeqQIqUeJGADJlmqvyocjRSiauYH2qxv94H BwGiQ7YIvx3HNnaJvCw1V8eOzPSfxEV44OF8Y2PvwMxFl/esMfyMdfuzL wrTTxIdy0P5TbjPzD03BBfH8lxZNbfSsjJYLUmLlCCKgONoZV976L/mBJ PWwrr+qLXNHKt9wmzEfvtpAfwkIA8V7fpzlFu4ReAdeosh0iYzmXsfEhr 940SWRkBDM3NYDERjQ8vwBtty+E7TRWiL9AVL7R2LPBZ0YxQMtXGJ5905 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="305983099" X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="305983099" 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:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="715542095" Received: from bwalker-desk.ch.intel.com ([143.182.136.162]) by orsmga004.jf.intel.com with ESMTP; 22 Jun 2022 12:38:28 -0700 From: Ben Walker To: vkoul@kernel.org Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 08/15] dmaengine: Remove dma_async_is_tx_complete Date: Wed, 22 Jun 2022 12:37:46 -0700 Message-Id: <20220622193753.3044206-9-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 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