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: 13826751 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F8FF20A5DD for ; Tue, 8 Oct 2024 17:34:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728408863; cv=none; b=rX2eYMNG+a6G1vCzElf/lzE1AtrATjUbaK7fgAEaM95zygiSJ9CeNBYAn7zGayZQFdeLqY/bvWtdeGGsPJvt9zjT7aJR8fPzofWVTtidSjsJKzH6eUn7dah9O48UpXbTvPDJR5/zCuFsX0NQA7s0HeHZeIaEQfYZXtV6pKlupHs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728408863; c=relaxed/simple; bh=j53AEc77GiUPNvrDuZB6BAndEAIGD46chw/Su2ycRBc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dQpQSG5lUn0OdHO+0Ck0oBOQ3oE5/cJ+gESAWdZ9v/ERwTruAHT5j2zA/Zeyc4ubaLw5UYned5nYlOw8/MgWtttxMHzCcywmyFLJ2VkS6U90z2WI7Eb4T5SNxtDDsY7BbWu7S5PfknFqjUCcmztTua32tbQW+HeS3Q3kDjkJVjE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=As52Ct/y; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="As52Ct/y" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728408861; x=1759944861; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=j53AEc77GiUPNvrDuZB6BAndEAIGD46chw/Su2ycRBc=; b=As52Ct/yfi4IhptHUcofIAj49RHAgIlotAc3ytp1PC2FaSuAs2P8vzd0 Gd6dZTANJFnE88c15W3lblaq+TIO953QSZBvkUGvnOnBD4THX0OVNwIf4 f0mJ6IqfQ/406kPQCuB2t5J3lxgPneUHaor2Dy1cImQNSAZs1VNfpEYew Cmw+/uUSgMgVxCErN9n2It76rs4RrFVOxfyFJmTvV+9Je8VZ6nLjwFFtt ZV7eeunb6K8Ju8Ek1eusouxPnj0TLc912HdfJJxLK+Qiz80SNx2s3phpl cUHxMbqda4+UqtepoP1LCCpyJZ6BFGvHgxp9d4Pi/WON+Aal06PcDoXH6 g==; X-CSE-ConnectionGUID: 7UPD39jQSBaVdkVqRtIbqQ== X-CSE-MsgGUID: NhXXtGuFRvimueAeW8QBOA== X-IronPort-AV: E=McAfee;i="6700,10204,11219"; a="27510090" X-IronPort-AV: E=Sophos;i="6.11,187,1725346800"; d="scan'208";a="27510090" 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 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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(-)