From patchwork Tue Oct 8 17:27:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13826760 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C75FCEFC35 for ; Tue, 8 Oct 2024 17:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=LwrJyUAccjROrz8HhDTQt6vFwF7MT7lRk1qDb+BaoLQ=; b=cNtIN0/Y/9mjM+DL33wp+5me16 xTagos8JYRjQo8FFG9EUUgqNdQQ2mCArJRVbxkP064zhrGVUg6upxxYZl48L4e+i7X6g1Uctz6i4n l2lFTG6RuCelAm+wagOO0bZb/ayyeJBJoKgV23HYaDQsSW5kE2Iel0Vw9ybO1R8oULDC9Nn476OnT gO97QBJoBuAcUr/2yzlAMi6gI77KWPyvYOa1SBOqYc9ejyLyaOEs9ARdZYuKbbadIBsajcYkLEVXR gQ/8E24QY31M0abTP07YbNHUUEwWItXjqRZczKOMQc1Yy15qK0rElXhKoAqtgeJz9q8muplVPfO7+ 2nBGFgxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syE9x-00000006fcJ-1tYv; Tue, 08 Oct 2024 17:38:09 +0000 Received: from mgamail.intel.com ([192.198.163.17]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syE6M-00000006ekr-0muP for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2024 17:34:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728408866; x=1759944866; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=j53AEc77GiUPNvrDuZB6BAndEAIGD46chw/Su2ycRBc=; b=B4OkFwYUiEPGDYyWiKYcsDVHi7bJbOMFjWVA4pY0wP+vyPRmDZ5nwsmw P61d8WVl4TJbSuMxNUXcRK91pqL8tmnTWrsCTmYU7cdCC8ENuRdcdykSL poYy5f3tAkyqKVvWkXS/kFmleQSNA/OL5DAVoZIVOSz5fCywXPHJ0jiXq 4Q4xr1lqaOmKIIr4H0RTr7+yOcYIxkYvfLNNXLkzpPHfCbTS926paSsHL HQj+yX5uj7Vn8qNQFN4r1n4O6IuZhxwdDnHPYQxFae0fbPTP7KwaL5uKy uSiEpycm1Q4pvpDXcdS1BEHxb0YRD7Piz2YHJ9XH81rGIb/+pHzBIEGQE g==; X-CSE-ConnectionGUID: V1fQTauAR4qSUtCt9iwNhQ== X-CSE-MsgGUID: 9RU0EagNRy6yJuCEzU//Rw== X-IronPort-AV: E=McAfee;i="6700,10204,11219"; a="27510093" X-IronPort-AV: E=Sophos;i="6.11,187,1725346800"; d="scan'208";a="27510093" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2024 10:34:03 -0700 X-CSE-ConnectionGUID: WBcGo37IS5aJ/VNOFGegqA== X-CSE-MsgGUID: WrbJv3PERcuTjWBDtvVFPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,187,1725346800"; d="scan'208";a="106677461" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa001.fm.intel.com with ESMTP; 08 Oct 2024 10:34:00 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 280F326B; Tue, 08 Oct 2024 20:33:59 +0300 (EEST) From: Andy Shevchenko To: Vinod Koul , Paul Cercueil , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Andy Shevchenko Subject: [PATCH v2 0/4] dmaengine: dma_request_chan*() amendments Date: Tue, 8 Oct 2024 20:27:43 +0300 Message-ID: <20241008173351.2246796-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241008_103426_262445_D4335427 X-CRM114-Status: UNSURE ( 8.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Reduce the scope of the use of some rarely used DMA request channel APIs in order to make the step of their removal or making static in the future. No functional changes intended. In v2: - updated the commit messages (Frank) Andy Shevchenko (4): dmaengine: Replace dma_request_slave_channel() by dma_request_chan() dmaengine: Use dma_request_channel() instead of __dma_request_channel() dmaengine: Add a comment on why it's okay when kasprintf() fails dmaengine: Unify checks in dma_request_chan() drivers/dma/dmaengine.c | 16 ++++++++-------- drivers/dma/imx-sdma.c | 5 ++--- include/linux/dmaengine.h | 6 +++--- 3 files changed, 13 insertions(+), 14 deletions(-)