Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp46070rdb; Sun, 17 Dec 2023 20:31:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9YmZh+1qZZtW02N/81NMXDIr0J3Md6m+yOxerBl3fHIJDRWqFX6fQHclkGBrs14rKO/to X-Received: by 2002:a50:c8c3:0:b0:551:fbc0:350f with SMTP id k3-20020a50c8c3000000b00551fbc0350fmr4418728edh.46.1702873873807; Sun, 17 Dec 2023 20:31:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702873873; cv=none; d=google.com; s=arc-20160816; b=wcht5l3RVyHjK8VrSzDr3uHnMy71Xr06paZdlo0RLF/Z/roNAK/RKQhxECUFDTmMHj ZkbnT26+a7OOtICo4bZc18LnT6jV7f7ce9Fn2wpmIawQkhHdYSqd1Lx+9UOuEvtW3rXR D6hLBG6CD2oZa0sP+eNAY3o+JQTt/xn/hK5TygKvYmwst+2fu2gazRXKoMAG71ujKlOK l2fK/UTGsx7zza52K7r11yPmhHq+WYc29ROz+2+pCTDl2oSmnbDPk8765+C2/gcqCvL6 IdMDXSPoAyvzMbAkPP0RALAexfuDZwnm1AwAXStgv9n9JsXfOGr15g5VoHgzF44GrIF2 NyQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=vGmCg4Mp8B+JjXs/7nAxIenV+8KYuMwdscLZTOUU4gs=; fh=qac2d4O3u6Hurqqb75dH8n/P+uRWronSF4o3LwwIohU=; b=BQP8FA9fHQT1XMr+jFixlDUXEFVlA6IKOsZhcl8n8Si5B6ps7Qj2+EKOb65wTse+PJ lXEL+Su9SFVFCI7qHKHl5xSLoXonQQNQxHjAOLYKRvYAZH035LvnYYX9QU3o6WBDdOrP jpd5272EPWXLBRAGU1EkGnLckQR3GiP5askHvt1c5f9s1yN3BeGTwD8XJMJlpxwvW4EW 6QMlTthLLidvPnypfQ8iHkioATsR+X/QaHG/JFRweEYIVuPNNN8P0oGLgUGpH9Pe+hem 0+2io4+YadzMwI3DhOiiK0Oh4BdnLMUHzej2XXjkXEWiggEMRqzr1nuOCaDPJWONGLvW UOGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lNRMfDNB; spf=pass (google.com: domain of linux-kernel+bounces-2990-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b15-20020a509f0f000000b00553405803fbsi742788edf.483.2023.12.17.20.31.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 20:31:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2990-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lNRMfDNB; spf=pass (google.com: domain of linux-kernel+bounces-2990-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 850BE1F2187A for ; Mon, 18 Dec 2023 04:31:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17694613A; Mon, 18 Dec 2023 04:31:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="lNRMfDNB" X-Original-To: linux-kernel@vger.kernel.org Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 1AAE2566E; Mon, 18 Dec 2023 04:31:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3BI4Ucc9088169; Sun, 17 Dec 2023 22:30:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1702873838; bh=vGmCg4Mp8B+JjXs/7nAxIenV+8KYuMwdscLZTOUU4gs=; h=Date:CC:Subject:To:References:From:In-Reply-To; b=lNRMfDNByrxwoxRb3CWyO6bjHIZYNn60+dZtK68+icSEJ/DZWpS3chrzfHwZgSC/C ylKZ2idRb5ySskAJPOA+nYDQrAfwFia6hMUXezBbS2HLJSiPZrkCLi31qMEm/qYtMl LXSEM0co/SOu5lA2FLAoKR9k8O7C3e/ec87NVj8w= 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 3BI4UcSo007405 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 17 Dec 2023 22:30:38 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) 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; Sun, 17 Dec 2023 22:30:37 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE109.ent.ti.com (10.64.6.30) 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; Sun, 17 Dec 2023 22:30:37 -0600 Received: from [172.24.227.9] (uda0492258.dhcp.ti.com [172.24.227.9]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3BI4UYJ9057180; Sun, 17 Dec 2023 22:30:35 -0600 Message-ID: Date: Mon, 18 Dec 2023 10:00:34 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird CC: , , , , , , Subject: Re: [PATCH v2 3/4] dmaengine: ti: k3-udma-glue: Add function to request TX channel by ID Content-Language: en-US To: =?UTF-8?Q?P=C3=A9ter_Ujfalusi?= References: <20231212111011.1401641-1-s-vadapalli@ti.com> <20231212111011.1401641-4-s-vadapalli@ti.com> <800ccf2e-65cc-4524-8a42-1657a5906482@gmail.com> <4f13681a-dc13-4de2-a0d5-9f85a4c350d4@ti.com> <604657b5-0b88-4108-afd3-8cc88e10b16c@gmail.com> From: Siddharth Vadapalli In-Reply-To: <604657b5-0b88-4108-afd3-8cc88e10b16c@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 17/12/23 16:48, Péter Ujfalusi wrote: > > > On 15/12/2023 08:08, Siddharth Vadapalli wrote: >>>> err: >>>> @@ -395,6 +410,40 @@ struct k3_udma_glue_tx_channel *k3_udma_glue_request_tx_chn(struct device *dev, >>>> } >>>> EXPORT_SYMBOL_GPL(k3_udma_glue_request_tx_chn); >>>> >>>> +struct k3_udma_glue_tx_channel * >>>> +k3_udma_glue_request_tx_chn_by_id(struct device *dev, struct k3_udma_glue_tx_channel_cfg *cfg, >>>> + struct device_node *udmax_np, u32 thread_id) >>> >>> udmax_np is not dev->of_node ? >> >> I am not sure I fully understand the question. If you meant to ask if the driver >> which uses this API will not have its device's of_node set to udmax_np, then yes >> that's correct. >> >> The driver shall be probed over RPMsg-bus, due to which its device's of_node >> will not be udmax_np. Additionally, the udmax_np is the device-tree node of one >> of the DMA Controllers described in the device-tree. The driver shall obtain the >> reference to the udmax_np node using the API: >> of_find_compatible_node() >> with the compatible to be passed to the above API being a part of the driver's >> data. Thus, it is possible to specify which DMA Controller to use by specifying >> the compatible in the driver's data. I hope that I have answered your question. >> Please let me know otherwise. > > I see, thank you for the detailed explanation! > >> Thank you for reviewing the series. I will rename the API as mentioned above and >> if the question you had above regarding the of_node has been addressed, I will >> post the v3 series. Kindly let me know. > > I don't have other open issues, thanks for the updates > Thank you for the confirmation. I will implement your suggestions and post the v3 series. -- Regards, Siddharth.