From patchwork Sat Nov 11 12:15:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddharth Vadapalli X-Patchwork-Id: 13453103 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 A9797C4332F for ; Sat, 11 Nov 2023 12:16:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LJUCYUOkpG4h0LUfj0JdV6VG3c2TtYOtbU37zoUcfz4=; b=xgjXk3wFXx0gbH nT2U3f5HHM5axaPdarer3cemNqCrRXfNYalxFPILZcIDqmhdrCkEd0PqmCZ06YZ7WjrA5LqEKRej7 BNa21sYgCTGBpGaYDx6pi8RQoZytJIL4XfufPXwOA/wjBIdXe3Umg1lgoFawatB7TKvd2Mn/rBmTk dafFFT2bCEnfXssscZu30wvzBOj2z6VUM/IhR9MDeGm/lqutwq4nSwqBLYOPT5NB8VdQ0DKm8Ecpg 4XtWGlcYBx35IciA3JpRfnw2Rlrl2tb9UfDIYnz516mY5wlS+yMoVPj37nU8kGLYLrJuP9J3BI2IH Ph4nQYnFvxqwPQcdlnQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r1muN-00AmSl-2l; Sat, 11 Nov 2023 12:16:15 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r1muJ-00AmNv-2I for linux-arm-kernel@lists.infradead.org; Sat, 11 Nov 2023 12:16:13 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3ABCFwNs069236; Sat, 11 Nov 2023 06:15:58 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1699704958; bh=drIkQeDrQ69r/4uSlBuE4vgTDEqYk1UD99meQvJ9WS8=; h=From:To:CC:Subject:Date; b=ygle3yJdoEbmobrF7j+pP/ryTKl2M96kaeQ5xBsQe15O87lAQ/Z/J3ytoQurR1RJC 7NLbetd2dlJMANonpBgdwmcfiuNmPftCaikzmy1wLkyuDAEwD1ff+9fO63bsXQ2lfY lH0ZW+UGhBTsTTjWWyxi1G6xtZCtkF+aPjMxbN2Y= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3ABCFwVQ053543 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 11 Nov 2023 06:15:58 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 11 Nov 2023 06:15:58 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Sat, 11 Nov 2023 06:15:58 -0600 Received: from uda0492258.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3ABCFtVV100939; Sat, 11 Nov 2023 06:15:56 -0600 From: Siddharth Vadapalli To: , CC: , , , , , Subject: [RFC PATCH 0/3] Add APIs to request TX/RX DMA channels by ID Date: Sat, 11 Nov 2023 17:45:52 +0530 Message-ID: <20231111121555.2656760-1-s-vadapalli@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231111_041611_817053_EC6930A7 X-CRM114-Status: UNSURE ( 7.89 ) 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 The existing APIs for requesting TX and RX DMA channels rely on parsing a device-tree node to obtain the Channel/Thread IDs from their names. However, it is possible to know the thread IDs by alternative means such as being informed by Firmware on a remote core regarding the allocated TX/RX DMA channel IDs. Thus, add APIs to support such use cases. Series is based on linux-next tagged next-20231110. Regards, Siddharth. Siddharth Vadapalli (3): dmaengine: ti: k3-udma-glue: Add function to parse channel by ID dmaengine: ti: k3-udma-glue: Add function to request TX channel by ID dmaengine: ti: k3-udma-glue: Add function to request RX channel by ID drivers/dma/ti/k3-udma-glue.c | 322 ++++++++++++++++++++++--------- include/linux/dma/k3-udma-glue.h | 8 + 2 files changed, 236 insertions(+), 94 deletions(-)