Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1246980rbb; Mon, 26 Feb 2024 03:41:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVkpcpXPtwYzzcvp19RW2ERni5PmrmVHqNo6lnMm4rkp+nq6h/63Yl5mCovQmmXhuua3qdiYDdUNdiMzNFqmJmlwhPyArSiriFss2Fvsg== X-Google-Smtp-Source: AGHT+IHm6UsANwuZ5FkE69YsWkVvCr9oQpO7yMbx5g4thkSsGWJ8nbKAKSxuY4bzt71pRahLI22r X-Received: by 2002:a05:6830:1ca:b0:6e4:9f88:536b with SMTP id r10-20020a05683001ca00b006e49f88536bmr2111191ota.12.1708947671173; Mon, 26 Feb 2024 03:41:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708947671; cv=pass; d=google.com; s=arc-20160816; b=0aUOqxDMSkvBA8ulTSQJyHZWFvzFFt8DWobVokIj1ZJ6w08cjZeR/EWWMfR+txPn1i t/kF6R6q2K4nHqnIUmmIIvBCdGqjLtkY49KqEVTGkxeb3KI8ND3Z/n+mzEbOX4kvhcXN 8V750O787LLoICA4qgSep6bbois2kP8jRHkfKJOVxRtyQhi8q/x9eXNE3+6SPHooxEGU RR0Am2cDERu3Oyqg5ROYHRxQEZxsezEP9N1S513kQeGK3H2CsQIcMnWDdwS8P4AuB98W YCYVwQhM/r/r+QfGVWLPl4HAYjwR0/OWetVgnCVrGfrT86KoWdOrB+LVoOzTDLZmFRR/ 9saA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=+w+dz2LhhxLyj9g/T/Ynx7ET7ucJXKJT/WmnsqQcygw=; fh=c0Lhd38wNYav5HNTVfvLUQeiAKEa08WNjr10hYghD+8=; b=xRWhDAyuHEQMtwtP8X6+QCC24Qg6d8dMo83byayJd2gUyJlMwh69OAa776uDPu827H AawfTxF1rwyYJsQVRnUgAlBa6QKaeXlwvdBe8e7qoEnJLn6LMtD9XZ9MxY6Jj3QLl4BJ OQfhZxP0T9JtHif2RWGlFYAClThN89drf0AztayLBB2MACY1xvnvB3smlAy28CT9aFYt ks2GsESNMoaNXbAWLzor6b7C8Rn+vYC+7qZCkL4Ys96gJLy0VPbeBiW4thrHsuVfqbcx GvTe6KKTGHUdPb0MhBfrzfj5t6j8nC+/tTJEc67VbpfjfF+0J4jJXITh0NWDiQs1eSbS BegQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o7NmKcXs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-81292-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 131-20020a630189000000b005d8e1dc1df6si3632138pgb.731.2024.02.26.03.41.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 03:41:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81292-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o7NmKcXs; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-81292-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 61FB628C34A for ; Mon, 26 Feb 2024 11:40:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 05D534F208; Mon, 26 Feb 2024 11:38:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="o7NmKcXs" Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B6224F1EB for ; Mon, 26 Feb 2024 11:38:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708947501; cv=none; b=M70Q4rTEFOYWQflgpPIstXdrznPVqXSBeWMQ+hLPMQsageQSByTFtJOyveWaUZFIxgug6RSzaVKC2lxin6BY5OWPWJHgjM/Nq0QfWh5yGQryhBdUtItMSvk9njXTCiUiNozlY3GEttqmRsh8cd38oJJ0IxBst3CcLIx28GePPg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708947501; c=relaxed/simple; bh=rySUPOYrv9T+HZDbsprHAcPFbuAMziJaAQnsy9yh8Qw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AjoosNCI+mwEj4tW79bFF6bI60QIVCGNCpFu3NpTxmkNNx2hHmogtjdgOl8beiTFHyDNdq7oKideZOJYsbbnaXoTLDZN7+khwJy2QE6DxzWOh/2C5p5CQyYTD1RxcSBVu14A3rn9HCGe5uB21EUodllPrViLGfx3UIFoDuef+RA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=o7NmKcXs; arc=none smtp.client-ip=209.85.222.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-7810827e54eso244519185a.2 for ; Mon, 26 Feb 2024 03:38:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708947498; x=1709552298; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=+w+dz2LhhxLyj9g/T/Ynx7ET7ucJXKJT/WmnsqQcygw=; b=o7NmKcXszo+BqMNkU9Yb3xrTXkDX4fAEdnEZQ//UJo/OzdBqck2rYONAcgwvM+/09N cJLtfzO3Mzij4Cu0GxRVeIKtVNYqISFky24J+yLyJNbHk2hRA52qPMe+3pgH3G879nxE OA+mz8uQHU6IZfJWTALqVsYN6Gj1UlArV1mhdIRm35GKTF19Ljsih9QuDIWsCLD2J+o4 JSBblX61IwUySiMuFveSy6pFiUCXH7uhWYyMek8nizWa27xoWPbMfLYcN+tGJMQiT3p1 UboOwcvt73CmDcmpkiLglqwZzxmauIL2VTCLJzipwPj7HjPcJ3rnSo6JLLOkG0qOJEXj N8MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708947498; x=1709552298; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+w+dz2LhhxLyj9g/T/Ynx7ET7ucJXKJT/WmnsqQcygw=; b=UZvcRJyxel4OwyBgx7C78l1t9OOcRTzvBjQ22a6idb8rwp02zBVSB0s/cEZph7L6va OEH1sQq/VEoqzZCQydR8jDFKdOx7t7maWm8BvRwNtSZ1NYHLsDW2PGTPEgUo+A28b0zJ a6X7JKkhwKiOkjGjeuXiMDdkBn3VwgdIPf1XAc8BO6ioh4yt7ufMrDsJKDZDeN/pwL7f BPZQu1Etw0whWlyK45dh3AvgHtjRN3jwTdPRjLqCbig8S3fJkHtE+giX264BEoLuY+C1 sZ27eS2TAy1EVemhC4dfUN4/H1xLX8B7ERFhZkQxUGxhuQqLDgqlzE55C/y6YeRxAaWZ xH6g== X-Forwarded-Encrypted: i=1; AJvYcCUQqjiWJ8Zgu7SMvHrmy0bHX+SJqdekbtOayj2nWKRwnN7QjHehOuH4Sb8oQuywu20hvYnNwr2HCigwH4LTs5HKUwa9QJsacRfpYkPT X-Gm-Message-State: AOJu0YwHQpkvyHIBSXQ5RYqnFP6HDLVPdZ3jg7A26xgqfsFuodqHlnTl Wi7qBdJMVRZ0pMgFCKnKMJ2TGYLZYzxZW4K6qRQ4lKgR9UwIPCQQtGrQxbFL8g== X-Received: by 2002:a05:620a:2014:b0:787:3769:d747 with SMTP id c20-20020a05620a201400b007873769d747mr6779105qka.59.1708947498204; Mon, 26 Feb 2024 03:38:18 -0800 (PST) Received: from [127.0.1.1] ([117.202.184.81]) by smtp.gmail.com with ESMTPSA id q15-20020a05620a0c8f00b007878babb96asm2341842qki.94.2024.02.26.03.38.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 03:38:17 -0800 (PST) From: Manivannan Sadhasivam Date: Mon, 26 Feb 2024 17:07:30 +0530 Subject: [PATCH v3 5/5] PCI: epf-mhi: Enable HDMA for SA8775P SoC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240226-dw-hdma-v3-5-cfcb8171fc24@linaro.org> References: <20240226-dw-hdma-v3-0-cfcb8171fc24@linaro.org> In-Reply-To: <20240226-dw-hdma-v3-0-cfcb8171fc24@linaro.org> To: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Marek Vasut , Yoshihiro Shimoda , Kishon Vijay Abraham I Cc: Serge Semin , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, mhi@lists.linux.dev, Manivannan Sadhasivam , Mrinmay Sarkar , Siddharth Vadapalli X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=974; i=manivannan.sadhasivam@linaro.org; h=from:subject:message-id; bh=isUh7Dyx4QOFqnRUN5haG5ZOvquZ4WskKD+PqeTLyJ8=; b=owEBbQGS/pANAwAKAVWfEeb+kc71AcsmYgBl3HgGRFaIIukjpQ+MlVp1t7r1KyH4o9t0giPf0 ecjdOvjr4+JATMEAAEKAB0WIQRnpUMqgUjL2KRYJ5dVnxHm/pHO9QUCZdx4BgAKCRBVnxHm/pHO 9T0gB/wJn/wKQ4SsV6Ave0iIOFHg8ILRsYljtotpgZCkHh/5Kj1edf/8JHtagUfbFRpAG79lmH2 O1MojHHi2V9sIKmQmUmcpuOTMRDxwbdCebgoSKNoHPArCydW0NeU4pzCKz9EE81+RlUR12fPoS/ ZGPPGrolyRh6QD9wXY5iFzg3Yl3RNCEAC4lx3D4bFD3xbujKklIHTBHNUApv+5z8th9yggp7DRd sBP0G7dSjLssbgvE9DAsWGoXqVaz4aTH+jTEs9w1V1EuwHzla3+MJc2Sy0FL95Ga5Kdw3ZPRcLb k071qmHaETAfzo4PIDsL3SeyXE9Ic3T3xa5XDj6Fh1otg3tt X-Developer-Key: i=manivannan.sadhasivam@linaro.org; a=openpgp; fpr=C668AEC3C3188E4C611465E7488550E901166008 From: Mrinmay Sarkar SA8775P SoC supports Hyper DMA (HDMA) DMA Engine present in the DWC IP. So, let's enable it in the EPF driver so that the DMA Engine APIs can be used for data transfer. Signed-off-by: Mrinmay Sarkar [mani: reworded commit message] Reviewed-by: Siddharth Vadapalli Signed-off-by: Manivannan Sadhasivam --- drivers/pci/endpoint/functions/pci-epf-mhi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/endpoint/functions/pci-epf-mhi.c b/drivers/pci/endpoint/functions/pci-epf-mhi.c index 2c54d80107cf..570c1d1fb12e 100644 --- a/drivers/pci/endpoint/functions/pci-epf-mhi.c +++ b/drivers/pci/endpoint/functions/pci-epf-mhi.c @@ -137,6 +137,7 @@ static const struct pci_epf_mhi_ep_info sa8775p_info = { .epf_flags = PCI_BASE_ADDRESS_MEM_TYPE_32, .msi_count = 32, .mru = 0x8000, + .flags = MHI_EPF_USE_DMA, }; struct pci_epf_mhi { -- 2.25.1